Alaska Software Inc. - Graphic function in a standard window?
Username: Password:
AuthorTopic: Graphic function in a standard window?
Normand AubryGraphic function in a standard window?
on Thu, 11 Nov 2004 13:46:49 -0500
How can we draw with GraArc() in a standard window instead of the small gray
zone available?
When compiling a small test program to test Graphic functions it always open
2 windows when run?
________________________________________________________
Visitez le site du magazine Aubry et Cie www.norja.net
Richard L. Hankins Jr.Re: Graphic function in a standard window?
on Thu, 11 Nov 2004 13:59:28 -0600
What I do is this:

1) Draw me a static on the form at the whole size of the form (oStat)
2) Do The Code Like this:
    oPS := oStat:LockPS()

    GraArc(...

    oPS := oStat:UnLockPS()

**NOTE** You have to make sure to unlock the PS when you are done with it, this was stressed to me alot... not sure what happens if
you do not unlock it... they got it into my head good, and I have never experienced it... haha..

                - Richard Hankins
Joe Carrick Re: Graphic function in a standard window?
on Thu, 11 Nov 2004 12:56:36 -0800
Richard L. Hankins Jr. wrote:
> What I do is this:
> 
> 1) Draw me a static on the form at the whole size of the form (oStat)
> 2) Do The Code Like this:
>     oPS := oStat:LockPS()
> 
>     GraArc(...
> 
>     oPS := oStat:UnLockPS()
> 
> **NOTE** You have to make sure to unlock the PS when you are done with it, this was stressed to me alot... not sure what happens if
> you do not unlock it... they got it into my head good, and I have never experienced it... haha..
> 
>                 - Richard Hankins

You should also be able to use the drawingArea of the Dialog instead of 
a XbpStatic.  ie:

	oPs := oDlg:drawingArea:LockPS()

	GraArc(...

	oDlg:drawingArea:UnLockPS( oPs )

-Joe