Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
toolbar bottom edge is not shown corectly under C::B build with wx git master
cacb:
--- Quote from: cacb on March 13, 2017, 11:18:01 am ---It is just the default KDE desktop under Kubuntu 16.10, I think that is "plasma". Is that an answer? I don't have that computer available right now, will try to check tonight.
--- End quote ---
The desktop theme is "Breeze"
--- Quote from: cacb on March 13, 2017, 11:18:01 am ---I will check this and get back to you. Btw, I have a couple of wx GUI applications I have written myself that is using AUI toolbars, and I do not see such issues there, the toolbars are ok. But I will try the auidemo also.
--- End quote ---
See attached image (how do you embed images here??). At the top the C::B toolbar, below is the wxWidgets 3.0 auidemo with much more compact toolbar. At the bottom an application I have made with wxSmith and AUI.
--- Quote from: cacb on March 13, 2017, 11:18:01 am ---
--- Quote from: oBFusCATed on March 12, 2017, 04:01:37 pm ---Edit: What is the resolution of you display?
--- End quote ---
I believe it is 1920x1200, will check later.
--- End quote ---
Confirmed 1920x1200
oBFusCATed:
Here is how they look on my machine and theme: (both wx3 and 2.8 )
It is obvious that the toolbar with wxChoice control is bigger than the one without it.
Also it is obvious that our toolbars and the ones in the auidemo/your sample are different. Now we need someone to dig a big in the code and try to make them look the same.
p.s. it is better idea to use image sharing site instead of image attacments here.
cacb:
I found out something interesting
When using wxAuiToolbar, if you add the code below, the toolbar items are much more packed. If you don't call it, the default is similar to calling it with a paddeing value = 3. My toolbars are created with wxSmith and I tried to find such an option in the properties, with no luck. So I added the code below outside the auto-generated code:
AuiToolBar1->SetToolBorderPadding(0);
AuiToolBar1->Realize();
As mentioned, I think Code::Blocks is not using wxAuiToolbar, but wxToolbar? I could not find the SetToolBorderPadding(int padding) for wxToolbar, but there is something similar
wxToolBar::SetToolSeparation(int separation);
In the documentation it says "The default value is 5.". Maybe this is a clue, although it does nothing for the vertical size.
EDIT: there is also
wxToolBar::SetToolPacking(int packing);
PS. ok I see what you are saying about images, will consider
oBFusCATed:
Can you try to modify C::B and test it with your theme? Then tell us if it makes a difference?
cacb:
--- Quote from: oBFusCATed on March 14, 2017, 12:57:15 am ---Can you try to modify C::B and test it with your theme? Then tell us if it makes a difference?
--- End quote ---
I can try, but I don't have a setup to build C::B other than running the build command as mentioned. Do you know where the wxToolbar objects are created (which source file)? Then I can try to manipulate those things.
Maybe I could set up a virtual machine for building C::B with the IDE, if there is a good link on how to do that, please share.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version