[wxruby-users] StyledTextCtrl not receiving all entered keys
Robin Rogge
lists at ruby-forum.com
Tue Dec 16 05:21:14 EST 2008
Hi Alex,
Alex Fenton wrote:
>> i am working on a little editor based on the StyledTextCtrl. The
>> problem: The keys "wrtzfy.-#+124780" are not being received by the
>> control, so there is no output within the control and no events are
>> being triggered. I've tested this on two different machines running (one
>> running XP and the other one running Vista), but these keys do work with
>> other controls within the same application. Any idea what might be the
>> cause?
>
> That's strange. I can't reproduce the error on XP using the wxRuby
> scintilla sample. Could you try running that sample please? If the
> sample problem occurs, then I guess it's a bug with Vista, otherwise
> there must be something in your app that's consuming those characters.
> Perhaps an evt_char handler that is not calling skip on the event?
Thanks for your response. I actually never saw this demo before and it
works perfectly. So, looking at it, i see the main difference between my
code and the demo code is that i use an extended StyledTextCtrl, while
the demo uses a direct instance of StyledTextCtrl. For testing, i
trimmed my extended class as far as possible until the following code
remained, while the problem still remained:
class EditorPage < Wx::StyledTextCtrl
end
So the demo uses
@sci = Wx::StyledTextControl.new(self)
while i use
@sci = EditorPage.new(self)
Note that this problem occurs on both, Windows XP and Vista.
Greetings from Hamburg / Germany
- rojaro -
--
Posted via http://www.ruby-forum.com/.
More information about the wxruby-users
mailing list