FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Don't show this message
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
Don't show this message
Posted: Mon Jan 04, 2010 12:40 AM

Hello all,

is it possible to add a "Don't show this message anymore" checkmark to a standard MessageBox() or should I design a custom dialog for that ?

Thanks,
Davide

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Don't show this message
Posted: Mon Jan 04, 2010 01:19 AM
You could use the standard MsgYesno() - Function
It is not a checkmark, but the question for it is included in the message.

Code (fw): Select all Collapse
lMessage := .T.
...
...
Mymessage()
...
...

FUNCTION Mymessage()

IF lMessage = .T.
   IF MsgYesNo("Your Message " + CRLF + ;
                      " " + CRLF + ;
                      "Show this Message again ?","Message")
   ELSE
      lMessage := .F.
   ENDIF
ENDIF


Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
Re: Don't show this message
Posted: Mon Jan 04, 2010 01:34 AM

Thanks Uwe,

I know MsgYesNo(), but the checkmark I'm searching for may apply to MsgYesNo() too. Sometimes I want to ask the user if he want to see that question shown again in future or not. This is commonly used on wizards, tips, etc.

Any other idea ?

Thanks,
Davide

Continue the discussion