realbasic-nug
[Top] [All Lists]

Re: Are Tabpanels custom or OS controls?

To: realbasic-nug@lists.realsoftware.com
Subject: Re: Are Tabpanels custom or OS controls?
From: Paul Rodman <paul@ilanga.com>
Date: Mon, 27 Apr 2009 12:52:12 -0700
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: <mailman.1.1240858809.11973.realbasic-nug@lists.realsoftware.com>
References: <mailman.1.1240858809.11973.realbasic-nug@lists.realsoftware.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On Apr 27, 2009, at 12:00 PM, William Yu <william@realsoftware.com> wrote:

On Mon, Apr 27, 2009 at 1:25 PM, Paul Rodman <paul@ilanga.com> wrote:

This is a question for the RS programmers, I'm guessing.

Is the TabPanel control a primitive OS control or one that the RB framework "constructs"? I ask this because when I use the various Windows calls to colour parts of the UI, the one part that does not conform to the colouring is the Tabpanel control. I write astronomy applications, and to preserve night vision it is convenient to colour the UI in shades of (say) dark red.
However, the Tabpanel problem makes this impossible.


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.

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.

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

Paul Rodman


_______________________________________________
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>