BBGadTools

=BBRequest("Txt1|Txt2|Txt3..","Button1","Button2",0-1)


Description:

This Command calls a Requester. If you click later the left Button, the Function will
Return "1", and when you clicked the Right one, it Returns "2". With the last value "0-1"
can you choose to play a sound if the Requester starts. ("C:\Windows\Media\Chord.wav")
Type this Char "|" at end of Line, to begin a new Line.

Parameter:

Text1|Text2|Text3... = All Text thats shows in Requester.
ButtonName1 = Name of the left Button.
ButtonName2 = Name of the right Button.
0 = Play no Sound.
1 = Play Sound if available.

Example:

BBScreenMode(2) ; Open a Screen in 800x600
BBScreenBar("MyTitleName")
value=BBRequest("Please Select a Button!"," One "," Two ",1)
Color $00,$00,$00
If value=1 Then Text 300,150,"You have select the left Button!"
If value=2 Then Text 300,150,"You have select the right Button!"
WaitKey()
Include "C:\BBGadTools.bb"

Back to the Menu