| View previous topic :: View next topic |
| Author |
Message |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Feb 13, 2004 12:25 am Post subject: Re: How to paint a border. |
|
|
"Hernán Díaz" <h.diaz (AT) epm (DOT) net.co> wrote
| Quote: | I am making a new component that inherits from
TCustomControl. How can I paint a border?
|
Override the inherited Paint() method and use the Canvas's FrameRect()
method.
Gambit
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Feb 13, 2004 2:37 am Post subject: Re: How to paint a border. |
|
|
"Hernán Díaz" <h.diaz (AT) epm (DOT) net.co> wrote
| Quote: | I really need to paint a border outside of the client area
and FrameRect() is used to paint in the client area.
|
Then simply set the control's Color to the desired frame color, and use
FillRect() to fill in the inner area with another color as desired.
Gambit
|
|
| Back to top |
|
 |
|