Need help with simple "push_button"

BlitzMax Forums/BlitzMax GUI Programming/Need help with simple "push_button"

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


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.

Ah ok I found out how they work thanks.