Skip to content

ModernUI_Checkbox Control

mrfearless edited this page Oct 24, 2018 · 2 revisions

ModernUI_Checkbox Functions

MUICheckboxRegister

Description: Registers the ModernUI_Checkbox class, which allows the control to be created via dialog resources or via CreateWindowEx and specifying the classname ModernUI_Checkbox. If using the RadASM custom class control instead of a the ModernUI RadASM Design Time Controls specify ModernUI_Checkbox as the classname.

Parameters: None

MUICheckboxCreate

Description: Creates a ModernUI_Checkbox control. Returns in rax the handle of the newly created control or NULL.

Parameters: hWndParent, lpszText, xpos, ypos, qwWidth, qwHeight, qwResourceID, qwStyle

MUICheckboxSetProperty

Description: Set a ModernUI_Checkbox property with a value, which is stored in the external properties structure. Properties are defined as equates and are actually offsets into the memory location used to store the properties.

Parameters: hModernUI_Checkbox, qwProperty, qwPropertyValue

MUICheckboxGetProperty

Description: Get a ModernUI_Checkbox property from the external properties structure. Properties are defined as equates and are actually offsets into the memory location used to store the properties.

Parameters: hModernUI_Checkbox, qwProperty

MUICheckboxGetState

Description: Gets the state of the ModernUI_Checkbox control, either as a checkbox or a radio button: selected or unselected.

Parameters: hModernUI_Checkbox

MUICheckboxSetState

Description: Sets the state of the ModernUI_Checkbox control, either as a checkbox or a radio button: selected or unselected.

Parameters: hModernUI_Checkbox, bState

MUICheckboxLoadImages

Description: Load checkbox or radio button images for specified states using resource ids provided.

Parameters: hModernUI_Checkbox, qwImageType, qwResIDImage, qwResIDImageAlt, qwResIDImageSel, qwResIDImageSelAlt, qwResIDImageDisabled, qwResIDImageDisabledSel

MUICheckboxSetImages

Description: Sets the checkbox or radio button images for specified states using handles from pre loaded images.

Parameters: hModernUI_Checkbox, qwImageType, hImage, hImageAlt, hImageSel, hImageSelAlt, hImageDisabled, hImageDisabledSel

ModernUI_Checkbox Styles

  • MUICBS_CHECK - Checkbox style (detault)
  • MUICBS_RADIO - Radio button style
  • MUICBS_HAND - Show a hand instead of an arrow when mouse moves over checkbox.
  • MUICBS_NOFOCUSRECT - Dont show focus rect, just use change border to @CheckboxTextColorAlt when setfocus.
  • MUICBS_THEMEDARK - For default icons, if not set default dark icons for light backgrounds, if set light icons for dark backgrounds
  • MUICBS_THEME - Use default windows theme colors and react to WM_THEMECHANGED

ModernUI_Checkbox Properties

  • @CheckboxTextFont - Font for checkbox text
  • @CheckboxTextColor - Text color for checkbox
  • @CheckboxTextColorAlt - Colorref
  • @CheckboxTextColorSel - Colorref
  • @CheckboxTextColorSelAlt - Colorref
  • @CheckboxTextColorDisabled - Colorref
  • @CheckboxBackColor - Colorref
  • @CheckboxImageType - Checkbox Image Types - One of the following: MUICIT_NONE, MUICIT_BMP, MUICIT_ICO or MUICIT_PNG
  • @CheckboxImage - hImage
  • @CheckboxImageAlt - hImage
  • @CheckboxImageSel - hImage
  • @CheckboxImageSelAlt - hImage
  • @CheckboxImageDisabled - hImage
  • @CheckboxImageDisabledSel - hImage
  • @CheckboxDllInstance - Set to hInstance of dll before calling MUICheckboxLoadImages if used within a dll
  • @CheckboxParam - Custom user data

ModernUI_Checkbox Property Styles

Checkbox Image Types

  • MUICIT_NONE - No image type specified
  • MUICIT_BMP - Bitmap
  • MUICIT_ICO - Icon
  • MUICIT_PNG - PNG