|
List Info
Thread: Frame color / button color
|
|
| Frame color / button color |

|
2006-11-22 06:30:09 |
|
Hi, Peter!
You might like to think in terms of hierarchy. A wxWindow is completely "frill-less", just a simple container, and not much used directly graphically. A wxFrame is just that, a frame, that goes around the window. A wxPanel is a container type of window that has a substantive "background".
Now, a wxFrame is, possibly, the simplest commonly used type of top level window. It is basically a window with a frame around it and some basic "frills" for the frame.
A wxPanel is "frill-less", excepting the background it provides.
A wxDialog is a higher composite, and though more complex than a frame, possibly the most used top level window. A frame with a panel and a sizer, if you will, though this is an over simplification.
Now, to get to your question. To get a background, other than the gray one you speak of (you can think of this gray background as the absence of a background), you simply add a panel to the frame, typically with a sizer so that the panel will grow with the resizing of the frame. Appearance-wise, this is largely indistinguishable from a dialog. The difference is in the programming functionality.
Try this experiment in DB. Create a project and select 3 top level elements: Add Dialog and Add Frame. The Dialog will have a sizer already added to it, you need to add a sizer to the Frame. Now, below each sizer, add 2 controls, a button, and a single line text control. You should see that the only appearance difference is whatever title you gave to each and the frame will be of a larger size.
As a further illustration, try the attached project with sources.
HTH: ;
thx,
Dave S.
wxMS_developers · Development with wxWidgets on MSWindows 
wxMS_developers RSS feed
wxWidgets Code Exchange
-- On Wed, 22 Nov 2006 02:12:19 -0000 Peter Rung wrote --
> When I create a frame, the background color of the frame and the
> buttons are a dark gray. How does one go about changing this? I
> do notice that this is not true of dialog boxes created in DB.
>
> Also, are there any skins tools that with in conjunction with DB?
>
> Thanks in advance for your responses.
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
>
> Your email settings:
> Individual Email | Traditional
>
> To change settings online go to:
> required)
>
> To change settings via email:
> anthemion-devtools-digest@yahoogroups.com">mailto:anthemion-devtools-digest yahoogroups.com anthemion">mailto:anthemion-
> devtools-fullfeatured yahoogroups.com
>
> To unsubscribe from this group, send an email to: anthemion-
> devtools-unsubscribe yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
__._,_.___
.
__,_._,___
|
| Frame color / button color |

|
2006-11-22 17:08:47 |
|
Dave,
Very good explanation and illustration. It8217;s appreciated.
This helps a lot. It would probably be a good addition to the DB help
file and tutorial for the different web sites.
Do you have any views on skinning programs for wxWidgets?
Have you seen or tried wxToolBox?
Peter
From:
anthemion-devtools yahoogroups.com [mailto:anthemion-devtools yahoogroups.com] On Behalf Of Dave Silvia
Sent: Wednesday, November 22, 2006
1:30 AM
To:
anthemion-devtools yahoogroups.com
Subject: Re: [anthemion-devtools]
Frame color / button color
You might like to think in terms of hierarchy. A wxWindow is completely
"frill-less", just a simple container, and not much used
directly graphically. A wxFrame is just that, a frame, that goes around the
window. A wxPanel is a container type of window that has a substantive
"background".
Now, a wxFrame is, possibly, the simplest commonly used type of top
level window. It is basically a window with a frame around it and some basic
"frills" for the frame.
A wxPanel is "frill-less", excepting the background it
provides.
A wxDialog is a higher composite, and though more complex than a frame,
possibly the most used top level window. A frame with a panel and a sizer, if
you will, though this is an over simplification.
Now, to get to your question. To get a background, other than the gray
one you speak of (you can think of this gray background as the absence of a
background), you simply add a panel to the frame, typically with a sizer so
that the panel will grow with the resizing of the frame. Appearance-wise, this
is largely indistinguishable from a dialog. The difference is in the
programming functionality.
Try this experiment in DB. Create a project and select 3 top level
elements: Add Dialog and Add Frame. The Dialog will have a sizer already added
to it, you need to add a sizer to the Frame. Now, below each sizer, add 2
controls, a button, and a single line text control. You should see that the
only appearance difference is whatever title you gave to each and the frame
will be of a larger size.
As a further illustration, try the attached project with sources.
wxMS_developers · Development with wxWidgets on
MSWindows
-- On Wed, 22 Nov 2006 02:12:19 -0000 Peter Rung wrote --
> When I create a frame, the background
color of the frame and the
> buttons are a dark gray. How
does one go about changing this? I
> do notice that this is not true of dialog
boxes created in DB.
> Also, are there any skins tools that
with in conjunction with DB?
> Thanks in advance for your responses.
> To visit your group on the web, go to:
> Individual Email | Traditional
> To change settings online go to:
> To change settings via email:
> anthemion-devtools-digest@yahoogroups.com">mailto:anthemion-devtools-digest yahoogroups.com
anthemion">mailto:anthemion-
> devtools-fullfeatured yahoogroups.com
> To unsubscribe from this group, send
an email to: anthemion-
> devtools-unsubscribe yahoogroups.com
> Your use of Yahoo! Groups is subject
to:
__._,_.___
.
__,_._,___
|
[1-2]
|
|