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
 Creating graphs in main window
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jtype327

3 Posts

Posted - 07 Sep 2004 :  17:26:23  Show Profile  Reply with Quote
I would like to create a graph inside a frame instead of using a separate page. Does anyone know of a way to do this? I am using VB6.

I have created a page that is the same size as the frame, but it still sits above the program.

Thanks.

quinncurtis

1164 Posts

Posted - 07 Sep 2004 :  18:00:19  Show Profile  Reply with Quote
That is defined by the window style (dwWinStyle) in the initial WGCreatePage call. See the manual concerning that function. You have been creating a default Popup window which happens when you pass in NULL or 0 as the window style. If you want the graph inside another window, create it using a WS_CHILD + WS_CLIPSIBLINGS + WS_VISIBLE window style, exactly as if you were create an arbitrary child window using Windows API calls. Make sure you specify the parent window handle (hwParent), and it sounds like you should use the PAGE_CLIENT nPosStyle parameter, where it will fill the client area of the parent window. The MDIDemo example program has an example of this.

Go to Top of Page

jtype327

3 Posts

Posted - 07 Sep 2004 :  18:32:13  Show Profile  Reply with Quote
Thank you for your quick response. That did the trick.
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