User forums > Help
Build target window not resizing correctly.
Souliest:
Hi,
I'm not sure if this is a bug, or a feature that doesn't behave like I expect it to, but here goes.
I'm using C::B to follow along a book, which generates many small programs. I found that using a build target per exercise makes it easy to manage. It's less "wasteful" than using a project each time, yet more structured than using standalones sources, without project.
Here is the issue. The first screenshot shows the Project->Properties->Build targets window of a new "Hello World" type project, with two targets. Everything is normal. The second screenshot shows the same window, split in two (because it won't fit in a single screen), with a project that has nearly one hundred targets, and roughly the same amount of files.
Here is the behavior that I would have expected: when you add targets, the "Build targets" list should add scrollbars as needed, at least a vertical scrollbar and increased width to accomodate the target names. The window as a whole should pretty much retain the same height.
What happens, however, is that that the build targets list increases in height so as to maintain about 20 empty lines at the end, and never gets scrollbars. The complete window (for all the tabs) increases in height, which adds a scrollbar to the window. This is both unsightly and inefficient. For example, look at the three button clusters to the right of the list ("Add / Rename / Duplicate / Delete", "Virtual targets / Dependencies / Re-order / Build options", and "Create project from target"). The clusters were obviously meant to be placed one at the top, one in the middle and one at the bottom of the list area.With a small list (screen 1), this is perfectly okay. With a large list (screens 2 and 3), the clusters have a huge gap between them. Also, when setting a few new targets I have to scroll up to duplicate a target or create a new one, scroll down to select it and maybe reorder it, scroll up to set the new executable, scroll down to check or uncheck the included files. The problem is that I scroll the whole window, when I should (that's what I think, anyway) only have to scroll within the targets and within the files.
I'm fairly new at this, so I apologize if my terminology is confusing. Please tell me if it is, so I can learn. And is this a bug? Should I report it?
Thanks.
Edit: CB 13.12 rev.9501, wxWidgets 2.8.12, OS Windows 7 64-bit
[attachment deleted by admin]
[attachment deleted by admin]
Souliest:
Okay, I hate to do this, but... bump.
Almost three weeks without any input. It is either because nobody understands what on Earth I'm talking about, nobody is able to replicate it, or nobody cares.
Which is it? If it's the first option, tell me so I can provide details or simplification, as needed. In the case of the second option, how does it impact what I should do, or is it a behavior I can change myself. And in the case of the third option, well... whatever.
Any response would be appreciated.
stahta01:
It works for me correctly; I suggest posting the normal info like CB version/svn, wxWidgets version, and OS name and version.
Edit: It worked correctly while adding the targets; once I closed the form and reentered it the effect was much like the complaint above.
Edit 2: Self built recent CB SVN trunk; wxWidgets 2.8.12; OS Windows 7 32-bit
Tim S.
Souliest:
Thank you Tim. It is comforting to know than I am not crazy/alone. And I updated my post with the requested info. I hadn't even thought of including those.
I am using Windows 7 64-bit, with CB 13.12 (the Win binary from codeblocks.org), with wxWidgets 2.8.12.
S.
stahta01:
If you self build Code::Blocks here is a patch to try.
The patch may NOT be safe to apply to CB SVN Truck
Because I edited the project_options.xrc file using text editor (I could not find the correct GUI method to edit it).
Because I am at beginner level at using wxWidgets GUI stuff like xrc and sizer.
Because the value of <size>120,360</size> was chosen almost at random; looks OK on Windows; no idea on other OSes.
Tim S.
--- Code: ---Index: src/src/resources/project_options.xrc
===================================================================
--- src/src/resources/project_options.xrc (revision 9841)
+++ src/src/resources/project_options.xrc (working copy)
@@ -255,8 +255,11 @@
<object class="sizeritem">
<object class="wxBoxSizer">
<object class="sizeritem">
- <object class="wxListBox" name="lstBuildTarget" />
- <flag>wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP</flag>
+ <object class="wxListBox" name="lstBuildTarget">
+ <size>120,360</size>
+ <style>wxLB_HSCROLL</style>
+ </object>
+ <flag>wxALIGN_LEFT|wxALIGN_TOP</flag>
</object>
<object class="sizeritem">
<object class="wxBoxSizer">
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version