D4CD_CHECKBOX - Gargy007/D4CD GitHub Wiki

D4CD_CHECKBOX object is defined for standard check box use - select and check/unchecked. The check box support two types of visual aspect to show state of check box (unfocused/focused), by HW cursor or by special printed character on left side of object (in example: round and angle brackets). The object also allows setup the characters for checked and unchecked char.

Example:

  • red - checked / focused check box object
  • blue - unchecked/unfocused check box object

D4CD_CHECKBOX

Declaration

D4CD_DECLARE_CHECKBOX(name, text, x, y, cx, flags, pUser, onchange, pOnUsrMsg)

  • name - name of object
  • text - pointer to text of check box
  • x,y - coordination of check box
  • cx - full length of check box
  • flags - system flags of object
  • pUser - user data/pointer
  • onchange - pointer on OnChange function
  • pOnUsrMsg - pointer on user message function

API functions

Standard function to runtime change text of check box- D4CD_SetText.

Set Check box function that is used to set the state of check box by runtime.

void D4CD_CheckBoxSetValue(D4CD_OBJECT_PTR pThis, D4CD_BOOL value)

Get Check box function that is used to get the state of check box by runtime.

Byte D4CD_CheckBoxGetValue(D4CD_OBJECT_PTR pThis)