On Oct 1, 2006, at 10:14 AM, Robert Poland wrote:
On Oct 1, 2006, at 10:48 AM, Brad Rhine wrote:
On Oct 1, 2006, at 11:55 AM, Robert Poland wrote:
In a empty window I have this code;
Dim Result As Integer
// Yes and No = 4
// Caution icon = 48
// No default = 768
Result=msgBox ("This is a test.",820,"")
msgbox "My Results: " +str(Result)
quit
When I run it I get a default button (Yes). Is this a BUG or what.
You might have better luck with the MessageDialog class. It allows
a lot more flexibility and is more customizable than the simple
MsgBox.
--
Brad Rhine
[EMAIL PROTECTED]
http://bradrhine.com
Tangelo: Web Publishing... With A Twist!
It appears that MessageDialog doesn't have a default button function.
Also After digging around I see that setting the MsgBox Default to
0 there is no default button although the Yes button is highlighted
indicating (falsely) that it is the default.
I guess the "FIX" is to always have a default button.
I think one of the problems is related to Windows users where you can
have 2 default buttons. The first is the automatic or settable one in
MsgBox and MessageDialog and the one they tab over.
Since Mac Pushbuttons cannot accept the focus, there is always a
default button. At least that's what I guess is happening.
The solution for *no* Default button is to build the custom message
box yourself (like we had to before Rb 5.x). :)
This, of course, for messages with more than the simple OK button.
Terry
_______________________________________________
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>