 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Vikas Sinha Guest
|
Posted: Mon Jan 10, 2005 10:05 am Post subject: TButton |
|
|
How to change the color of TButton and make the cells of a TStringGrid multiline.
Thanks ALL,
Regards
Vikas
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Jan 10, 2005 6:55 pm Post subject: Re: TButton |
|
|
"Vikas Sinha" <sinnervikas (AT) rediffmail (DOT) com> wrote
| Quote: | How to change the color of TButton
|
You don't. TButton does not support that. Use a different button
component, such as TSpeedButton. Or alternatively, use a TPanel and change
its Bevel properties in its OnMouseDown/Up events.
| Quote: | and make the cells of a TStringGrid multiline.
|
You need to over-draw the grid cells manually via the OnDrawCell event. You
can use the DrawText() function from the Win32 API to handle drawing text
with line breaks.
Gambit
|
|
| Back to top |
|
 |
|
|
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
|
|