Need help with simple "push_button"

BlitzMax Forums/MaxGUI Module/Need help with simple "push_button"

Ryan Burnside(Posted 2007) [#1]
I've noticed that this check works with a simple radio button but refuses to work with a square push button. Basically upon a button click it returns the value from the text field object. It works great with a radio button but not so hot with a push button.

If ButtonState(b)=1
Return Int(TextFieldText(f))
EndIf



jsp(Posted 2007) [#2]
Only the checkbox button and the radio button supports the 'ButtonState'
You need to trigger on the GadgetAction event if you want something done on a push button click.


Ryan Burnside(Posted 2007) [#3]
Ah ok I found out how they work thanks.