Author |
Topic  |
|
kla
2 Posts |
Posted - 07 Jun 2006 : 08:09:37
|
We use WGRectangle() and WGLine() to draw colored regions and tolerance lines on the background of line plots.
The problem is that if we place grids behind the datasets with WGToggleGridsOrder(TRUE) the grids are then drawn before the rectangular regions -> Grid do not appear.
WGToggleGridsLine(TRUE) seems to correct the problem for the WGLine() objects.
Further, the data values occasionally coincide directly with a grid line, so it appears missing if we draw grids on top of the datasets WGToggleGridsOrder(FALSE).
We need the order: Rectangles, Grids, Lines, Datasets.
Any suggestions?
|
|
quinncurtis
1164 Posts |
Posted - 07 Jun 2006 : 09:46:38
|
The z-order placement of the grids is either going to be under all of the chart objects, or on top of them. There is no intermediate setting that will some objects (Rectangles) to be under the grid and others (line plots, and lines) to be on top of the grid. |
 |
|
kla
2 Posts |
Posted - 08 Jun 2006 : 09:55:50
|
I discovered the cause of the problem.
Initially I thought this was because the WGRectangles() were lower Z-order, but I discovered (accidently) that it is because after all the WGLine() are created they are all disabled with WGShowObject(). In this case, the grids are not drawn. If I enable at least one of them, the grids appeared.
So, it appears that the library probably does some checking on the WGLine() status - if they are all disabled, then grids are also not drawn.
My work-around solution: Create a 'dummy' WGLine() (actually, WGLineNorm()works) in the corner with same color as the background.
|
 |
|
|
Topic  |
|
|
|