Hi,
I have a GRAPH with horizontal slider. There are some buttons in the graph area. Each time I move the slider these buttons disappear behind the graph.
As a workaround I used WM_BringToTop to make them visible again but this is not very elegant. Is there a way to avoid this?
Regards
Jan
Attached is my GRAPH initialisation
Display All
I have a GRAPH with horizontal slider. There are some buttons in the graph area. Each time I move the slider these buttons disappear behind the graph.
As a workaround I used WM_BringToTop to make them visible again but this is not very elegant. Is there a way to avoid this?
Regards
Jan
Attached is my GRAPH initialisation
Source Code
- hItem = WM_GetDialogItem(pMsg->hWin, ID_GRAPH_1);
- for (Ch = 0; Ch < 9; Ch++)
- {
- ahData[Ch] = GRAPH_DATA_YT_Create(ChColors[Ch], HorBuff, NULL, 0);
- GRAPH_AttachData(hItem, ahData[Ch]); /*add graph data to plot diagram*/
- GRAPH_DATA_YT_SetAlign(ahData[Ch], GRAPH_ALIGN_LEFT);
- GRAPH_DATA_YT_MirrorX(ahData[Ch], 1);
- }
- GRAPH_SetBorder(hItem, 0, 0, 0, 20);
- GRAPH_SetAutoScrollbar(hItem, GUI_COORD_X, 1);
- GRAPH_SetAutoScrollbar(hItem, GUI_COORD_Y, 0); /*disable GRAPH vert. scrollbar has a bug (inverse)*/
- GRAPH_SetVSizeX(hItem, HorBuff);
- GRAPH_SetVSizeY(hItem, VerBuff);
- GRAPH_SetColor(hItem, GUI_GRAY, GRAPH_CI_GRID);
- GRAPH_SetColor(hItem, GUI_GRAY, GRAPH_CI_FRAME);
- GRAPH_SetColor(hItem, GUI_BLACK, GRAPH_CI_BORDER);
- GRAPH_SetColor(hItem, GUI_BLACK, GRAPH_CI_BK);
- GRAPH_SetGridFixedX(hItem, 1);
- GRAPH_SetGridDistY(hItem, 37);
- GRAPH_SetGridDistX(hItem, GRAPH_Width / 10);
- GRAPH_SetGridVis(hItem, 1);
- GRAPH_SetLineStyleH(hItem, GUI_LS_DOT);
- GRAPH_SetLineStyleV(hItem, GUI_LS_DOT);
- GRAPH_SetUserDraw(hItem, UserDraw); /*for time scale*/
- hScaleV = GRAPH_SCALE_Create(35, GUI_TA_RIGHT|GUI_TA_BOTTOM, GRAPH_SCALE_CF_VERTICAL, 37); /*create and add vertical scale*/
- GRAPH_SCALE_SetTextColor(hScaleV, GUI_WHITE);
- GRAPH_AttachScale(hItem, hScaleV);