Page 1 of 1 1
Topic Options
#44663 - 2003-09-02 07:04 AM MESSAGEBOX
attiahia Offline
Hey THIS is FUN

Registered: 2000-03-27
Posts: 268
Is there a way to change the font size & color of the text inside the MESSAGEBOX?
Thank you.

Top
#44664 - 2003-09-02 10:05 AM Re: MESSAGEBOX
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4945
Loc: Leatherhead, Surrey, UK
No.

You will need to create a custom pop-up using something like KiXforms or IE.

Top
#44665 - 2003-09-03 12:53 AM Re: MESSAGEBOX
attiahia Offline
Hey THIS is FUN

Registered: 2000-03-27
Posts: 268
I am facing another problem with Messagebox but this time I consider it as a critical problem.

$Inform=MESSAGEBOX("Hi @userid: This message for you ---- Thank you.","Computer_Power_System",4 + 64 + 0 + 4096,90)

SELECT
CASE $Inform=6
GOSUB "--------"
CASE $Inform=7
GOSUB "-------"
CASE $Inform=-1
GOSUB "-------"
ENDSELECT

In the previous code I found that user can easily hold the script if he deactivate the message box.

If the user moved the focus from the message box to any other window, following code will not be executed even if the message time (in this case 90 seconds) was over.

Since continues of code execution is very important for me, I have tried to overcome this issue by the following:
Before the message box in the main script I add this
RUN "Kix32 Activator.Kix"

Where Activator.Kix code are:
$X=0
DO
$Set=SETFOCUS("Computer_Power_System")
sleep 1
$X=$X+1
Until $X=45
EXIT

Although this code did not work 100%, I found it useful in some way.

Without Run the Activator code the inactive message box will stay until you activate it again. with this additional code the inactive message box will disappear but not after the message time is over, it will take more time, some thing like 150 seconds instead of 90.

Any help will be appreciated. Thank you.

Top
#44666 - 2003-09-02 02:10 PM Re: MESSAGEBOX
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4945
Loc: Leatherhead, Surrey, UK
Yes, this is documented in the manual:
quote:
Note Thie time-out feature only works if the MESSAGEBOX dialog box is the active window for the duration of the time-out.
Some options are:
  • Create a form in KiXforms and manage the timeout yourself.
  • Create a form in IE and manage the timeout yourself.
  • Create a form in IE and use a JavaScript timer event to close the form.
  • Use "RUN" to execute a small script to popup the message, and don't worry about it in your main script which will continue to run while the message is displayed.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 60 anonymous users online.
Newest Members
diefnet, Arogya, gkustra, emnipetro, Hirze
17644 Registered Users

Generated in 0.056 seconds in which 0.04 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