News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compiler toolbar width

Started by eranon, January 12, 2014, 02:47:33 PM

Previous topic - Next topic

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.
[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]

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.


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>
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

eranon

#2
Thanks, Stahta. I can't try just now, but I'll do it asap...
[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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).
[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]

oBFusCATed

Why would you want to put it hidden?
Somewhere in the options is good enough I think...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

eranon

By hand is not hidden, Obfuscated, but it exempts to implement an exposition in the UI (so, quicker to implement) for options that some only will use.
[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]

Jenna

Quote from: eranon on January 13, 2014, 02:43:10 PM
By hand is not hidden, Obfuscated, but it exempts to implement an exposition in the UI (so, quicker to implement) for options that some only will use.
Code::Blocks does not have an ini-style conf-file, but an xml-file (usually default.conf). Tweaking such files by hand is really dangerous and can lead to crashes.

eranon

I know the current conf is saved in XML format, Jens. The idea was just to ad a kind of "extra_conf.ini"... But it's just an idea. I'm not a C::B dev, but a user one.
[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]