use colors instead labels in notebook

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Jacek Poplawski
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Jun 20, 2011 12:03 pm

use colors instead labels in notebook

Post by Jacek Poplawski »

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)?
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: use colors instead labels in notebook

Post by Auria »

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
Jacek Poplawski
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Jun 20, 2011 12:03 pm

Re: use colors instead labels in notebook

Post by Jacek Poplawski »

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?
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: use colors instead labels in notebook

Post by Auria »

Jacek 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?
You can create a new wxBitmap at runtime and paint a color on it with wxMemoryDC
"Keyboard not detected. Press F1 to continue"
-- Windows
Post Reply