Code::Blocks Forums

User forums => Help => Topic started by: warpino on February 08, 2016, 10:23:16 am

Title: another issue with C::B and wXwidgets svn on OSX
Post by: warpino on February 08, 2016, 10:23:16 am
Hi all,

I successfully built and installed code blocks svn with wxWidgets svn on OSX 10.11: http://forums.codeblocks.org/index.php/topic,20862.msg142429.html#msg142429

Everything works quite fine for my purpose, although I am experiencing an annoying issue: I am not able to resize the "Environment Settings" window, therefore I cannot edit the field "Terminal to launch console programs", for instance. The other settings windows seem to behave properly.

Any way I can solve this?

Best,

w
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: ollydbg on February 09, 2016, 05:48:48 am
Please try this fix, it just add some style properties to the dialog.
Code
 src/src/resources/env_settings.xrc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/src/resources/env_settings.xrc b/src/src/resources/env_settings.xrc
index 597ce97..67bd03c 100644
--- a/src/src/resources/env_settings.xrc
+++ b/src/src/resources/env_settings.xrc
@@ -3,6 +3,7 @@
  <object class="wxScrollingDialog" name="dlgEnvironmentSettings">
  <title>Environment settings</title>
  <centered>1</centered>
+ <style>wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxMAXIMIZE_BOX</style>
  <object class="wxBoxSizer">
  <orient>wxVERTICAL</orient>
  <object class="sizeritem">
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: MortenMacFly on February 09, 2016, 08:12:19 am
Note that this is rather easy w/o recompilation:
* search for the file "resources.zip" in the shared resource folder of C::B
* extract it to a temp. folder
* see for the file env_settings.xrc
* open it in an editor
* search for the passage in the file
* add the line as mentioned line (w/o the plus in front)

@ollydbg: I wonder what effect this has on other platforms, btw...
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: ollydbg on February 09, 2016, 01:22:04 pm
@ollydbg: I wonder what effect this has on other platforms, btw...
With this patch, I can resize the dialog under Windows XP.
But from my point of view, without this patch, the dialog should at least show everything of the wxListbook's panel.
I don't have other platforms at hand.
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: oBFusCATed on February 10, 2016, 08:53:43 am
For me on linux it does:
1. no difference in wx30 - the dialog can be resized only horizontally with/without the patch
2. allows the dialog to be resized in wx28, but again only horizontally.

By horizontally I mean that even if I resize it vertically the contents doesn't resize, just the window. I can provide a screen shot if it is not clear what I mean.
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: warpino on February 23, 2016, 03:02:09 pm
I think I have the same problem with this patch: the window resizes, the content does not!

See attached screenshot
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: ollydbg on February 23, 2016, 03:20:35 pm
I think I have the same problem with this patch: the window resizes, the content does not!

See attached screenshot
It looks like this is the issue described by OBF:
Quote
By horizontally I mean that even if I resize it vertically the contents doesn't resize, just the window. I can provide a screen shot if it is not clear what I mean.
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: warpino on March 11, 2016, 11:20:27 am
Hi there,

did anybody found a workaround for this issue?
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: Easior Lars on March 11, 2016, 12:02:41 pm
Hi there,

did anybody found a workaround for this issue?

I have tried the ollydbg's patch. It works well. you should try it.
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: warpino on March 12, 2016, 09:05:54 am
Quote
I have tried the ollydbg's patch. It works well. you should try it.

Did it fix the issue in OSX? I tried, edited file env_settings.xrc in share/codeblocks/resources.zip, added the line as shown by ollydbg. Nothing seems to change.
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: Easior Lars on March 12, 2016, 09:46:16 am
Did it fix the issue in OSX? I tried, edited file env_settings.xrc in share/codeblocks/resources.zip, added the line as shown by ollydbg. Nothing seems to change.

Please see the screenshot attached below. In fact, I applied the above patch and rebuilt CB.
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: ollydbg on March 13, 2016, 05:28:26 am
Did it fix the issue in OSX? I tried, edited file env_settings.xrc in share/codeblocks/resources.zip, added the line as shown by ollydbg. Nothing seems to change.

Please see the screenshot attached below. In fact, I applied the above patch and rebuilt CB.
Hi, I can't unzip the attachments, I have tried 7zip and winrar under Windows XP, but all failed.
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: Easior Lars on March 13, 2016, 05:58:03 am
Hi, I can't unzip the attachments, I have tried 7zip and winrar under Windows XP, but all failed.

Oh, I zipped it by volumes since the size of screenshot is too large to post. You can rename them, e.g. screenshot.zip.001, screenshot.zip.002, firstly. Then, They would be unzipped.
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: ollydbg on March 13, 2016, 06:32:25 am
Hi, I can't unzip the attachments, I have tried 7zip and winrar under Windows XP, but all failed.

Oh, I zipped it by volumes since the size of screenshot is too large to post. You can rename them, e.g. screenshot.zip.001, screenshot.zip.002, firstly. Then, They would be unzipped.
OK, I can open the png file now.
You did not mention the details in your previous post, so people have no idea how to open it.
Another suggestion is that there are so many image host site, so it is better to put the screen shot there, to save the space, C::B forum will run attachment cleanup task from time to time, so your attachment will get lost in the future. ;)
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: Easior Lars on March 13, 2016, 09:59:18 am
Another suggestion is that there are so many image host site, so it is better to put the screen shot there, to save the space, C::B forum will run attachment cleanup task from time to time, so your attachment will get lost in the future. ;)
Thanks for your information. I only knew some sites to host build logs before.
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: warpino on June 04, 2016, 11:33:11 am
Hi guys,

after a few months, building svn10856, trying to tweak env_settings.xrc file, I am still stuck with this:

(http://i65.tinypic.com/157myc5.png)

The suggested patch does not seem to solve the problem. Can anybody suggest a dirty workaround?

w
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: ollydbg on June 04, 2016, 11:36:47 am
As I know, there is no C::B developers who work under Mac system, so, hope some other guys could help.  :)
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: warpino on June 06, 2016, 03:15:55 pm
Maybe I could seek for help from wxWidgets developers. Do you think it's a good idea? what should I provide them? maybe env_settings.xrc and.. what else?

thanks
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: ollydbg on June 06, 2016, 03:24:20 pm
Maybe I could seek for help from wxWidgets developers. Do you think it's a good idea? what should I provide them? maybe env_settings.xrc and.. what else?

thanks
I suggest you can build the wx sample code, such as the listcontrol sample code, and see whether it has the same issue.
And if it works, then you can create a simple dialog which use the broken xrc file.
Title: Re: another issue with C::B and wXwidgets svn on OSX
Post by: warpino on June 07, 2016, 06:10:55 pm
I suggest you can build the wx sample code, such as the listcontrol sample code, and see whether it has the same issue.

listcontrol sample seems to work perfectly.

And if it works, then you can create a simple dialog which use the broken xrc file.

I have no idea how to do this :-(