Author Topic: AutoVersioning changes log window appears too small  (Read 5778 times)

Offline k1mgy

  • Multiple posting newcomer
  • *
  • Posts: 64
AutoVersioning changes log window appears too small
« on: June 18, 2010, 10:37:02 pm »
Code::Blocks build 6271

When I invoke the AutoVersioning changes window: Project... Changes Log, the window that appears is very small.  I have to re-size it each time plus set the width of the list columns so they are visible.



Rather annoying. 

It may be related to occasional messup of the Code::blocks search dialog.  I don't yet know why but once in a while this dialog will open with very wide fields that require using the scroll bar to locate to the start of the search/replace fields.  As I cannot reproduce this one, can't post a report yet.


Offline Cryogen

  • Regular
  • ***
  • Posts: 260
Re: AutoVersioning changes log window appears too small
« Reply #1 on: June 21, 2010, 06:59:32 pm »

 Hi k1mgy,

I won't say that I fixed this but I have "improved" it in my patch 2, listed here:

http://forums.codeblocks.org/index.php/topic,12619.0.html

I hope it helps you. :-)

Cryo.

Offline k1mgy

  • Multiple posting newcomer
  • *
  • Posts: 64
Re: AutoVersioning changes log window appears too small
« Reply #2 on: June 21, 2010, 07:42:40 pm »
Hi Cryogen,

Thank you very much!

Do you mean patch 12?

Will this go into the next nightly build?  As I have never done a patch build, perhaps better to get it in the nightly?


Offline stahta01

  • Lives here!
  • ****
  • Posts: 6677
    • My Best Post
Re: AutoVersioning changes log window appears too small
« Reply #3 on: June 21, 2010, 07:50:36 pm »
Hi Cryogen,

Thank you very much!

Do you mean patch 12?

Will this go into the next nightly build?  As I have never done a patch build, perhaps better to get it in the nightly?



I would guess Patch 2 "AutoVersion Changes Log GUI sizing."

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: AutoVersioning changes log window appears too small
« Reply #4 on: June 22, 2010, 08:50:13 pm »
yahh sorry for that one I didn't do a good work in that part  :) but if there is already a fix it would be nice to see it on the nightly  :D

Offline Cryogen

  • Regular
  • ***
  • Posts: 260
Re: AutoVersioning changes log window appears too small
« Reply #5 on: June 23, 2010, 08:08:43 pm »
 Hi there,

Thank you very much!

Do you mean patch 12?

You're welcome. No, patch 2 is right.

Will this go into the next nightly build?  As I have never done a patch build, perhaps better to get it in the nightly?

Probably not. I hope it will get there but the release cycle is quite slow as there's lots to get through. You do need to build from the SVN source, though, which requires some setting up and fiddling about. In the meantime you can try these:

In src\plugins\contrib\AutoVersioning\avChangesDlg.cpp, find

Code: [Select]
   SetClientSize(wxSize(700,300));
at line 46. You can adjust the dialogue size here. The patch sets it to:

Code: [Select]
   SetClientSize(wxSize(800,300));
After

Code: [Select]
   SetSizer(BoxSizer1);
at line 74, insert this to set the minimum size:

Code: [Select]
   BoxSizer1->SetMinSize(800, 200);
After

Code: [Select]
   grdChanges->AutoSize();
at line 90, add:

Code: [Select]
   grdChanges->SetColSize(0, 60);
    grdChanges->SetColSize(1, 645);

to set the column widths.

you can play with the numbers to adjust the sizes to suit.

Have fun,

  Cryo.

« Last Edit: June 23, 2010, 08:10:59 pm by Cryogen »