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 

How to show Grid in a Form like BCB does

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





PostPosted: Thu May 19, 2005 11:58 pm    Post subject: How to show Grid in a Form like BCB does Reply with quote




Hi again,

I want to show the grid that you see on the form in BCB even
when you execute the project. Is there a property that i can
set to do this, or do I have to manually draw horizontal and
vertical lines in the form?

Please advise.

thanks,
Veebo
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri May 20, 2005 12:58 am    Post subject: Re: How to show Grid in a Form like BCB does Reply with quote




"Veebo" <pandya (AT) sa (DOT) com> wrote


Quote:
I want to show the grid that you see on the form in BCB
even when you execute the project. Is there a property that
i can set to do this, or do I have to manually draw horizontal
and vertical lines in the form?

You have to draw them manually, such as in the form's OnPaint event.


Gambit



Back to top
veebo
Guest





PostPosted: Sat May 21, 2005 1:58 am    Post subject: Re: How to show Grid in a Form like BCB does Reply with quote




Any suggestions on how to achieve this efficiently?

what controls should I use to draw horizontal and vertical
lines? bevel?

thanks,
Veebo

Quote:

You have to draw them manually, such as in the form's OnPaint event.


Quote:
Gambit



Back to top
Hans Galema
Guest





PostPosted: Sat May 21, 2005 7:33 pm    Post subject: Re: How to show Grid in a Form like BCB does Reply with quote

veebo wrote:

Quote:
what controls should I use to draw horizontal and vertical
lines? bevel?

As you could read: you have to draw them manually on the TForm's
Canvas.

Set Canvas->Pen->Color and Canvas->Pen->Style and then use
MoveTo() or MovetoEx() and LineTo().

Hans.

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