Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: joubertdj on January 05, 2007, 07:44:49 am

Title: KeyDown Event Hook
Post by: joubertdj on January 05, 2007, 07:44:49 am
 :( 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

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...
Title: Re: KeyDown Event Hook
Post by: mandrav on January 05, 2007, 08:45:31 am
First tell us how did you try to hook cbEditor events so that we can take it from there and help you...
Title: Re: KeyDown Event Hook
Post by: joubertdj on January 05, 2007, 08:58:58 am
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...