BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Drawing Shapes

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Jake
Guest





PostPosted: Sat Jan 03, 2004 6:14 am    Post subject: Drawing Shapes Reply with quote



Hi,
I need to draw a rectangle on a form that is to be drawn once and will
remain when an application opens on top of it.
ie the rectangle will not have to be refreshed.
I tried using the canvas->Rectangle but when another application is opened
and closed the rectangle is gone ie the form will need to be refreshed.

Jake


Back to top
Hans Galema
Guest





PostPosted: Sun Jan 04, 2004 10:38 am    Post subject: Re: Drawing Shapes Reply with quote



Jake wrote:

Quote:
I need to draw a rectangle on a form that is to be drawn once and will
remain when an application opens on top of it.
ie the rectangle will not have to be refreshed.

But, if you placed that drawing code in the FormPaint() event it
would be repainted when needed.

Quote:
I tried using the canvas->Rectangle but when another application is opened
and closed the rectangle is gone ie the form will need to be refreshed.

Yes, that is normal behaviour. If you really only want to draw once you
could use a TImage and draw once on it.

Hans.

Back to top
Jake
Guest





PostPosted: Thu Jan 08, 2004 5:53 am    Post subject: Re: Drawing Shapes Reply with quote



Hi,

Thanks Hans for your advise.
How does one place the drawing code in the FormPaint()event?

Jake

"Hans Galema" <dontusethis (AT) dontusethis (DOT) nl> wrote

Quote:
Jake wrote:

I need to draw a rectangle on a form that is to be drawn once and will
remain when an application opens on top of it.
ie the rectangle will not have to be refreshed.

But, if you placed that drawing code in the FormPaint() event it
would be repainted when needed.

I tried using the canvas->Rectangle but when another application is
opened
and closed the rectangle is gone ie the form will need to be refreshed.

Yes, that is normal behaviour. If you really only want to draw once you
could use a TImage and draw once on it.

Hans.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.