Le 16 déc. 06 à 00:45 Matin, Terry Ford a écrit:
On Dec 15, 2006, at 3:00 PM, Arnaud Nicolet wrote:
Le 15 déc. 06 à 22:26 Soir, Terry Ford a écrit:
I'd sure like to know how you managed to show a sheet window in a
message box window. :)
Well, it was a surprise for me.
Everything works correctly for me.
A different version of RB? I'm using 5.5 on the same OS than you
(but with less ram).
OK. I tried it in 5.5.5 on OSX 10.4.8 with the same results.
Now that I think about it, aren't you supposed to use
[.ShowModalWithin self] for sheets?
Does this make a difference?
Well, I've put ShowModalWithin between the MsgBox and the return:
same behaviour.
Either way , it still doesn't show up in the MsgBox for me. This is
on 5.5.5, 2006r3 and 2006r4.
I just discovered something really weird: while it happen after you
click on "Ok" it does not happen when you use the mouse to click
"Ok". It's only if you hit the return key (the enter key "works" as
well) that the problem appears.
It seems that the dialog is not immediately removed from screen,
since it closes when the sheet closes (well, because "Ok" was already
clicked).
Do you have an example that reliably shows this problem? I would be
interested in trying it out for myself.
Yes, I just tried that now:
Create a blank project, add a second window (Window2 is its name),
set its frame to sheet and put this code, for example, in the
MouseDown event of the Window1:
dim w2 As Window2
w2=new Window2
MsgBox "1+2+3=1*2*3"
Just add a push button to Window2 to close it (else you will have to
kill the built application).
Run the project and click on the window (Window1 being still the
default window). When the dialog appears, click "return" or "enter".
Wonderful, isn't it?
An enigma?
Does using the return key to close the dialog invoke some FlushEvents
calls, after pushing "Ok" and before closing the dialog, and the
sheet is allowed to take place, then the dialog would close but waits
for its new child sheet?_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>