Problem changing the colour of an entire inactive tab of a TJvPageControl
"grookledge" <[email protected]> Tue, 07 Aug 2007 04:48:32 -0000
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have a TJvPageControl on my form. I have set its color to clGray. I
have found that all the inactive/unselected tabs are still colored
'clBtnFace' irrespective of the PageControl.Color property.
As a result I have turned to using the OnDrawTab event handler. I have
set the OwnerDraw property to True and have written an OnDrawTab event
handler.
I can successfully change the colour of part of the tab, basically by
FillRect with the 'Rect' passed to the OnDrawtab event handler.
However it seems that the Rect parameter does not cover the entire
area of the tab when inactive, only the portion inside the bevels
(when active).
The result is therefore an inactive Tab with a rectangle of my
speified colour, with a border of clBtnFace and then the Gray of the
Pagecontrol.
I have tried to alter the Area I paint in the OnDrawTab event handler
so as to try to paint over the clBtnFace border that in evident, but
this does not work. I presume the clBtnFace colored area is being
painted after the event handler.
I hope this explanation is clear enough.
Any input would be much appreciated. Thanks
Cheers
Greg
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Delphi-JEDI/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/Delphi-JEDI/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/