lpcware

Checkbox

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by Cusko on Wed Feb 19 06:31:23 MST 2014
I use skining for my checkbox.
Windows simulation shows correct size of the checkbox (defined with Props1.ButtonSize = 34). But a real LCD display shows small checkbox. See the attached pictures.
In the code I define:
CHECKBOX_GetSkinFlexProps(&Props1, CHECKBOX_SKINFLEX_PI_ENABLED);
Props1.aColorFrame[0] = COLOR_THEME_2;
Props1.aColorFrame[1] = COLOR_THEME_1;
Props1.aColorFrame[2] = GUI_BLACK;
Props1.aColorInner[0] = GUI_BLACK;
Props1.aColorInner[1] = GUI_BLACK;
[color=#f00]Props1.ButtonSize = 34;[/color]
Props1.ColorCheck = COLOR_THEME_1;
CHECKBOX_SetSkinFlexProps(&Props1, CHECKBOX_SKINFLEX_PI_DISABLED);
CHECKBOX_SetSkinFlexProps(&Props1, CHECKBOX_SKINFLEX_PI_ENABLED);
hItem = WM_GetDialogItem(pMsg->hWin, ID_CHECKBOX_0);
CHECKBOX_SetSkin(hItem, CHECKBOX_SKIN_FLEX);
}

Any idea how to fix it? Thanks!

Outcomes