func_maxgui_buttons_setbuttonstate.rst 721 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. .. _func_maxgui_buttons_setbuttonstate:
  2. ==============
  3. SetButtonState
  4. ==============
  5. SetButtonState -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. SetButtonState( button:TGadget,checked )
  10. Set a Button gadget's state.
  11. Buttons created with the BUTTON_CHECKBOX and BUTTON_RADIO styles are able to show a selected state.
  12. In addition, the BUTTON_CHECKBOX style may also be able to distinguish an indeterminate state from that
  13. of a checked state through the use of the CHECK_INDETERMINATE (-1) constant, depending on the platform.
  14. See Also: #CreateButton, #SetGadgetText, #ButtonState and #SetGadgetPixmap.
  15. Parameters
  16. ==========
  17. Return Values
  18. =============
  19. Nothing.
  20. Examples
  21. ========
  22. See Also
  23. ========