Re: Now is the winter of our integer x,y, etc...
- Posted by Euman <euman at bellsouth.net> Jan 27, 2001
- 475 views
------=_NextPart_000_0032_01C088AB.9D141CA0 charset="iso-8859-1" Not really Thomas, An onPaint event actually is not controlled by you (per-say) You can set it up to Paint the Window when Windows thinks it need to or, you can force Windows to re-Paint the window with repaintWindow( = Win )=20 constant Win =3D create( Window, "Name", 0, Default, Default, 200, 220, 0 ), Paint only the area specified by {x1, y1, x2, y2} in Win=20 procedure PaintWin(integer x1, integer y1, integer x2, integer y2) -- if your Window when you created it was ( Default, Default, 200, 200 ) -- then integer x1 would be Default -- y1 would be Default -- x2 would be 200 -- y2 would be 200 end procedure onPaint[Win] =3D routine_id("PaintWin") euman ----- Original Message -----=20 From: Paul Kerslake=20 To: EUforum at topica.com=20 Sent: Saturday, January 27, 2001 21:24 Subject: Re: Now is the winter of our integer x,y, etc... Soooooooooooooo, All those numbers are assinged "automatically". Like if you wanted a = window with a bitmap background, you'd use the x1,x2,y1,y2,=20 in the procedure (the bits in the brackets) THEN you'd use it for any = window and the X,Y etc. would be assinged values according to which = window you told it to use? That's a mouthfull! Here's what I mean: =20 START procedure paintwin( integer x1,integer y,integer x2,integer y2) -----tell windows to paint the window (I don't know the command = off-hand)-- end procedure paintwin[window1]=20 END --Then the values of window1 would be plugged into all those confusing = variables yes? Thanks John and Euman, -----thomas ____________________________________________________________ T O P I C A -- Learn More. Surf Less.=20 Newsletters, Tips and Discussions on Topics You Choose. http://www.topica.com/partner/tag01 ____________________________________________________________ T O P I C A -- Learn More. Surf Less. Newsletters, Tips and Discussions on Topics You Choose. http://www.topica.com/partner/tag01 ------=_NextPart_000_0032_01C088AB.9D141CA0 charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Not really Thomas,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>An onPaint event actually is not = controlled by you=20 (per-say)</FONT></DIV> <DIV><FONT face=3DArial size=3D2>You can set it up to Paint the Window = when Windows=20 thinks it need</FONT></DIV> <DIV><FONT face=3DArial size=3D2>to or, you can force Windows to = re-Paint the window=20 with repaintWindow( Win ) </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV> <DIV>constant</DIV> <DIV><FONT face=3DArial size=3D2>Win =3D create( Window, "Name", 0, = Default, Default,=20 200, 220, 0 ),</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV></DIV> <DIV><FONT face=3DArial size=3D2> <DIV><FONT face=3DArial size=3D2>Paint only the area specified by = {x1, y1, x2,=20 y2} in Win </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV></FONT></DIV> <DIV><FONT face=3DArial size=3D2>procedure PaintWin(integer x1, integer = y1, integer=20 x2, integer y2)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>-- if your Window when you created it = was (=20 Default, Default, 200, 200 )</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>-- then integer x1 would be = Default</FONT></DIV> <DIV><FONT face=3DArial=20 bsp; =20 y1 would be Default</FONT></DIV> <DIV><FONT face=3DArial=20 bsp; =20 x2 would be 200</FONT></DIV> <DIV><FONT face=3DArial=20 bsp; =20 y2 would be 200</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>end procedure</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>onPaint[Win] =3D = routine_id("PaintWin")</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>euman</FONT></DIV> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A title=3Dpaulk at UNISERVE.COM href=3D"mailto:paulk at UNISERVE.COM">Paul = Kerslake</A>=20 </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A = title=3DEUforum at topica.com=20 href=3D"mailto:EUforum at topica.com">EUforum at topica.com</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Saturday, January 27, = 2001=20 21:24</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: Now is the winter = of our=20 integer x,y, etc...</DIV> <DIV><BR></DIV> <DIV><FONT face=3DArial size=3D2>Soooooooooooooo,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>All those numbers are assinged = "automatically".=20 Like if you wanted a window with a bitmap background, you'd use the=20 x1,x2,y1,y2, </FONT></DIV> <DIV><FONT face=3DArial size=3D2>in the procedure (the bits in the = brackets) THEN=20 you'd use it for any window and the X,Y etc. would be assinged values=20 according to which window you told it to use? That's a mouthfull! = Here's what=20 I mean: </FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>START</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>procedure paintwin( integer = x1,integer y,integer=20 x2,integer y2)</FONT></DIV> <DIV><FONT face=3DArial size=3D2>-----tell windows to paint the window = (I don't=20 know the command off-hand)--</FONT></DIV> <DIV><FONT face=3DArial size=3D2>end procedure</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>paintwin[window1] </FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>END</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>--Then the values of window1 would be = plugged=20 into all those confusing variables yes?</FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks John and Euman,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial = _________________________ T O P I C A -- Learn More. Surf Less.=20 Newsletters, Tips and Discussions on Topics You Choose. <A = r/tag01</A></PRE></BLOCKQUOTE> T O P I C A -- Learn More. Surf Less. Newsletters, Tips and Discussions on Topics You Choose. <A HREF=3D"http://www.topica.com/partner/tag01">http://www.topica.com/partner/tag01</A></PRE> ------=_NextPart_000_0032_01C088AB.9D141CA0--