Hello,
in a GRAPH widget I want to display a scale in the border area.
I have added 10 pixels border on the right and on the bottom side.
In these border areas frequently appear random pixels. Did I miss something in my initialization?
Regards
Jan
Display All
in a GRAPH widget I want to display a scale in the border area.
I have added 10 pixels border on the right and on the bottom side.
In these border areas frequently appear random pixels. Did I miss something in my initialization?
Regards
Jan
Source Code
- hGraph = WM_GetDialogItem(pMsg->hWin, ID_GRAPH);
- GRAPH_SetAutoScrollbar(hGraph, GUI_COORD_X, 0); /*disable GRAPH hor. scrollbar*/
- GRAPH_SetAutoScrollbar(hGraph, GUI_COORD_Y, 0); /*disable GRAPH vert. scrollbar*/
- GRAPH_SetColor(hGraph, GUI_GRAY, GRAPH_CI_GRID);
- GRAPH_SetColor(hGraph, GUI_GRAY, GRAPH_CI_FRAME);
- GRAPH_SetColor(hGraph, GUI_BLACK, GRAPH_CI_BORDER);
- GRAPH_SetColor(hGraph, GUI_BLACK, GRAPH_CI_BK);
- GRAPH_SetGridFixedX(hGraph, 1);
- GRAPH_SetGridDistX(hGraph, (FFTWidthMaCon) / 10);
- GRAPH_SetGridDistY(hGraph, FFTVerSizeMaCon / 8);
- GRAPH_SetGridVis(hGraph, 1);
- GRAPH_SetLineStyleH(hGraph, GUI_LS_DOT);
- GRAPH_SetLineStyleV(hGraph, GUI_LS_DOT);
- GRAPH_SetBorder(hGraph, 0, 0, 10, 10);
- hScaleH = GRAPH_SCALE_Create(FFTVerSizeMaCon, GUI_TA_CENTER, GRAPH_SCALE_CF_HORIZONTAL, FFTWidthMaCon / 10); /*create hor. scale*/
- GRAPH_SCALE_SetTextColor(hScaleH, GUI_WHITE);
- GRAPH_SCALE_SetFont(hScaleH, GUI_FONT_10_1);
- GRAPH_SCALE_SetNumDecs(hScaleH, 0); /*no digits after decimal point*/
- GRAPH_SCALE_SetFactor(hScaleH, 200.0 / (float)(FFTWidthMaCon - 1));
- GRAPH_AttachScale(hGraph, hScaleH);