Hello,
I have added event handlers for EVT_KEY_DOWN, EVT_KEY_UP,
EVT_CHAR in a wxGrid. I can capture the KeyDown and KeyUp
events without problem. But EVT_CHAR event never happens,
I have made doubly sure the event handlers for EVT_KEY_DOWN,
EVT_KEY_UP calls event.Skip(). I also tried dropping
EVT_KEY_DOWN, EVT_KEY_UP handlers altogther, leaving only
EVT_CHAR handler, but the event still doesn't happen.
What am I missing?
Thanks in advance!
···
--
Best regards,
Herman
Hello Herman,
Saturday, August 9, 2003, 10:36:10 PM, you wrote:
Return-Path: <wxPython-users-return-21199-hermanlo=i-cable.com@lists.wxwindows.org>
Received: from sunsite.dk (sunsite.dk [130.225.247.90])
by xylophone.i-cable.com (8.12.3/8.12.3) with SMTP id h79Eah1N009482
for <hermanlo@i-cable.com>; Sat, 9 Aug 2003 22:36:47 +0800 (CST)
Received: (qmail 21184 invoked by uid 43863); 9 Aug 2003 14:36:30 -0000
Mailing-List: contact wxPython-users-help@lists.wxwindows.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Post: <mailto:wxPython-users@lists.wxwindows.org>
List-Help: <mailto:wxPython-users-help@lists.wxwindows.org>
List-Unsubscribe: <mailto:wxPython-users-unsubscribe@lists.wxwindows.org>
List-Subscribe: <mailto:wxPython-users-subscribe@lists.wxwindows.org>
Reply-To: wxPython-users@lists.wxwindows.org
Delivered-To: mailing list wxPython-users@lists.wxwindows.org
Received: (qmail 21176 invoked from network); 9 Aug 2003 14:36:30 -0000
X-MessageWall-Score: 0 (sunsite.dk)
Date: Sat, 9 Aug 2003 22:36:10 +0800
From: Herman Lo <hermanlo@i-cable.com>
X-Mailer: The Bat! (v1.62r)
Reply-To: Herman Lo <hermanlo@i-cable.com>
X-Priority: 3 (Normal)
Message-ID: <54412198.20030809223610@i-cable.com>
To: wxPython-users@lists.wxwindows.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [wxPython-users] EVT_CHAR event got "eaten" in a grid
X-UIDL: 21(#!Y_,"!Fg[!!)Ac!!
X-Text-Classification: python
X-POPFile-Link: <http://127.0.0.1:8080/jump_to_message?view=popfile508=7.msg>
Hello,
I have added event handlers for EVT_KEY_DOWN, EVT_KEY_UP,
EVT_CHAR in a wxGrid. I can capture the KeyDown and KeyUp
events without problem. But EVT_CHAR event never happens,
I have made doubly sure the event handlers for EVT_KEY_DOWN,
EVT_KEY_UP calls event.Skip(). I also tried dropping
EVT_KEY_DOWN, EVT_KEY_UP handlers altogther, leaving only
EVT_CHAR handler, but the event still doesn't happen.
What am I missing?
Thanks in advance!
Oh, now I use the GetGridWindow() to bind the events instead,
it seems to work!!
···
--
Best regards,
Herman