Example #1
0
//*****************************************************************************
tCanvasWidget g_psCheckBoxIndicators[] = {
    CanvasStruct(g_psPanels + 3, g_psCheckBoxIndicators + 1, 0,
    &g_sKentec320x240x16_SSD2119, 230, 30, 50, 42,
    CANVAS_STYLE_IMG, 0, 0, 0, 0, 0, g_pui8LightOff, 0),
    CanvasStruct(g_psPanels + 3, g_psCheckBoxIndicators + 2, 0,
    &g_sKentec320x240x16_SSD2119, 230, 82, 50, 48,
    CANVAS_STYLE_IMG, 0, 0, 0, 0, 0, g_pui8LightOff, 0),
    CanvasStruct(g_psPanels + 3, 0, 0,
    &g_sKentec320x240x16_SSD2119, 230, 134, 50, 42,
    CANVAS_STYLE_IMG, 0, 0, 0, 0, 0, g_pui8LightOff, 0)
};
tCheckBoxWidget g_psCheckBoxes[] = {
    CheckBoxStruct(g_psPanels + 3, g_psCheckBoxes + 1, 0,
    &g_sKentec320x240x16_SSD2119, 40, 30, 185, 42,
    CB_STYLE_OUTLINE | CB_STYLE_FILL | CB_STYLE_TEXT, 16,
    ClrMidnightBlue, ClrGray, ClrSilver, &g_sFontCm22, "Select",
    0, OnCheckChange),
    CheckBoxStruct(g_psPanels + 3, g_psCheckBoxes + 2, 0,
    &g_sKentec320x240x16_SSD2119, 40, 82, 185, 48,
    CB_STYLE_IMG, 16, 0, ClrGray, 0, 0, 0, g_pui8Logo,
    OnCheckChange),
    CheckBoxStruct(g_psPanels + 3, g_psCheckBoxIndicators, 0,
    &g_sKentec320x240x16_SSD2119, 40, 134, 189, 42,
    CB_STYLE_OUTLINE | CB_STYLE_TEXT, 16,
    0, ClrGray, ClrGreen, &g_sFontCm20, "Select",
    0, OnCheckChange),
};
#define NUM_CHECK_BOXES         (sizeof(g_psCheckBoxes) /   \
                                 sizeof(g_psCheckBoxes[0]))
Example #2
0
{
    CanvasStruct(g_psPanels + 3, g_psCheckBoxIndicators + 1, 0,
                 &g_sSHARP480x272x16Display, 230+X_OFFSET, 30+Y_OFFSET, 50, 42,
                 CANVAS_STYLE_IMG, 0, 0, 0, 0, 0, g_ledOFF, 0),
    CanvasStruct(g_psPanels + 3, g_psCheckBoxIndicators + 2, 0,
                 &g_sSHARP480x272x16Display, 230+X_OFFSET, 82+Y_OFFSET, 50, 48,
                 CANVAS_STYLE_IMG, 0, 0, 0, 0, 0, g_ledOFF, 0),
    CanvasStruct(g_psPanels + 3, 0, 0,
                 &g_sSHARP480x272x16Display, 230+X_OFFSET, 134+Y_OFFSET, 50, 42,
                 CANVAS_STYLE_IMG, 0, 0, 0, 0, 0, g_ledOFF, 0)
};
tCheckBoxWidget g_psCheckBoxes[] =
{
    CheckBoxStruct(g_psPanels + 3, g_psCheckBoxes + 1, 0,
                   &g_sSHARP480x272x16Display, 40+X_OFFSET, 30+Y_OFFSET, 185, 42,
                   CB_STYLE_OUTLINE | CB_STYLE_FILL | CB_STYLE_TEXT, 16,
                   ClrMidnightBlue, ClrGray, ClrSilver, &g_sFontCm22, "Select",
                   0, OnCheckChange),
    CheckBoxStruct(g_psPanels + 3, g_psCheckBoxes + 2, 0,
                   &g_sSHARP480x272x16Display, 40+X_OFFSET, 82+Y_OFFSET, 185, 48,
                   CB_STYLE_IMG, 16, 0, ClrGray, 0, 0, 0,
                   g_TILogo, OnCheckChange),
    CheckBoxStruct(g_psPanels + 3, g_psCheckBoxIndicators, 0,
                   &g_sSHARP480x272x16Display, 40+X_OFFSET, 134+Y_OFFSET, 189, 42,
                   CB_STYLE_OUTLINE | CB_STYLE_TEXT, 16,
                   0, ClrGray, ClrGreen, &g_sFontCm20, "Select",
                   0, OnCheckChange),
};
#define NUM_CHECK_BOXES         (sizeof(g_psCheckBoxes)/sizeof(g_psCheckBoxes[0]))

//*****************************************************************************
    CANVAS_STYLE_IMG, 0, 0, 0, 0, 0, g_pucLightOff, 0),
    CanvasStruct(g_psPanels + 3, g_psCheckBoxIndicators + 2, 0,
    &g_sFormike240x320x16_ILI9320, 190, 90, 50, 50,
    CANVAS_STYLE_IMG, 0, 0, 0, 0, 0, g_pucLightOff, 0),
    CanvasStruct(g_psPanels + 3, g_psCheckBoxIndicators + 3, 0,
    &g_sFormike240x320x16_ILI9320, 190, 150, 50, 50,
    CANVAS_STYLE_IMG, 0, 0, 0, 0, 0, g_pucLightOff, 0),
    CanvasStruct(g_psPanels + 3, 0, 0,
    &g_sFormike240x320x16_ILI9320, 190, 210, 50, 50,
    CANVAS_STYLE_IMG, 0, 0, 0, 0, 0, g_pucLightOff, 0)
};
tCheckBoxWidget g_psCheckBoxes[] =
{
    CheckBoxStruct(g_psPanels + 3, g_psCheckBoxes + 1, 0,
    &g_sFormike240x320x16_ILI9320, 0, 30, 185, 50,
    CB_STYLE_OUTLINE | CB_STYLE_FILL | CB_STYLE_TEXT, 16,
    ClrMidnightBlue, ClrGray, ClrSilver, g_pFontCm22, "Select",
    0, OnCheckChange),
    CheckBoxStruct(g_psPanels + 3, g_psCheckBoxes + 2, 0,
    &g_sFormike240x320x16_ILI9320, 0, 90, 185, 50,
    CB_STYLE_IMG, 16, 0, ClrGray, 0, 0, 0, g_pucLogo,
    OnCheckChange),
    CheckBoxStruct(g_psPanels + 3, g_psCheckBoxes + 3, 0,
    &g_sFormike240x320x16_ILI9320, 0, 150, 185, 50,
    CB_STYLE_OUTLINE | CB_STYLE_TEXT, 32, 0,
    ClrGreen, ClrSpringGreen, g_pFontCm22, "Select",
    0, OnCheckChange),
    CheckBoxStruct(g_psPanels + 3, g_psCheckBoxIndicators, 0,
    &g_sFormike240x320x16_ILI9320, 0, 210, 185, 50,
    CB_STYLE_IMG, 32, 0, ClrDarkRed, 0, 0, 0, g_pucLogo,
    OnCheckChange)