how to use it properly.
It is my understanding that AutoCompletion is supposed to make our lives, the users of IDEs easier by showing options for a given set of characters in the edit windows. What I believe it does is look up, from some sort of data structure, all available tokens consisting of characters available to the project or workspace.
It seems to me to now work consistently. I know from reading posts that local variables are not necessarily parsed when the project is parsed to create the data structure. While a tad inconvenient, I can see the logic of the programmer(s) who created the system. What I am not understanding is the part where it fails to pop up the available data members for classes and structures. This system seems to work for any class or structure I have defined in my project, but does not work when working with a class like wxWidgets, upon which CB is built. As the auto-complete does work, I feel that I am missing something in my project or application set up that determines what shows up when. I am, of course, referring to the idea as has been displayed several times in these forums. What I have not seen is any explanation as to what appears to work "sometimes" as some have put it.
When I use a class like std::vector, I get none of the available functions or data structures for that class.
EX in the CB editor:
// my.cpp
#include <vector>
typedef struct foo { int a }
int main(int argc, char** argv) {
std::vector<int> v;
v.
foo f;
f.
return 0; }
At the point I hit the dot after the v, nothing shows up, but when I hit the . after the f the autocomplete box pops up and shows me that 'a' is a member of f.
My question is thus: What do I need to do to make sure, when my project is parsed for autocomplete, all available members of a class are included in the list for a given class or struct?
I find it frustrating that the system does not show me the available members of the wxWidgets especially as CB is written using it. I use wxWidgets exclusively for my projects and would like to not have to bounce between my work environment and the internet to find a specific function or data member for a wxWidget object. As I said, I believe this has to do with the way the project or default applications setting are.
As a side note, I went to Project -> Properties -> C/C++ parser and added the following lines to the folders I wanted added to the parse, but that seems to not be enough.
/mywidgetsfolder/wxWidgets-2.9.5/include/wx
/mywidgetsfolder/wxWidgets-2.9.5/include
It was enough to get things like wxALIGN_* to pop up with what is available, but does not work if I do the following.
wxTextCtrl* tc = new wxTextCtrl(parent, NewControlId(), wxEmptyString);
tc->
[/[font=Verdana][/font]code]
Thanks
CB: SVN 9271 CentOS5