bgiSetGizmoChecked

Sets the checked state of a checkable gizmo (checkbox/radio). Takes gizmo (Int) and checked (Int). Returns 0 if gizmo is not checkable (checkable == false).

BGI GUI

Parameters & Returns

Parameters

gizmo Int
checked Int

Returns

Int

Quick Summary

Sets the checked state of a checkable gizmo (checkbox/radio). Takes gizmo (Int) and checked (Int). Returns 0 if gizmo is not checkable (checkable == false).

Technical Exegesis...

Sets the checked state of a checkable gizmo control. Searches gizmoMap for the gizmo ID. Returns 0 if gizmo is not checkable (checkable == false). If checked is non-zero, sets isChecked to true and sends BM_SETCHECK with BST_CHECKED. If checked is zero, sets isChecked to false and sends BM_SETCHECK with BST_UNCHECKED. Returns 1 on success, 0 if gizmo not found or not checkable.

This function controls check state for checkboxes and radio buttons.

Example

Example.bam
; No example implemented yet