User forums > General (but related to Code::Blocks)

A feature request about CC and BrowseTracker

<< < (3/8) > >>

ollydbg:

--- Quote from: blueshake on August 15, 2009, 03:19:19 pm ---I am not sure.but we can have a try,afterall ,highbrace is handled by this message.

--- End quote ---
I don't agree with you.
After reading the sdk_event.h about all the event, I know that the "cbEVT_EDITOR_UPDATE_UI" is an event haven't used by any plugin and contributed plugin. Also, I think this event happened to quickly when every.
Am I right? :D

blueshake:
I see these codes NotifyPlugins(cbEVT_EDITOR_UPDATE_UI);,
so I think the plugin maybe get the message.
maybe there is a better way to do this. :D

blueshake:
@ollydbg
a idea come out.
maybe can hook the left mouse click message.

ollydbg:
I'm carefully reading the scintilla document. For Editor_update message, here is the description:


--- Quote ---SCN_UPDATEUI
Either the text or styling of the document has changed or the selection range has changed. Now would be a good time to update any container UI elements that depend on document or view state. This was previously called SCN_CHECKBRACE because a common use is to check whether the caret is next to a brace and set highlights on this brace and its corresponding matching brace. This also replaces SCN_POSCHANGED, which is now deprecated.
--- End quote ---

Not quite understand its meaning.


--- Quote from: blueshake on August 15, 2009, 03:44:45 pm ---@ollydbg
a idea come out.
maybe can hook the left mouse click message.

--- End quote ---

Mouse click message is hard to hook, if someone just jump to a position, and haven't use mouse click( eg: he can use keybord arrow key to navigate, the position will be lost...)

I personally prefer a wxTimer event in browserTracker plugin, but it seems hard to implement for me.

blueshake:
refer to wxTimer implemention in codecompletion.cpp.
but if we use wxTimer ,and set time interval to 1 second,
if user move the caret position several times in a second.
caret position will missed too.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version