Page 1 of 1
Redefine main menu
Posted: Mon Feb 16, 2015 6:24 pm
by chrisjx2002
Hello every HMG guru,
I have a problem when I want to redefine the main menu with the last hmg version 3.4.0. I have this error message :

- PrtScr capture.jpg (39.67 KiB) Viewed 2571 times
When using version 3.0.46 everything was working right. Any idea on how to solve that?
Redefine main menu
Posted: Mon Feb 16, 2015 7:34 pm
by Pablo César
Hi Chris,
Since HMG 3.1.2 version there is a new Define/Release at runtime Main / Context / Notify / DropDown Menu
You can see in this
MENU_Dynamic_Demo for download or at C:\hmg.3.4.0\SAMPLES\Controls\Menu\MENU_Dynamic_Demo you can find it to analize how disable before make your new atributions.
Rgds
Re: Redefine main menu
Posted: Mon Feb 16, 2015 8:09 pm
by chrisjx2002
Thanks a lot for this fast answer!
It solves the problem but it complicates the program. It was more simple before. But there were certainly very good reasons to do that.
Re: Redefine main menu
Posted: Mon Feb 16, 2015 8:19 pm
by mol
You can simply release main menu and create it again (from hmg 3.1.2)
Code: Select all
if IsMainMenuDefined("MainFormName")
RELEASE MAIN MENU OF MainFormName
else
MsgStop("Main Menu is not defined!")
endif
Redefine main menu
Posted: Mon Feb 16, 2015 11:20 pm
by Pablo César
There are many improvements, events, tooltips...