Author Topic: Problem with the "Find" Window.  (Read 7939 times)

Offline rtty21

  • Multiple posting newcomer
  • *
  • Posts: 12
Problem with the "Find" Window.
« on: August 24, 2012, 05:33:45 am »
I'm having some trouble with the find window. it looks like this:

it is really just awful.
I can't re-size it. I don't know what is going on.

Any help would be most appreciated!
Cheers!

Rtty21

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Problem with the "Find" Window.
« Reply #1 on: August 24, 2012, 05:54:52 am »
I don't have such issue. Which version of C::B do you use?
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 Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2809
Re: Problem with the "Find" Window.
« Reply #2 on: August 24, 2012, 12:25:32 pm »
This is caused by: at some point in the past, find was issued with a huge long text line that is now stuck in the history of find.

I solved the problem by deleting the find history out of my conf file.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9693
Re: Problem with the "Find" Window.
« Reply #3 on: August 26, 2012, 05:59:49 pm »
I solved the problem by deleting the find history out of my conf file.
Interesting... What do I need to do to reproduce? I think a proper fix would be as simple as settings up a max size for the related search/replace fields.
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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Problem with the "Find" Window.
« Reply #4 on: August 26, 2012, 06:26:45 pm »
I solved the problem by deleting the find history out of my conf file.
Interesting... What do I need to do to reproduce? I think a proper fix would be as simple as settings up a max size for the related search/replace fields.
Just create a very long search string (copy and paste "works fine"), search for it, close the dialog and reopen it.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9693
Re: Problem with the "Find" Window.
« Reply #5 on: August 27, 2012, 07:31:02 am »
Just create a very long search string (copy and paste "works fine"), search for it, close the dialog and reopen it.
Mmmmh... I think there is simply missing a:
Code
    GetSizer()->SetSizeHints(this);
Before the Connect() statement in finddlg.cpp. I cannot compile C::B for the moment, but anybody willing to try or on the way to compile C::B anyways step forwards...
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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Problem with the "Find" Window.
« Reply #6 on: August 27, 2012, 09:41:49 am »
Just create a very long search string (copy and paste "works fine"), search for it, close the dialog and reopen it.
Mmmmh... I think there is simply missing a:
Code
    GetSizer()->SetSizeHints(this);
Before the Connect() statement in finddlg.cpp. I cannot compile C::B for the moment, but anybody willing to try or on the way to compile C::B anyways step forwards...
I'm currently working on wx2.9 port of the contrib-plugins.

Off topic:
In linux it's ready and working (except for a crash on exit in keybinder caused by event-handler issues, that can be fixed later).
On windows I need some time to create the wx2.9 project-files and test the rest.
If all is working and does not break wx2.8, I will commit the changes.

Offline rtty21

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Problem with the "Find" Window.
« Reply #7 on: September 02, 2012, 10:43:24 pm »
This is caused by: at some point in the past, find was issued with a huge long text line that is now stuck in the history of find.

I solved the problem by deleting the find history out of my conf file.


Where is this config file? and what is it named?

EDIT:

I found the config file in %appdata%
Thank you for the help!
« Last Edit: September 02, 2012, 10:52:00 pm by rtty21 »