Page 1 of 1

MessageRequester Default Button

Posted: Thu Feb 21, 2008 2:51 am
by Pelluso
Hi Guys,

Well i think this is a very newbie question , but anyway ...

Code: Select all

If MessageRequester ( "Attention" , "Wish to quit ?" , #PB_MessageRequester_YesNo ) = #PB_MessageRequester_Yes
  End
EndIf
How can i make the "No Button" to be the "default button" when messagerequester is executed ?

By default , the "yes button" is selected .

Posted: Thu Feb 21, 2008 3:08 am
by Sparkie
For Windows only...

Code: Select all

If MessageRequester ( "Attention" , "Wish to quit ?" , #PB_MessageRequester_YesNo | #MB_DEFBUTTON2) = #PB_MessageRequester_Yes 
  End 
EndIf

Posted: Thu Feb 21, 2008 9:16 pm
by Pelluso
Many Thanks Sparkie !