on 01-13-2012 4:52 PM
I have an add-on that creates a menu in the Main Menu. And the more I add menus, delay is the creation of menus.
Example: If you create a menu with two options he gives two delays on the screen, ie, the screen blinks twice.
This leaves the poor performance of the system.
How to solve this?
Hello
You can free the form id 167, which is the main menu.
here is a sample code
sbo_application.Forms.GetForm("167", 1).Freeze(True)
' call adding menus here
sbo_application.Forms.GetForm("167", 1).Freeze(False)
By this you avoid the blinking of main menu.
Regards
János
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello harley.rodrigues
yu can stop flickering the menues by using\
oform.freez (true)
// hear is code of menues
oform.freez (false)
for fast loading menues yu can use xml file
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can make the menu loading performance better by using XML.
So do this. Run your current application and once the menus are loaded, save the menu as XML using
GetAsXML()
on Menus collection. Once the XML is ready, change your code so that every time your project is using this XML for loading menus.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
7 | |
7 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.