Spinbox Issue

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Spinbox Issue

    Hi, I currently experiencing some problem with spinbox, it will not increment or decrement when I press the up & down key next to the spinbox. The callback functions for the spinbox seems to be working fine ( i.e. WM_NOTIFICATION_CLICKED, WM_NOTIFICATION_RELEASED). I also, created some buttons and they work fine. In my main loop, I call GUI_TOUCH_StoreState() and GUI_Exec() to execute tasks. I am using STMEMWIN 5.22V. Thanks.

    initi Code
    hItem = WM_GetDialogItem(pMsg->hWin, ID_SPINBOX_0);
    SPINBOX_SetRange(hItem, 0, 255);
    SPINBOX_SetValue(hItem, 0)

    Minato
  • Hi Minato,

    I've tried to reproduce the problem, but unfortunately without success. My simple test:

    C Source Code

    1. #include "DIALOG.h"
    2. void MainTask(void) {
    3. WM_HWIN hWin;
    4. GUI_Init();
    5. hWin = SPINBOX_CreateUser(10, 10, 100, 20, WM_HBKWIN, WM_CF_SHOW, 1234, 0, 255, 0);
    6. SPINBOX_SetRange(hWin, 0, 255);
    7. SPINBOX_SetValue(hWin, 0);
    8. while (1) {
    9. GUI_Delay(100);
    10. }
    11. }
    Display All


    Does that test works on your system?

    Regards,

    Jörg
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.