News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Code complete's behavior strange

Started by Satervalley, August 16, 2007, 05:05:14 PM

Previous topic - Next topic

Satervalley

Hi!
First of all, thank the authors for making the best Free Open source C++ IDE for wxWidgets(and other c++ stuff, of course).

I use the svn 4365 version of CB, MS VC2005 is my default compiler, I download wxwidgets, install it, and compiled it. In CB, I set the search dirs for wxwidgets. So, all are ready. I create a simple wxwidgets project in cb, and compiled it successfully. I want to change some code, but I find that code complete not work for global class. for example, some code blow:

class wxTestFrame: public wxFrame
{
    public:

        wxTestFrame(wxWindow* parent,wxWindowID id = -1);
        virtual ~wxTestFrame();
...
}

in cpp file:

wxTestFrame::wxTestFrame(wxWindow* parent,wxWindowID id)
{
    //(*Initialize(wxTestFrame)
    wxMenuBar* MenuBar1;
    wxMenu* Menu1;
    wxMenuItem* MenuItem1;
    wxMenu* Menu2;
    wxMenuItem* MenuItem2;

    Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("wxFrame"));
    MenuBar1 = new wxMenuBar();
    Menu1 = new wxMenu();

    Menu1->  // when I type here, I expect the code complete will popup and show a member functions list for wxMenu, but nothing happen.

but in another condition:

class wxTestApp : public wxApp
{
    public:
        virtual bool OnInit();
};

in cpp file:

bool wxTestApp::OnInit()
{
    bool wxsOK = true;
    wxInitAllImageHandlers();
    if ( wxsOK )
    {
        wxTestFrame* Frame = new wxTestFrame(0);
        Frame->      // here, a list includes not only member function of wxTestApp but also member functions of wxApp  is popuped.
        SetTopWindow(Frame);
    }
    return wxsOK;

}

so, it seems that code complete for global class works somewhere and strikes another where.

I do not know why.

Loaden

I'am the same problem, and the C::B version is: svn build rev 4893 (2008-02-18 20:06:04) gcc 4.2.1 Windows/unicode