Source language: Translate to:

Message Box Question

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Message Box Question

Postby Just4Fun » Thu Mar 25, 2010 9:07 am

Hi Again:

I have another beginner's question:

I have a message box. I want to allow the user to select OK to close the box. I want the user to select help for a help file. Finally, I want the user to be able to dismiss the box forever. That is, destroy the box so it will no longer pop-up.

My code:

Code: Select all
If "[AlertChoice]" "=" "1"
  --Put nothing here so the box simply closes? Is this correct?
EndIf

If "[AlertChoice]" "=" "2"
  --Destroy the box forever (I don't know how to do this code)
Maybe I should disable and send it to the back, but I'm not sure of the
best way to proceed.
EndIf
If "[AlertChoice]" "=" "3"
  gotopage "Help"
EndIf


Thanks in advance. Hope all is well with everyone in the Neobook community. Raining hard in my area of the country this morning.

-Rachel
May I never be cured of my curiosity! ;-)
User avatar
Just4Fun
 
Posts: 136
Joined: Sun Dec 14, 2008 10:05 am
Location: Western Washington, USA

Postby Gaev » Thu Mar 25, 2010 9:21 am

Rachel:

Try this code ...
Code: Select all
If "[DoNotShowAgain]" "<>" "True"
    MessageBox "yourTitle" "yourMessage" "Help|Do Not Show This Again" "[AlertChoice]"
    If "[AlertChoice]" "=" "1"
       GoTopage "Help"
    EndIf
    If "[AlertChoice]" "=" "2"
       SetVar "[DoNotShowAgain]" "True"
    EndIf
EndIf
User avatar
Gaev
 
Posts: 3718
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Postby Just4Fun » Thu Mar 25, 2010 9:46 am

Hi Gaev:

Perfect. Thank you. If you don't mind another question, is it possible to change the message box font colors and the question mark icon to your own icon and font colors?

Thank you again for your help.

Rachel
May I never be cured of my curiosity! ;-)
User avatar
Just4Fun
 
Posts: 136
Joined: Sun Dec 14, 2008 10:05 am
Location: Western Washington, USA

Postby Gaev » Thu Mar 25, 2010 10:22 am

Rachel:
is it possible to change the message box font colors and the question mark icon to your own icon and font colors?
At Design time ... Book >>> Book Properties >>> Interface
User avatar
Gaev
 
Posts: 3718
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest