| View previous topic :: View next topic |
| Author |
Message |
Veebo Guest
|
Posted: Thu May 19, 2005 11:58 pm Post subject: How to show Grid in a Form like BCB does |
|
|
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
|
Posted: Fri May 20, 2005 12:58 am Post subject: Re: How to show Grid in a Form like BCB does |
|
|
"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
|
Posted: Sat May 21, 2005 1:58 am Post subject: Re: How to show Grid in a Form like BCB does |
|
|
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.
|
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Sat May 21, 2005 7:33 pm Post subject: Re: How to show Grid in a Form like BCB does |
|
|
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 |
|
 |
|