- Heiko Betzler
- PowerBuilder
- Friday, 21 October 2022 02:57 PM UTC
Hello all together,
Our Situation:
- PowerBuilder MDI Application (MDI StandardFrame)
- Using PFC (older version)
- PowerBuilder 2021 (1506)
We have several hundred windows (inherited from PFC w_sheet). Most of these windows have their own menus (inherited from pfc_m_master). Reason for that: the menus have additional menu items for window related funnctions.
During opening of the window, we perform different actions on each menu item (in a loop, recursive on sub menus):
- of_SetSecurity(This.MenuId) >> Disable/Enable MenuItems
- Translate the MenuItems (ToolbarItem, Microhelp, ...) in the users UI Language
- Check the Users Licence an enabling futher MenuItems
These steps, which are performed every time the window is opened, greatly slow down the opening of the window. Therefore, we have now considered initializing the menu (of each sheet) only once (at the first use or at the start of the application) and then storing it in a "cache". Is there a way to save a complete menu (with all properties) and then reassign it later to a sheet when opening a window?
We think this would be a great thing.
Thank you for your support and have a great weekend everyone.
Best regards
Heiko
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.