Skip to main content
Tran Minh Cong
Associate III
July 15, 2018
Question

Icon View Widget problem

  • July 15, 2018
  • 7 replies
  • 2072 views
Posted on July 15, 2018 at 03:27

Hi every body,

I'm doing 1 menu icon (3-4 icon), using icon view widget.

From .png image file to convert .dta, using BmpCvtST.exe in folder STemWin/software in stm32f7cube.

If using image widget, .png files showed ok.

If

using 

iconview 

widget, insert stream data .dta, show data have problem, only rectangle blue.

Below is picture that is show problem!

Can you tell me to fix that bug?

Have any other solution to do menu icon?

Thanks.

    This topic has been closed for replies.

    7 replies

    Tran Minh Cong
    Associate III
    July 15, 2018
    Posted on July 15, 2018 at 05:14

    I have just refer link:

    https://forum.segger.com/index.php/Thread/1777-GuiBuilder-and-IconView-Problem/

     

    But haven't information to fix that bug!

    Tran Minh Cong
    Associate III
    July 15, 2018
    Posted on July 15, 2018 at 11:16

    Dear every body,

    I have just checked STemWin version.

    Current 

    STemWin version which i'm using is 5.32.

    If change to STemWin version 5.40,icon view 

    insert stream data .dta, show data ok.

    But build project after change stemwin to 5.40 have error:

    .\Objects\cnc_4axis.axf: error: L6002U: Could not open file .\Src\STemWin\Lib\STemWin532_CM7_OS_Keil_ot.lib: No such file or directory

    How to change lib STemWin532_CM7_OS_Keil_ot.lib to STemWin540_CM7_OS_Keil_ot.lib?

    Thanks!

    Vitaliy Chernobay
    Senior
    July 15, 2018
    Posted on July 15, 2018 at 21:47

    CubeMX 4.26 use STemWin 5.40

    Tran Minh Cong
    Associate III
    August 9, 2018

    Dear you,

    I have a problems:

    I can read id selected from ICONVIEW_GetSel(), but not set selected id via ICONVIEW_SetSel().

    ICONVIEW_SetSel() can't effect?

    Can you tellme to fix that bug, please?

    Thanks.

    Details:

    icon_idx = ICONVIEW_GetSel(hIcones);//can get id normally id:0->7, i have 8 icon image.

    printf("icon up %d\r\n", icon_idx);

    if (icon_idx < icon_idx_max) {

    icon_idx++;

    }

    if (icon_idx >= icon_idx_max) {

    icon_idx = icon_idx_max - 1;

    }

    ICONVIEW_SetSel(hIcones, icon_idx);//haven't effect?

    Tran Minh Cong
    Associate III
    August 9, 2018

    About ICONVIEW_SetSel():

    Tran Minh Cong
    Associate III
    August 9, 2018

    Sorry,

    Below is picture when using ICONVIEW_SetSel().

    Thanks.