DaboFolks:
   
There's some odd behavior with the okCancelDialog. Here's what  happens.
 
We created a simple okCancelDialog form with a textBox field for the  user 
to enter a string.  This has nothing more than a label and a  textbox on it.
 
The dialog is called from a button on our main form with the  code:
 
 
## *!* ## Dabo Code ID: dButton-dPanel
def onHit(self,  evt):
dlg = dabo.ui.createForm("findRun3.cdxml",  self)
dlg.show()
# execution pauses  here until the dialog is hidden
if  dlg.Accepted:
# User clicked  OK
FindStr =  dlg.txtRunID.Value
dabo.ui.info(FindStr)

dlg.release()

When the user clicks ok on the dialog, the dialog flashes, but stays  
visible. clicking OK a second time closes the dialog and then displays the  
string in a dabo.ui.info message popup, as intended.  Similarly, if you  click 
on 
Cancel, the dialog stays there until you click cancel a second time,  after 
which no message popup appears.
 
So in short, things work as they should, except that the dialog doesn't  
close on the first click.
 
We thought, something must be amiss with the okCancelDialog, so we made a  
similar screen using the plain dialog in ClassDesigner. The OK button onHit 
code  calls self.Form.hide(). Same behavior! 
 
Could there be something wrong with the hide function in the windows  
environment?  
 
Jonathan Poor

 


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to