Page 1 of 1 1
Topic Options
#123380 - 2004-07-20 09:48 PM Messagebox modality
rliang Offline
Fresh Scripter

Registered: 2003-03-10
Posts: 18
I'm trying to display a messagebox for a few seconds on the screen, then disappear. I DO NOT want the user to have to respond before continuing work on the application. The only 2 modes I've come across are 0,4096. Is there someway of simply displaying a time-delayed messagebox without forcing somebody to respond to it?
Top
#123381 - 2004-07-20 09:56 PM Re: Messagebox modality
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
yes, take a look int he manual...

MessageBox( )
Action: Displays a standard dialog box in Windows.
Syntax: MESSAGEBOX ("message", "title", style, time-out)


as for the style.... take the values of the style that you want, add them toghther to get your style number. so since you just want a simple ok button, that stays up for x number of seconds...

Code:

$=MESSAGEBOX ("This message will only stay for 20 seconds", "title",0,20)



Bryce

Top
#123382 - 2004-07-20 09:59 PM Re: Messagebox modality
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
I really should read your entire question sorry.

You are not wanting to pause the script for the messagebox.

In that case, just spawn a seperate kix script that has your message box in it, Or look in to Kixforms.

Bryce

Top
#123383 - 2004-07-20 10:15 PM Re: Messagebox modality
rliang Offline
Fresh Scripter

Registered: 2003-03-10
Posts: 18
Thanks for the pointer. If I spawn a seperate script with the CALL command, the parent script doesn't continue until execution of the child script is complete, so I don't know that I can continue processing the parent script in the background (?)
Top
#123384 - 2004-07-20 10:30 PM Re: Messagebox modality
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
There is a FAQ on some undocumented MessageBox() styles that is worth a read.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#123385 - 2004-07-20 10:32 PM Re: Messagebox modality
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What Bryce is suggesting is that you RUN a separate instance of KiX32.exe or WKiX32.exe just for the MessageBox(). You could alternatively just NET SEND a message.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#123386 - 2004-07-20 11:13 PM Re: Messagebox modality
rliang Offline
Fresh Scripter

Registered: 2003-03-10
Posts: 18
Thanks I'll give that a whirl. I also can't find the FAQ on undocumented Messagebox() functions. I see several references to it, but when I click I get a dead link.
Top
#123387 - 2004-07-20 11:35 PM Re: Messagebox modality
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Did you try searching in the FAQ forum?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 857 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.073 seconds in which 0.034 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org