Hi,
I'm working on project which I want to add, at the bottom of the TFT display (which has 320 x 240 pixels), 6 icons. So I've created an ICONVIEW
In order to add the bitmaps items, I've defined the 6 icons:
Display All
And when I create the _cbDialog I (think I) add all 6 icons:
Display All
All compile correctly, but I can only see the first icon! What I let myself go to put?
Notice:
1rst icon size is 53 x 36 pixels
2nd, 3th, 4th, 5th 6th icon size's are 66 x 36 pixels
And the window display size is 320 x 240 pixels.
I would like put the icons like this:
------------------------------------------
-
-
-
-
-
-
-
------------------------------------------
- ic 1 - ic 2 - ic 3 - ic 4 - ic 5 - ic 6
------------------------------------------
Is a problem different "icon size"?
Thanks in advance
I'm working on project which I want to add, at the bottom of the TFT display (which has 320 x 240 pixels), 6 icons. So I've created an ICONVIEW
In order to add the bitmaps items, I've defined the 6 icons:
C Source Code
- /*********************************************************************** Types************************************************************************/
- typedef struct {
- const GUI_BITMAP * pBitmap;
- const char * pText;
- const char * pExplanation;
- } BITMAP_ITEM;
- /*********************************************************************** _aBitmapItem*/
- static const BITMAP_ITEM _aBitmapItem[] = {
- {&bmEntradamatricula, "", "Plate entrance"},
- {&bmimprimir, "", "Print"},
- {&bmreimpressio, "", "Reprint"},
- {&bmajustosinterns, "", "Internal adjust"},
- {&bmbasededades, "", "Data base"},
- {&bmok, "", "Ok"},};
And when I create the _cbDialog I (think I) add all 6 icons:
C Source Code
- static void _cbDialog(WM_MESSAGE * pMsg) {
- const void * pData;
- WM_HWIN hItem;
- U32 FileSize;
- int NCode;
- int Id;
- // USER START (Optionally insert additional variables) ICONVIEW_Handle hIconWin; uint8_t i; // USER END
- switch (pMsg->MsgId) {
- case WM_INIT_DIALOG:
- [...]
- /** Create iconview widget
- * ICONVIEW_Handle ICONVIEW_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int xSizeItems, int ySizeItems);
- * WM_CF_SHOW to make the widget visible immediately
- */
- hIcones = WM_GetDialogItem(pMsg->hWin, ID_ICONVIEW_0);
- ICONVIEW_SetSpace(hIcones, GUI_COORD_X, 53);
- ICONVIEW_SetIconAlign(hIcones, ICONVIEW_IA_TOP);
- for (i = 0; i < GUI_COUNTOF(_aBitmapItem); i++)
- { /* Add icons to the widget */
- ICONVIEW_AddBitmapItem(hIcones, _aBitmapItem[i].pBitmap, _aBitmapItem[i].pText);
- }
- [..]
All compile correctly, but I can only see the first icon! What I let myself go to put?
Notice:
1rst icon size is 53 x 36 pixels
2nd, 3th, 4th, 5th 6th icon size's are 66 x 36 pixels
And the window display size is 320 x 240 pixels.
I would like put the icons like this:
------------------------------------------
-
-
-
-
-
-
-
------------------------------------------
- ic 1 - ic 2 - ic 3 - ic 4 - ic 5 - ic 6
------------------------------------------
Is a problem different "icon size"?
Thanks in advance