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
 WGLogicalUnitsToDevicePixels
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jandropov

4 Posts

Posted - 26 Aug 2005 :  08:28:11  Show Profile  Reply with Quote
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?

thanks.

quinncurtis

1164 Posts

Posted - 26 Aug 2005 :  11:36:19  Show Profile  Reply with Quote
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.
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