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 

Painting in TScrollingWinControl

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





PostPosted: Wed Apr 06, 2005 5:28 am    Post subject: Painting in TScrollingWinControl Reply with quote



How to I draw custom graphics in TScrollingWinControl? I'm doing a custom
control that requires scrollbars.


Back to top
Hans Galema
Guest





PostPosted: Wed Apr 06, 2005 6:51 am    Post subject: Re: Painting in TScrollingWinControl Reply with quote



tinyabs wrote:
Quote:
How to I draw custom graphics in TScrollingWinControl? I'm doing a custom
control that requires scrollbars.

You could supply it with a TControlCanvas. Or just a TPaintBox maybe.

Hans,

Back to top
tinyabs
Guest





PostPosted: Wed Apr 06, 2005 9:29 pm    Post subject: Re: Painting in TScrollingWinControl Reply with quote



Do you mean setting TPaintBox as a child of TScrollingWinControl? Currently,
I paint after the control processed WM_PAINT.

I think I just use TWinControl with WS_EX_RIGHTSCROLLBAR to do it.


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

Quote:
tinyabs wrote:
How to I draw custom graphics in TScrollingWinControl? I'm doing a custom
control that requires scrollbars.

You could supply it with a TControlCanvas. Or just a TPaintBox maybe.

Hans,



Back to top
Hans Galema
Guest





PostPosted: Thu Apr 07, 2005 8:05 am    Post subject: Re: Painting in TScrollingWinControl Reply with quote

tinyabs wrote:
Quote:
Do you mean setting TPaintBox as a child of TScrollingWinControl? Currently,
I paint after the control processed WM_PAINT.

But where do you paint on ? Which canvas ? You asked "How to draw..".
Maybe I did not understand what you needed.

Quote:
I think I just use TWinControl with WS_EX_RIGHTSCROLLBAR to do it.

To draw a graphic on/or what ??

Hans.

Back to top
tinyabs
Guest





PostPosted: Thu Apr 07, 2005 6:42 pm    Post subject: Re: Painting in TScrollingWinControl Reply with quote

It's a specialized control. Try imagine MS Paint using this control as its
drawing area (with scrollbars). I draw other things on my control.

Quote:
But where do you paint on ? Which canvas ? You asked "How to draw..".
Maybe I did not understand what you needed.
I draw directly to the HDC created during WM_PAINT.


My original intention was to find out which control supports custom painting
and scrollbars. Cos I think TScrollingWinControl don't support custom
painting, it's only for placing child controls.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) 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.