User forums > Using Code::Blocks
Compiler toolbar width
eranon:
Hello,
Is it possible to increase the width of the compiler toolbar ?
I have some long target titles (for example "GCC x86 Release wx300 - VERBOSE") which are not visible in full in the combo box and can be easily mingled with some others starting identically (for example "GCC x86 Release wx300 - PRELOADED").
--
EDIT : I succeeded to enlarge the toolbar playing with the CompilerToolbar options (bestw and minw values) in default.conf, but it doesn't change the combox-box width inside the toolbar.
stahta01:
Try doing this. I forgot where the compilergcc xrc are located; but, IIRC you can just edit then and the next time CB is started the size would be larger.
Tim S.
--- Code: ---Index: src/plugins/compilergcc/resources/compiler_toolbar.xrc
===================================================================
--- src/plugins/compilergcc/resources/compiler_toolbar.xrc (revision 9567)
+++ src/plugins/compilergcc/resources/compiler_toolbar.xrc (working copy)
@@ -29,7 +29,7 @@
</object>
<object class="wxChoice" name="idToolTarget">
<content/>
- <size>136,-1</size>
+ <size>200,-1</size>
<tooltip>Build target</tooltip>
<longhelp>Select the current build target</longhelp>
</object>
Index: src/plugins/compilergcc/resources/compiler_toolbar_16x16.xrc
===================================================================
--- src/plugins/compilergcc/resources/compiler_toolbar_16x16.xrc (revision 9567)
+++ src/plugins/compilergcc/resources/compiler_toolbar_16x16.xrc (working copy)
@@ -29,7 +29,7 @@
</object>
<object class="wxChoice" name="idToolTarget">
<content/>
- <size>136,-1</size>
+ <size>200,-1</size>
<tooltip>Build target</tooltip>
<longhelp>Select the current build target</longhelp>
</object>
--- End code ---
eranon:
Thanks, Stahta. I can't try just now, but I'll do it asap...
oBFusCATed:
The best option would be if we can add an option, so every user can set this up himself.
Unfortunately we can't make this size-automatically, because it will mess the layout of the toolbars.
eranon:
@stahta : I finally found possibility to try and it works (modified the XRC as you said, resetted default.conf to let C::B autocomputes the best size around the combo-box, then rebuilt the workspace and ran update.bat to renew output). Thanks again. Quite more comfortable now :)
@obfuscated : so, maybe just a free field in which user would be warned that any change is made under his own responsibility... Or a kind of INI like file gathering all these kind of customizations which would be outside of the standard (e.g. the way it was done with a software like Eudora under Windows : a lot of advanced options in the .ini file and most only modifiable by hand).
Navigation
[0] Message Index
[#] Next page
Go to full version