Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange behavior of the toolbar
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01159012
Message ID:
01159368
Views:
20
>>Hi everybody,
>>
>>I implemented the switching roles inside the application. Everything is fine, except for the strange behavior of the toolbar. I have two toolbars (main toolbar and form specific toolbar). When I click on the switch roles button I release toolbars and menu and re-instantiate them. For some reason the main toolbar gets shifted to the right...
>>
>>Do you observe a similar problem?
>>
>>Thanks in advance.
>Just a guess, Naomi: in Codebook the toolbars positions are saved in the registry, just like any application window. I would remove the settings for the toolbars for every role and see what happens.
>
>José

Thanks, Jose. It may be something like that. I'm going to find out.

Thanks again.

UPDATE. I don't think it's related with a particular role and a registry. I think once the toolbar is removed, the next time it wants to be instantiated in a different place...

BTW, you're right, the toolbar position is saved (in our case in INI file) and restored.

More Update. With my very smart colleague we found that the toolbar was not really destroyed. We had release this in its release method, but it didn't work for some reason. So I added this.Destroy() and this line of code took care of the problem.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform