attiahia
(Hey THIS is FUN)
2003-09-02 07:04 AM
MESSAGEBOX

Is there a way to change the font size & color of the text inside the MESSAGEBOX?
Thank you.


Richard H.Administrator
(KiX Supporter)
2003-09-02 10:05 AM
Re: MESSAGEBOX

No.

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


attiahia
(Hey THIS is FUN)
2003-09-03 12:53 AM
Re: MESSAGEBOX

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.


Richard H.Administrator
(KiX Supporter)
2003-09-02 02:10 PM
Re: MESSAGEBOX

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.