Page 1 of 1

Position of chosen menu option

Posted: Tue Sep 21, 2010 9:27 am
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

Re: Position of chosen menu option

Posted: Tue Sep 21, 2010 10:02 am
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.

Re: Position of chosen menu option

Posted: Tue Sep 21, 2010 10:13 am
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.