Redefine main menu

Moderator: Rathinagiri

Post Reply
chrisjx2002
Posts: 190
Joined: Wed Jan 06, 2010 5:39 pm

Redefine main menu

Post 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
PrtScr capture.jpg (39.67 KiB) Viewed 2462 times
When using version 3.0.46 everything was working right. Any idea on how to solve that?
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Redefine main menu

Post 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
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
chrisjx2002
Posts: 190
Joined: Wed Jan 06, 2010 5:39 pm

Re: Redefine main menu

Post 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.
User avatar
mol
Posts: 3728
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Redefine main menu

Post 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
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Redefine main menu

Post by Pablo César »

There are many improvements, events, tooltips...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply