Position of chosen menu option

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
cocoking
Posts: 46
Joined: Tue Jun 15, 2010 1:15 pm
Location: Malabang, Lanao del Sur

Position of chosen menu option

Post by cocoking »

From the Sep 8, 2008 post of Rathi:
Wishes are endless. Like these. I had dreamed during 2003. :)

I am happy that some of them had come true.
...
5. Can we find out the row and column position of the system menu clicked (example if we click ‘File’ -> ‘New’, the value shall be 1,1 and if we click
‘File’ -> ‘Open’ the value shall be 1,2 and so on.) This is required for finding out the menu option selected for the menu options created using loops.
Is it now possible to get the position of selected menu option?

I have a main menu whose options are variable (taken from a dbf). Some options have sub-options while other do not. And depending on program parameters (ie. Username), the structure may change. For example:

Option 1
Option 2
Suboption2-1
Suboption2-2
Option 3
Suboption3-1
Option 4

How do I determine position of selected menu option?
Position will determine function to call.

Thanks,
cocoking
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Position of chosen menu option

Post by Rathinagiri »

I think it is not possible even now. But we can redefine the mainmenu according to the username entered. Isn't it?

However, I am sure, it can be possible in the new QT version of HMG.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
cocoking
Posts: 46
Joined: Tue Jun 15, 2010 1:15 pm
Location: Malabang, Lanao del Sur

Re: Position of chosen menu option

Post by cocoking »

Yes, I can find a way to go around that but a more elegant solution would've been the menu position.

Thanks again, Rathi.
Post Reply