Hi all, i'm trying to draw a vertical line (top to bottom) on my chart, but it's position would have to be based on a domain value and not mouse coordinates. I discovered the following function: WGLogicalUnitsToDevicePixels. However, i just throws an exception when i attempt to use it.
1) Does this function do what i think it does? i.e. turn and domain/range pair into coordinates where i can draw the line.
2) If it doesn't do what i think it does what function should i be using?
What method are you trying to use to draw your line and where are you placing the call ?
You can't just make arbitray calls to the Windows API drawing routines in the graph building method. They will not be stored and "replayed" when the graph is drawn, like our WG drawing functions are. Also, the graph building method is called before the graph window is visible and calls there may not show up.