Author Topic: another issue with C::B and wXwidgets svn on OSX  (Read 9173 times)

Offline warpino

  • Multiple posting newcomer
  • *
  • Posts: 30
another issue with C::B and wXwidgets svn on OSX
« 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

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #1 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">
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #2 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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #3 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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #4 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.
(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!]

Offline warpino

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #5 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

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #6 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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline warpino

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #7 on: March 11, 2016, 11:20:27 am »
Hi there,

did anybody found a workaround for this issue?

Offline Easior Lars

  • Multiple posting newcomer
  • *
  • Posts: 44
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #8 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.
Development Environments:GCC+CodeBlocks+wxWidgets
Developing Languages:Bash+Python+C/CPP+LaTeX
Developer Utils:Emacs+GIT+OpenSSH+GPG
OS:Mac OS X, Gentoo/Kali Linux/Fedora/CentOS, MS Windows
Blog:http://easior.i11r.com

Offline warpino

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #9 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.

Offline Easior Lars

  • Multiple posting newcomer
  • *
  • Posts: 44
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #10 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.
Development Environments:GCC+CodeBlocks+wxWidgets
Developing Languages:Bash+Python+C/CPP+LaTeX
Developer Utils:Emacs+GIT+OpenSSH+GPG
OS:Mac OS X, Gentoo/Kali Linux/Fedora/CentOS, MS Windows
Blog:http://easior.i11r.com

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #11 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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Easior Lars

  • Multiple posting newcomer
  • *
  • Posts: 44
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #12 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.
Development Environments:GCC+CodeBlocks+wxWidgets
Developing Languages:Bash+Python+C/CPP+LaTeX
Developer Utils:Emacs+GIT+OpenSSH+GPG
OS:Mac OS X, Gentoo/Kali Linux/Fedora/CentOS, MS Windows
Blog:http://easior.i11r.com

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #13 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. ;)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Easior Lars

  • Multiple posting newcomer
  • *
  • Posts: 44
Re: another issue with C::B and wXwidgets svn on OSX
« Reply #14 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.
« Last Edit: March 13, 2016, 10:28:15 am by Easior Lars »
Development Environments:GCC+CodeBlocks+wxWidgets
Developing Languages:Bash+Python+C/CPP+LaTeX
Developer Utils:Emacs+GIT+OpenSSH+GPG
OS:Mac OS X, Gentoo/Kali Linux/Fedora/CentOS, MS Windows
Blog:http://easior.i11r.com