MessageRequester Default Button

Just starting out? Need help? Post your questions and find answers here.
Pelluso
User
User
Posts: 23
Joined: Tue Mar 23, 2004 9:04 pm
Location: Brazil

MessageRequester Default Button

Post 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 .
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

For Windows only...

Code: Select all

If MessageRequester ( "Attention" , "Wish to quit ?" , #PB_MessageRequester_YesNo | #MB_DEFBUTTON2) = #PB_MessageRequester_Yes 
  End 
EndIf
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
Pelluso
User
User
Posts: 23
Joined: Tue Mar 23, 2004 9:04 pm
Location: Brazil

Post by Pelluso »

Many Thanks Sparkie !
Post Reply