ButtonState
BlitzMax Forums/BlitzMax Beginners Area/ButtonState
| ||
Is that right then i push the ok button, ButtonState returns a 1 if i press ist again it will returns 0. Is that right? How can i set the ButtonState to 0. Strict Local window:TGadget Local button:TGadget[5] window=CreateWindow("MaxGui Buttons",40,40,240,300,Null,WINDOW_TITLEBAR) button[0]=CreateButton("OK",10,82,70,24,window,BUTTON_OK) button[1]=CreateButton("Cancel",84,82,70,24,window,BUTTON_CANCEL) While True WaitEvent Select EventID() Case EVENT_WINDOWCLOSE End Case EVENT_GADGETACTION For Local i=0 To 1 Print ButtonState(button[i]) Next End Select Wend |
| ||
use setButtonState(Button[1],false) by the way, this is the wrong forum. Pls post in Beginner's Forum |
| ||
Thanx, for the answer. OK i'll do it! |