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