[[wxPython] (no subject)]

Windows 98, wxPython 2.1.16

Hello,

I have a wxDialog-derived class, and in it's __init__ method I do

        self.html = wxHtmlWindow(self, -1)
        self.html.SetFocus ()

        EVT_KEY_DOWN(self,self.OnKeyDown)
        EVT_KEY_DOWN(self.html,self.OnKeyDown)
        EVT_KEY_UP(self,self.OnKeyUp)
        EVT_KEY_UP(self.html,self.OnKeyUp)
        EVT_CHAR_HOOK(self,self.OnCharHook)

now the problem is that OnCharHook is called on a key press (i.e., on a

key

down), as more or less expected (the documentation didn't seem at all clear
to me on whether this would be on a key down or on a key up), but neither
the OnKeyDown or the OnKeyUp methods are called at all...

Do you have event.Skip() in OnCharHook?

Niki Spahiev
e-mail: niki@vintech.bg

···

"Chris Fama" <chris@maths.uq.edu.au> wrote:

____________________________________________________________________
Get free email and a permanent address at Net@ddress Mail

Do you have event.Skip() in OnCharHook?

Yes... [just checked over my code...]

... but thanks for the suggestion...

Cheerio, Chris

···

-----Original Message-----
From: wxpython-users-admin@wxwindows.org
[mailto:wxpython-users-admin@wxwindows.org]On Behalf Of Niki Spahiev
Sent: Thursday, 20 July 2000 11:00 PM
To: wxpython-users@wxwindows.org
Subject: Re: [[wxPython] (no subject)]

"Chris Fama" <chris@maths.uq.edu.au> wrote:
> Windows 98, wxPython 2.1.16
>
> Hello,
>
> I have a wxDialog-derived class, and in it's __init__ method I do
>
> self.html = wxHtmlWindow(self, -1)
> self.html.SetFocus ()
>
> EVT_KEY_DOWN(self,self.OnKeyDown)
> EVT_KEY_DOWN(self.html,self.OnKeyDown)
> EVT_KEY_UP(self,self.OnKeyUp)
> EVT_KEY_UP(self.html,self.OnKeyUp)
> EVT_CHAR_HOOK(self,self.OnCharHook)
>
> now the problem is that OnCharHook is called on a key press (i.e., on a
key
> down), as more or less expected (the documentation didn't seem
at all clear
> to me on whether this would be on a key down or on a key up),
but neither
> the OnKeyDown or the OnKeyUp methods are called at all...

Do you have event.Skip() in OnCharHook?

Niki Spahiev
e-mail: niki@vintech.bg

____________________________________________________________________
Get free email and a permanent address at Net@ddress Mail

_______________________________________________
wxPython-users mailing list wxPython-users@wxwindows.org
http://wxwindows.org/mailman/listinfo/wxpython-users