User forums > General (but related to Code::Blocks)
Docking library
SnakeChomp:
--- Quote from: mandrav on August 20, 2005, 08:43:26 pm ---Although I noticed a bug: tab-text doesn't appear on the inactive tabs, i.e. you have to select a tab to see it's text (I guess that's a coloring issue).
--- End quote ---
This is an issue with your theme. What happens is that wxSystemSettings::GetColour(wxSYS_COLOUR_INACTIVECAPTIONTEXT) returns the same color as wxSystemSettings::GetColour(wxSYS_COLOUR_BTNSHADOW), so the background of a tab has the same color as the text of the tab, resulting in the text not being visible. The real fix for this involves creating a real way to request a color to use from within the framework instead of each individual function that wants to draw something picking its own color with wxSystemSettings::GetColour(). This could allow "theming" of wxIFM which is separate (or linked) to the global theme of the system.
--- Quote from: mandrav on August 20, 2005, 08:43:26 pm ---I have another question which is really important: does it support multiple (draggable) toolbars?
--- End quote ---
Sort of. I dont know if it works on gtk, but on MSW, if you create the toolbar with the appropriate win32 only styles which let it appear at an arbitrary position within its parent window, yes it can be managed by wxIFM. Real toolbar support (like how VS and MSOffice handle toolbars) is not provided. That means that you can put toolbars anywhere, including making a toolbar a tab of a panel, which doesn't make any sense. What I would like to see for toolbars is an area on the edges of the frame in which only toolbars can go. Non toolbar windows would be placed inside of the toolbar area. This is what VS2002+ does (VS uses MSOffice toolbars) and it prevents mixing toolbars with non toolbar windows. It wouldn't be terribly hard to do, its just a matter of doing it. Other things missing with toolbars is not displaying the resize sash for them (I may already do this, not sure) and working around some sizing issues (GetBestSize returns a value that isn't tall enough on msw as far as I can tell).
The reasoning behind not putting in real toolbar support is the fact that toolbars on Mac do not and cannot work like this. There is one toolbar and it can be hidden / shown via a button on the top right of the frame and it is only displayed in one spot. Mac applications are supposed to use pallete windows and not multiple toolbars like MSW / Gtk applications do. This is an oversight of wxWidgets design and not really my fault.
mandrav:
--- Quote from: SnakeChomp on August 21, 2005, 04:21:28 am ---
--- Quote from: mandrav on August 20, 2005, 08:43:26 pm ---Although I noticed a bug: tab-text doesn't appear on the inactive tabs, i.e. you have to select a tab to see it's text (I guess that's a coloring issue).
--- End quote ---
This is an issue with your theme. What happens is that wxSystemSettings::GetColour(wxSYS_COLOUR_INACTIVECAPTIONTEXT) returns the same color as wxSystemSettings::GetColour(wxSYS_COLOUR_BTNSHADOW), so the background of a tab has the same color as the text of the tab, resulting in the text not being visible. The real fix for this involves creating a real way to request a color to use from within the framework instead of each individual function that wants to draw something picking its own color with wxSystemSettings::GetColour(). This could allow "theming" of wxIFM which is separate (or linked) to the global theme of the system.
--- End quote ---
Hmm... I use the Silver winXP standard style...
Anyway, that's some strange color combination you got there. I mean wxSYS_COLOUR_INACTIVECAPTIONTEXT is for *frames* (windows with caption bars) and wxSYS_COLOUR_BTNSHADOW is just for control shadows...
Yes, you can use them for everything but, as we see here, not all (not-intended) combinations work for every theme.
Look at the attachement...
I couldn't possibly tell every user to change their themes. Sorry to say this but It 's clearly a wrong choice of system color constants on your part...
Anyway, I believe it is configurable somewhere in the code so that shouldn't be an issue ;)
--- Quote from: SnakeChomp on August 21, 2005, 04:21:28 am ---
--- Quote from: mandrav on August 20, 2005, 08:43:26 pm ---I have another question which is really important: does it support multiple (draggable) toolbars?
--- End quote ---
Sort of. I dont know
--- End quote ---
Let me clarify:
wxDockit allows us to have many different toolbars which can wrap-around if the width of the window is too small to fit them all. I 'm not talking about full dragging and floating support (although it would be great ;) ). Just many different toolbars managed by the framework.
Yiannis.
[attachment deleted by admin]
SnakeChomp:
--- Quote from: mandrav on August 21, 2005, 09:37:11 am ---Look at the attachement...
I couldn't possibly tell every user to change their themes. Sorry to say this but It 's clearly a wrong choice of system color constants on your part...
Anyway, I believe it is configurable somewhere in the code so that shouldn't be an issue ;)
--- End quote ---
I already knew this problem exists (you aren't the first to report it). Yes it is configurable and I already said what the fix was, so no its not an issue.
--- Quote from: mandrav on August 21, 2005, 09:37:11 am ---wxDockit allows us to have many different toolbars which can wrap-around if the width of the window is too small to fit them all. I 'm not talking about full dragging and floating support (although it would be great ;) ). Just many different toolbars managed by the framework.
--- End quote ---
I have no idea what "wrap-around" means. If toolbars don't have enough room they are supposed to display a chevron which opens a menu displaying the toolbar items which don't fit (in win32 land anyway). I don't know what usually happens if you have too many toolbars which end up being too big in wx so I don't know how the wxDockIt behavior is any different.
SnakeChomp:
Please see this post. http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?p=16139#16139. I'm sure you will like what you see. Specifically, look at http://pecholt.wz.cz/ifm.png.
mandrav:
--- Quote from: SnakeChomp on August 21, 2005, 10:25:48 pm ---Please see this post. http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?p=16139#16139. I'm sure you will like what you see. Specifically, look at http://pecholt.wz.cz/ifm.png.
--- End quote ---
Now, that looks better ;)
Yiannis.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version