| View previous topic :: View next topic |
| Author |
Message |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Tue Aug 19, 2008 5:41 am Post subject: Menu output call |
|
|
How to call this...from DIALOG POPUP
CD Eject && Close [5s]
This DO NOT WORK...
:CD Eject && Close [5s]MENU |
|
| Back to top |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Tue Aug 19, 2008 9:35 am Post subject: |
|
|
Hi
Maybe this work if I understand what you think
Dialog Popup,cd Eject &&Close[5s]
IHope to be usefull |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Tue Aug 19, 2008 10:18 am Post subject: |
|
|
Not that...
Problems is when i try to call this with MENU...LOOP fails to run :CD Eject && Close [5s]MENU |
|
| Back to top |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Tue Aug 19, 2008 10:54 am Post subject: |
|
|
Ok,
I writed this sample and work
| Code: | DIALOG CREATE,Test Dialog,-1,0,240,160
DIALOG ADD,BUTTON,BUTTON1,49,84,,,BUTTON1
DIALOG SHOW
:loop
Wait Event
%e = @Event()
Goto %e
:Button1Button
Dialog Popup,CD Eject && Close [5s]
Goto Loop
:CD Eject && Close [5s]MENU
Info Work!!
:close
stop |
Is like not work with you? |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Sat Aug 23, 2008 7:57 am Post subject: |
|
|
Nope, your example does not work here. The label needs to have 2 spaces and no ampersand(s) like this:
| Code: | | :CD Eject Close [5s]MENU |
In this test code, clicking on the popup menu for buttons 2, 3 and 4 all result in the program jumping to button 2's MENU label.
| Code: | DIALOG CREATE,Popup Menu Test,-1,0,205,116
DIALOG ADD,BUTTON,BUTTON1,29,34,64,24,BUTTON1
DIALOG ADD,BUTTON,BUTTON2,29,106,64,24,BUTTON2
DIALOG ADD,BUTTON,BUTTON3,61,34,64,24,BUTTON3
DIALOG ADD,BUTTON,BUTTON4,61,106,64,24,BUTTON4
DIALOG SHOW
:loop
Wait Event
%e = @Event()
Goto %e
:Button1Button
Dialog Popup,CD Eject and Close [5s]
Goto Loop
:CD Eject and Close [5s]MENU
Info "1 Worked!! CD Eject and Close [5s]MENU"
Goto Loop
:Button2Button
Dialog Popup,CD Eject "&" Close [5s]
Goto Loop
:CD Eject Close [5s]MENU
Info "2 Worked!! CD Eject Close [5s]MENU" @cr()@cr()"popup 2, 3 and 4 end up here"
Goto Loop
:Button3Button
Dialog Popup,CD Eject & Close [5s]
Goto Loop
:CD Eject & Close [5s]MENU
Info "3 Worked!! CD Eject & Close [5s]MENU" @cr()@cr()we never see this
Goto Loop
:Button4Button
Dialog Popup,CD Eject && Close [5s]
Goto Loop
:CD Eject && Close [5s]MENU
Info "4 Worked!! CD Eject && Close [5s]MENU" @cr()@cr()we never see this
Goto Loop
:close
stop |
So we could change the code to this:
| Code: | DIALOG CREATE,Popup Menu Test,-1,0,205,116
DIALOG ADD,BUTTON,BUTTON1,29,34,64,24,BUTTON1
DIALOG ADD,BUTTON,BUTTON2,29,106,64,24,BUTTON2
DIALOG ADD,BUTTON,BUTTON3,61,34,64,24,BUTTON3
DIALOG ADD,BUTTON,BUTTON4,61,106,64,24,BUTTON4
DIALOG SHOW
:loop
Wait Event
%e = @Event()
Goto %e
:Button1Button
Dialog Popup,CD Eject and Close [5s]
Goto Loop
:CD Eject and Close [5s]MENU
Info "1 Worked!! CD Eject and Close [5s]MENU"
Goto Loop
:Button2Button
Dialog Popup,CD Eject "&" Close [5s]
Goto Loop
:CD Eject Close [5s]MENU
Info "2, 3 or 4 Worked!! CD Eject Close [5s]MENU"
Goto Loop
:Button3Button
Dialog Popup,CD Eject & Close [5s]
Goto Loop
:Button4Button
Dialog Popup,CD Eject && Close [5s]
Goto Loop
:close
stop |
_________________ cheers
Dave |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|