Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Windows
 Charting and Real-Time Graphics Tools for Windows
 Grid Placement and WGRectangle objects
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kla

2 Posts

Posted - 07 Jun 2006 :  08:09:37  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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.
Go to Top of Page

kla

2 Posts

Posted - 08 Jun 2006 :  09:55:50  Show Profile  Reply with Quote
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07