I am a new user of OpenCacade Library. I am facing an issue while using the Message_ProgressIndicator class of the library. I have overridden the Show() method in the my own child class of Message_ProgressIndicator where I get the name and position of the Message_ProgressScale using GetName() and GetPosition() respectively and use my GUI code to display the result.
I am facing problem in displaying the label text of the scope that I get from GetName() method. Everytime I call the NewScope() method (in the task whose progress I want to measure) to make a new scope, I pass a label string as well as a parameter. The problem lies in the fact that the string that I pass it never gets displayed instead the string of "Step" gets displayed all the time which is the name of the scope being set in the Reset() method that is called by default constructor of Message_Progress Indicator.
I checked the OCC library source code for NewScope and EndScope methods and found out that the call to Show() method has been commented out in NewScope method and this call is present in EndScope method which actually deletes the new scope that was created.
Can this be the source of problem? How it should be fixed? Any suggestions to display label text in an elegant way?
Please help me with this problem.
Zia ul Azam