Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

codecomletin problem

(1/1)

blueshake:
hello,
did anybody find that when the codecompletion is activated and you type "."
then the member list will not show.
see the attachment.
i think this patch will help.

--- Code: ---Index: codecompletion.cpp
===================================================================
--- codecompletion.cpp (revision 5744)
+++ codecompletion.cpp (working copy)
@@ -1937,7 +1937,9 @@
 //        Manager::Get()->GetLogManager()->DebugLog(_T("wxEVT_SCI_KEY"));
 //    else if (event.GetEventType() == wxEVT_SCI_MODIFIED)
 //        Manager::Get()->GetLogManager()->DebugLog(_T("wxEVT_SCI_MODIFIED"));
-
+    if (event.GetKey() == '.')
+        if (control->AutoCompActive())
+            control->AutoCompCancel();
     if (event.GetEventType() == wxEVT_SCI_CHARADDED &&
         !control->AutoCompActive()) // not already active autocompletion
     {

--- End code ---
any comment will be welcomed

[attachment deleted by admin]

blueshake:
let me describle this problem again.
here is the test codes.

--- Code: ---#include <iostream>

using namespace std;
class pt
{
    int x;
    int y;
};
int main()
{
    pt pp;
    |
    cout << "Hello world!" << endl;
    return 0;
}
--- End code ---

in the "|" position ,you type pp and the codecompletion showed (see the attachment above)
and you continue to type the char "." (notice the codecompletion still show) .
here the class pt's members is excepted to be show.but nothing show here.
so this patch can solve the problem.

ollydbg:
I have applied this patch in my local copy.

And it works!!!

Thanks! :D

Navigation

[0] Message Index

Go to full version