realbasic-nug
[Top] [All Lists]

Re: Are Tabpanels custom or OS controls?

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Are Tabpanels custom or OS controls?
From: William Yu <william@realsoftware.com>
Date: Tue, 28 Apr 2009 05:31:57 -0500
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <9C3D5FB1-E72A-4C4F-BEE0-B108D78DA17E@ilanga.com>
References: <mailman.1.1240858809.11973.realbasic-nug@lists.realsoftware.com> <9C3D5FB1-E72A-4C4F-BEE0-B108D78DA17E@ilanga.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
On Mon, Apr 27, 2009 at 2:52 PM, Paul Rodman <paul@ilanga.com> wrote:

>
>> Yes it's a native control on all platforms.  How are your "colouring" the
>> UI?  For the tabpanel, you can float a canvas on each tab and place your
>> controls on the canvas.  This is essentially what .NET does to support
>> tabpanel background color.
>>
>
> I use
>
>  Declare Function SetSysColors Lib "user32" (nChanges As integer,lpSysColor
> As ptr,lpColorValues As ptr) As integer
>
> but there doesn't seem to be a setting that changes the tab panel colour.
>

That might've worked before XP, not sure, but since XP the TabPanel
background can be shaded.


>
> The canvas trick would work, except that:
>
> a. I'd have to do a _lot_ of work to "retrofit" all my tab panels.
> b. What about the tab "handles"? They would not be covered by a canvas.
>

No luck on b, even in .NET only the TabPanel content area is coloured.


>
> If I was to lodge a feature request for a BGColor property, would you guys
> consider it?
>

Sure but it's not going to solve your b problem so maybe you'll want to come
up with a different design.


-- 
William Yu
REAL Software

Check out our new "Intro to REALbasic" video!
http://www.youtube.com/watch?v=JoFShslQRfU
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>