Hi,
I have a button on the main window of my app that will create a Dialog.
The user clicks the button and the dialog appears ... so far so good.
In the Dialog, I have a "Close" button. The Action tied to this is: oDlg:End()
The user clicks this button and the dialog does away ... still no problem.
Now the user clicks the button on the main window again to create the Dialog but nothing happens.
Main window:
Dialog (n will be a number from 1 to
:
Any ideas why the main window button only works once?
I have a button on the main window of my app that will create a Dialog.
The user clicks the button and the dialog appears ... so far so good.
In the Dialog, I have a "Close" button. The Action tied to this is: oDlg:End()
The user clicks this button and the dialog does away ... still no problem.
Now the user clicks the button on the main window again to create the Dialog but nothing happens.
Main window:
DEFINE WINDOW oWndMain FROM 0,0 TO MaxRow(), MaxCol() TITLE "EzMon" COLOR RGB(0,0,0),RGB(255,255,255) MENU BuildMenu()
MakeMainBar()
@ 4, 30 BUTTON oBtn1 PROMPT "Activate Monitor 1" of oWndMain SIZE 200,75 ACTION MakeDialog(1)
@ 4, 100 BUTTON oBtn2 PROMPT "Activate Monitor 2" of oWndMain SIZE 200,75 ACTION MakeDialog(2)
@ 12, 30 BUTTON oBtn3 PROMPT "Activate Monitor 3" of oWndMain SIZE 200,75 ACTION MakeDialog(3)
@ 12,100 BUTTON oBtn4 PROMPT "Activate Monitor 4" of oWndMain SIZE 200,75 ACTION MakeDialog(4)
@ 20, 30 BUTTON oBtn5 PROMPT "Activate Monitor 5" of oWndMain SIZE 200,75 ACTION MakeDialog(5)
@ 20,100 BUTTON oBtn6 PROMPT "Activate Monitor 6" of oWndMain SIZE 200,75 ACTION MakeDialog(6)
@ 28, 30 BUTTON oBtn7 PROMPT "Activate Monitor 7" of oWndMain SIZE 200,75 ACTION MakeDialog(7)
@ 28,100 BUTTON oBtn8 PROMPT "Activate Monitor 8" of oWndMain SIZE 200,75 ACTION MakeDialog(8)
ACTIVATE WINDOW oWndMain MAXIMIZED VALID QuitApp()Dialog (n will be a number from 1 to
DEFINE DIALOG oDlg&n FROM nTop,nLeft to nBottom,nRight TITLE cTitle of oWndMain PIXEL ;
COLOR RGB(0,0,0),RGB(208,221,230) ;
STYLE nOR( DS_MODALFRAME, WS_POPUP, WS_CAPTION) ;
TRANSPARENT
@ 2,40 SAY "SPO2" of oDlg&n PIXEL SIZE 25,10
@ 2,150 SAY "HR" of oDlg&n PIXEL SIZE 25,10
@ 10,5 SAY oSaySat&n VAR cSat&n FONT oFontBig PIXEL SIZE 82,37 UPDATE of oDlg&n
@ 10,110 SAY oSayHR&n VAR cHR&n FONT oFontBig PIXEL SIZE 82,37 UPDATE of oDlg&n
@ 1.5,34 BUTTON oBtnInfo PROMPT "Pt. Info" of oDlg&n ACTION PatientInfo()
@ 2.5,34 BUTTON oBtnQuit PROMPT "Close " of oDlg&n ACTION oDlg&n:End()
ACTIVATE DIALOG oDlg&n NOWAITAny ideas why the main window button only works once?
Thanks,
Jeff Barnes
(FWH 16.11, xHarbour 1.2.3, Bcc730)
Jeff Barnes
(FWH 16.11, xHarbour 1.2.3, Bcc730)







