Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Patch: function arguments added to autocomplete tooltip
ollydbg:
--- Quote from: Alpha on November 29, 2012, 12:29:36 am ---An alternative idea to a popup would be to have a "CC Documentation" tab in the logs at the bottom. CC could update it whenever it felt necessary: docs on the symbol under the caret, docs on the current function, and, of course, docs on the current selection during auto-completion. This idea should not interfere with other popups, but it also may not be as intuitive.
--- End quote ---
I like this idea.
Alpha:
--- Quote from: p2rkw on November 29, 2012, 01:09:53 am ---Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(CodeCompletion::OnKeyDown));
--- End quote ---
Key events are not generated inside a plugin, so it is necessary to Connect() to the editor with something like:
--- Code: ---cbEditor* ed = Manager::Get()->GetEditorManager()->GetBuiltinActiveEditor();
if (ed)
ed->GetControl()->Connect(wxEVT_KEY_DOWN, (wxObjectEventFunction)&CodeCompletion::OnKeyDown, NULL, this);
...
void CodeCompletion::OnKeyDown(wxKeyEvent& event)
{
}
--- End code ---
Also, take a look at:
--- Code: ---void CodeCompletion::EditorEventHook(cbEditor* editor, wxScintillaEvent& event)
--- End code ---
MortenMacFly:
--- Quote from: dmoore on November 28, 2012, 11:00:57 pm ---I think you could just use a wxPopupWindow.
--- End quote ---
Note that this is not available on the Mac. Maybe a HTML/RTF like control is indeed better.
dmoore:
We use mini frame or some such on Mac using an ifdef. The scintilla popup does the same thing.
Re html window... I would prefer the way it is done in netbeans. To have a html control means another persistent window on screen taking up space?? An alternative to two popups is to hack the tip window to add extra widgets to it.
oBFusCATed:
--- Quote from: dmoore on November 29, 2012, 01:46:10 pm ---An alternative to two popups is to hack the tip window to add extra widgets to it.
--- End quote ---
wxTipWindow is unhackable... you'll have to use wxPopupWindow or wxPopupTransinientWindow.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version