cancel
Showing results for 
Search instead for 
Did you mean: 

Delay to create menu with Add-On

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member682029
Contributor
0 Kudos

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