IonicWind Software

IWBasic => General Questions => Topic started by: Andy on November 13, 2011, 12:28:07 AM

Title: Messagebox question
Post by: Andy on November 13, 2011, 12:28:07 AM
Hi,

Probably a simple one to answer but I have been going round in circles with this on and I cannot see anything on the forum to help.

I want a simple message box with Yes/No buttons, thats no problem, I just wondered if you can set the focus on the NO button?

CASE BUTTON_1
IF @NOTIFYCODE = 0
IF @IDYES = MESSAGEBOX(winbox,"Are you sure you want to delete browsing history","Please confirm",@MB_ICONQUESTION | @MB_YESNO)
                             
'Do something here if answer is Yes

ENDIF
ENDIF

So, can I modify this and still check for a 'Yes' answer, with the 'No' button highlighted rather than the 'Yes' button.

Thanks,
Andy.
Title: Re: Messagebox question
Post by: zaphod on November 13, 2011, 01:18:58 AM
like that :



CONST mbdeffbutton2=256

messagebox (d1,"Are you sure you want to delete browsing history","Please confirm",@MB_ICONQUESTION | @MB_YESNO | mbdeffbutton2)


Title: Re: Messagebox question
Post by: Andy on November 13, 2011, 02:51:43 AM
Thanks,

Thats perfect!

Andy.
Title: Re: Messagebox question
Post by: billhsln on November 13, 2011, 07:17:09 PM
Just wondering, if you had 3 options, would the right value be 512? and the 4th 1024? etc...

Thanks,
Bill