STM32F429I-Discovery board: SLIDER_Handle
I'm trying to work with a slider on the STM32F429I-Discovery board.
I have build a GUI with the GUI-tool.
The widgets are created in the LogViewerDLG.c file as follows:
static const GUI_WIDGET_CREATE_INFO _aDialogCreate[] = {
{ FRAMEWIN_CreateIndirect, "LogViewer", ID_FRAMEWIN_0, 0, 0, 240, 320, 0, 0x64, 0 },
{ MULTIEDIT_CreateIndirect, "Multiedit", ID_MULTIEDIT_0, 6, 4, 214, 149, 0, 0x0, 0 },
{ BUTTON_CreateIndirect, "Auto", ID_BUTTON_0, 9, 244, 100, 50, 0, 0x0, 0 },
{ BUTTON_CreateIndirect, "Manual", ID_BUTTON_1, 117, 244, 100, 50, 0, 0x0, 0 },
{ SLIDER_CreateIndirect, "Slider", ID_SLIDER_0, 7, 164, 214, 35, 0, 0x0, 0 },
{ EDIT_CreateIndirect, "Edit", ID_EDIT_0, 72, 206, 80, 20, 0, 0x64, 0 },
The Multiedit, Edit and buttons all work correctly. I am having trouble working with the slider though.
To set the range and get the slider value I need the SLIDER_Handle hObj. I have no idea what the Handle is or how to find it. I've tried these functions, but they do not work:
SLIDER_SetRange(ID_SLIDER_0,0,50);
SLIDER_GetValue(ID_SLIDER_0);
I gues the SLIDER_ID is not the same the SLIDER_HANDLE?
Does anyone know how to use these functions?
Thx!
