Hi.
--- In [EMAIL PROTECTED], "brucexs" <[EMAIL PROTECTED]> wrote:
> > Any chance of a cl-function that gets the index of the button
> that's
> > pressed?
> Why do you need this?
I have a menu with several levels which is built out of bars.
Basically a button on one bar opens up another bar. If I could get
the index of the button that's pressed I could get its label and
could open the other bar accordingly. Now I have e.g.:
[4]
Label = Drives
LCmd1 = Bar SelectSubBar @sub1
LCmd2 = [EMAIL PROTECTED](1, "Drives", "drives")
[5]
Label = Programs
LCmd1 = Bar SelectSubBar @sub2
LCmd2 = [EMAIL PROTECTED](1, "Programs", "programs")
... and so on ...
where "1" is the level of the next bar, "Programs" is the caption of
the bar and "programs" is the ini-file used for that bar. If I could
get the index of the button that's pressed I'd only need:
[EMAIL PROTECTED](1)
or so and do the rest in the function...:-)
I admit that's a pretty lame example but I'm sure it could be useful
elsewhere, I only forgot where...:-)
What would definitely be useful is being able to use varibles
in ;include. Now I have to write:
;if (menuInclude == "programs")
;include menus/programs
;endif
;if (menuInclude == "internet")
;include menus/internet
;endif
;if (menuInclude == "drives")
;include menus/drives
;endif
... and so on ...
then I'd only need:
;include("menus/" ++ menuInclude)
;elseif would be nice, too, BTW...
Of course all these are things I can live without.
Thanks.
Mockey
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/