Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Miguel Gimenez on February 01, 2017, 10:09:46 am

Title: Environment settings not resizing at all
Post by: Miguel Gimenez on February 01, 2017, 10:09:46 am
Regarding ticket 467 and revision 10979 fixing it, at least in my system (Windows 7 32 bits, SVN10979 with wxWidgets 2.8.12) the editor settings dialog resizes correctly, but the environment dialog does not resize at all. This is due to the absence of the <style> label.

I propose this patch to solve it.
Title: Re: Environment settings not resizing at all
Post by: oBFusCATed on February 02, 2017, 12:05:26 am
Bleh, linux and my wm are not affected by this omission. :(
Title: Re: Environment settings not resizing at all
Post by: BlueHazzard on February 02, 2017, 11:21:59 am
Can confirm this bug on windows 7 latest trunk wx2.8
Title: Re: Environment settings not resizing at all
Post by: oBFusCATed on February 02, 2017, 11:22:55 am
I'll push the patch soon...
Title: Re: Environment settings not resizing at all
Post by: ridge on February 03, 2017, 01:31:59 am
Confirmed that the patch also works on Mac OS X 10.11 on CB v13.12.
Request - Please patch the resource file in CB v13.12, too, since CB v16.01 is unstable on Mac.
Title: Re: Environment settings not resizing at all
Post by: oBFusCATed on February 03, 2017, 08:39:21 am
Not going to happen... 13.12 is 3 years old... We are highly understaffed.
Title: Re: Environment settings not resizing at all
Post by: Miguel Gimenez on February 03, 2017, 09:49:01 am
Ridge, you can patch it yourself. I can't check 13.12, but the XRS should be similar.

Go to the folder where CB is installed, then go to share/Codeblocks, open resources.zip and change env_settings.xrc adding the <style>wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</style> line, so it looks like this.

Code
<?xml version="1.0" encoding="utf-8" ?>
<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.5.3.0">
<object class="wxScrollingDialog" name="dlgEnvironmentSettings">
<title>Environment settings</title>
<centered>1</centered>
<style>wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</style>
<object class="wxBoxSizer">
<orient>wxVERTICAL</orient>
...
Title: Re: Environment settings not resizing at all
Post by: ridge on February 04, 2017, 01:40:02 am
Yes, I did mine.  (However, everyone installing CodeBlocks on Mac will have to do it, too.)