Hi Jeremy
Yeah we already do some of the stuff you are talking about. However our
actual issue is with the standard button showing a different background
colour to the flat button mode. in themed mode. In vista and probably
XP if your style is right, changing modes (flat v normal) produces a
different background colour. Normal (default) uses the themed colour
whereas flat uses clbtnFace or something similar.
Rob Martin
Software Engineer
phone +64 03 377 0495
fax +64 03 377 0496
web www.chreos.com
Wild Software Ltd
Jeremy North wrote:
Hi,
OK I haven't really been following this thread but...
How about:
TTabControl and set TabVisible on the pagecontrol pages to False. Set
the style of the pagecontrol to Buttons (or FlatButtons) - which
reduces the border.
or
TTabSet and parent your "pages" on a Panel when the Tab has been
changed. (So basically don't have a pagecontrol at all). Encapsulate
the page functionality into a frame and reparent the frame.
The attachment uses the second technique although the listview is the
TTabSet in this instance. Each "page" descends from a BaseFrame that
has virtual methods that are called when changing to a page. I don't
have the source with me but some of the methods are:
LoadOptions // retrieve the options from storage
SaveOptions // save options to storage
ActiveControl // returns a control to set as the active control for
when the tab gets changed to.
This has the advantage of being less resource intensive as well
because not all pages are generally loaded at once by the user.
I also have a custom TPageControl that removes the "border" but don't
have the code here either. Email me directly if you'd like it. You
only need to override one method of the TPageControl.
HTH,
cheers,
Jeremy
On 4/20/07, Robert martin <[EMAIL PROTECTED]> wrote:
Hi
No you cant. You get a nice white border around your grey (btnFace)
panel.
Rob Martin
Software Engineer
phone +64 03 377 0495
fax +64 03 377 0496
web www.chreos.com
Wild Software Ltd
Rohit Gupta wrote:
> As mentioned before, cant you solve it by putting a panel on each tab
> of the pagecontrol ?
>
> Robert martin wrote:
>>
>> Rob Martin
>> Software Engineer
>>
>> phone +64 03 377 0495
>> fax +64 03 377 0496
>> web www.chreos.com
>>
>> Wild Software Ltd
>> Hi
>>
>> We have been looking further at our problems with TPageControl in
>> Vista. Originally we thought we could fix the problem (or
TDBEdits not
>> being the same colour as the page by adding ParentBackground as a
>> property - didn't work). However the problem is worse as
pagecontrols
>> with 'Flatbuttons' show as clbtnFace while normal tabs show as
white (on
>> Vista). We have flat tab pages inside normal tab pages and so end up
>> with the situation where Some tabs are white while some tabs are
>> clBtnFace.
>>
>> We are considering changing to a third party component that allows
us to
>> fix the colours. What do you guys think of this as a solution?
>>
>> We are considering getting the tms software component pack for the
>> TadvPagecontrol and some other components that look usefull. Has
anyone
>> used these / comments?
>>
>> What would others recommend? There is a component set everyone
always
>> talks about but I forget the name?
>>
>> TIA
>> _______________________________________________
>> NZ Borland Developers Group - Delphi mailing list
>> Post: [email protected]
>> Admin: http://delphi.org.nz/mailman/listinfo/delphi
>> Unsubscribe: send an email to [EMAIL PROTECTED] with
>> Subject: unsubscribe
>>
>>
>
> --
> *Rohit Gupta*
> * B.E. Elec. M.E. Mem IEEE Associate IEE*
> *Technical Manager*
> *Computer Fanatics Limited*
> **
> *Tel* +64 9 4892280
> *Fax* +64 9 4892290
> *Email [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>**
> *Web *www.cfl.co.nz <http://www.cfl.co.nz/>
>
>
------------------------------------------------------------------------
> This email and any attachments contain information, which is
> confidential and may be subject to legal privilege and copyright. If
> you are not the intended recipient, you must not use, distribute or
> copy this email or attachments. If you have received this in error,
> please notify us immediately by return email and then delete this
> email and any attachments.
>
------------------------------------------------------------------------
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: [email protected]
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to [EMAIL PROTECTED] with
Subject: unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with
Subject: unsubscribe
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe