Code::Blocks Forums

User forums => Help => Topic started by: miggilin on May 03, 2008, 04:34:00 am

Title: Strange Code Completion with wxWidgets
Post by: miggilin on May 03, 2008, 04:34:00 am
I've enabled code completion using wxWidgets, but strangely for some classes it doesn't give what I would imagine it should. For instance:
wxButtonBase instead of wxButton
wxAppBase instead of wxApp

It doesn't do this for all classes, and I can't figure out why it doesn't offer the other classes (wxButton, wxApp, etc) when they all exist there. Is this a configuration problem or a CB bug (or what)?
Title: Re: Strange Code Completion with wxWidgets
Post by: Barking_Mad on May 03, 2008, 08:21:42 am
Yeah i noticed that, anoying. I was allways getting wxWindowBase instead of wxWindow or something similar.
Title: Re: Strange Code Completion with wxWidgets
Post by: miggilin on May 03, 2008, 08:47:15 am
I wonder if the last post here has something to do with it:
http://forums.codeblocks.org/index.php/topic,6396.msg50448.html#msg50448

Even so, is there way way to fix it/get it working?
Title: Re: Strange Code Completion with wxWidgets
Post by: Barking_Mad on May 04, 2008, 03:38:18 pm
Another thing about CB code completion is its partial recognition.

From a set of words with common characters it doesnt allow tabbed completion of words to the nearest ambiguous symbol.

For example from the set:

BaseObject
BaseHpuse
BaseIsReallyDeep
BaseSomthingElse

Typing B... will invoke a completion list as seen above, but hitting tab simply completes it to the first object in the list, the completion algo is making assumptions on ambiguities here. It would be more efficient to have it complete to the nearest ambiguous letter:

B... TAB...Base...I....TAB...BaseIsReallyDeep

i.e. same as UNIX shell completion.
Title: Re: Strange Code Completion with wxWidgets
Post by: miggilin on May 07, 2008, 06:26:35 am
So... No fix? Nothing? Just sucks for me?

Should I file a bug report?
Title: Re: Strange Code Completion with wxWidgets
Post by: Seronis on May 07, 2008, 02:13:44 pm
If you would do a forum search on code completion you would see there has been a lot of (fairly recent) posts on the devs redesigning the code completion functionality.  It explains whats going on.