hello,
I have huge windows with settings for each color,
I want to split it to small window with notebook pages,
Imagina notebook with colors like red, green, yellow, etc.... and user will click on color and then set color settings
But how can I name each page if I don't want to give user color names (labels) but just colors (rectangles)?
use colors instead labels in notebook
-
- Knows some wx things
- Posts: 38
- Joined: Mon Jun 20, 2011 12:03 pm
Re: use colors instead labels in notebook
I am not sure I understand you, do you mean you want a tabbed pane but instead of labels have colors? Then you could just use wxNotebook with empty labels but icons containing the proper color. Or for bigger color rectangles, see http://docs.wxwidgets.org/trunk/classwx_toolbook.html and add tools that are color rectangles
"Keyboard not detected. Press F1 to continue"
-- Windows
-- Windows
-
- Knows some wx things
- Posts: 38
- Joined: Mon Jun 20, 2011 12:03 pm
Re: use colors instead labels in notebook
I must be compatible with stable wx so I looked here:
http://docs.wxwidgets.org/2.8/wx_wxtoolbook.html
So instead labels I will add tools:
http://docs.wxwidgets.org/2.8/wx_wxtool ... baraddtool
bitmap1
The primary tool bitmap.
so I should just render bitmap in my color?
http://docs.wxwidgets.org/2.8/wx_wxtoolbook.html
So instead labels I will add tools:
http://docs.wxwidgets.org/2.8/wx_wxtool ... baraddtool
bitmap1
The primary tool bitmap.
so I should just render bitmap in my color?
Re: use colors instead labels in notebook
You can create a new wxBitmap at runtime and paint a color on it with wxMemoryDCJacek Poplawski wrote:I must be compatible with stable wx so I looked here:
http://docs.wxwidgets.org/2.8/wx_wxtoolbook.html
So instead labels I will add tools:
http://docs.wxwidgets.org/2.8/wx_wxtool ... baraddtool
bitmap1
The primary tool bitmap.
so I should just render bitmap in my color?
"Keyboard not detected. Press F1 to continue"
-- Windows
-- Windows