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

KeyDown Event Hook

(1/1)

joubertdj:
 :( I have tried to no avail, the implementation of a KeyDown event within CBEditor or EditorManager classes.

The reason that I require this, is that when you have code such as:


--- Code: ---12    //Comment or other code
13 + void Proc(){
18

--- End code ---

If the lines 12 and 13 are selected and deleted, it does not unfold or delete the hidden lines... it keeps them hidden...
I want to fix this without changing wxScintilla or Scintilla... to do this I need a hook within cbEditor or editormanager... I can't seem to achieve this... probably a stupid error... please help...

mandrav:
First tell us how did you try to hook cbEditor events so that we can take it from there and help you...

joubertdj:
Okay, as I was typing the explanation when I realized something... I was using the cbEditor event decleration table instead of the cbStyledTextCtrl event Table... Itried that quickly and it worked... So... of I go to squish a bug...

Navigation

[0] Message Index

Go to full version