Displaying 11 results from an estimated 11 matches for "evt_char".
Did you mean:
esc_char
2003 Nov 25
1
Does wxRuby have event masks or something similar?
I''m trying to capture character events on a frame, using the following
piece of
code (adapted from samples/etc/test.rb):
def initialize(title)
super(nil, -1, title, Wx::Point.new(-1,-1), Wx::Size.new(530,590),
Wx::DEFAULT_FRAME_STYLE | Wx::FRAME_SHAPED)
evt_paint { onPaint }
evt_char { | evt |
puts "Got char evt: "+evt.to_s
if evt.get_key_code.chr =~ /\s/
next_image
end
}
@bitmap = nil
@file = nil
end
(I''ve added the constant for Wx::FRAME_SHAPED to try and allow resizing
programtically. Doesn''t seem to work, but t...
2006 Aug 01
1
additions to wxKeyEvent
Added the public variables like m_KeyCode and m_controlDown, these are
needed it you want to create your own EVT_CHAR message to send a
widget.
I am including the whole .h file instead of a diff since it is small.
Sean
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Jun 28
0
[1096] trunk/wxruby2/lib/wx/classes/evthandler.rb: Add mapping for another obscure and undocumented event type
...1095)
+++ trunk/wxruby2/lib/wx/classes/evthandler.rb        2007-06-28 18:46:41 UTC (rev 1096)
</span><span class="lines">@@ -105,6 +105,9 @@
</span><span class="cx"> EventType[''evt_char'', 0,
</span><span class="cx"> Wx::EVT_CHAR,
</span><span class="cx"> Wx::KeyEvent],
</span><ins>+ EventType[''evt_char_hook'', 0,
+ Wx::EVT_CHAR_HOOK,
+ Wx::Ke...
2010 Jan 24
13
Where can I find a list of events for each widget?
I''ve searched the documentation like crazy but I can''t seem to find the
events for each of the widgets. Any info on this would be greatly
appreciated.
--
Posted via http://www.ruby-forum.com/.
2003 Dec 13
1
widget hierarchy - program variables
Hi!
During developing my little program, I''ve noticed, that the objects have
a hierarchy, but now I don''t know what to do, if a widget initiates an
event which has an effect to the parent, grandfather/brother/other
relatives.
Is there a tutorial for this aspect?
Gergo
--
+-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+
|
2004 May 22
10
Tabbing between Notebook pages
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxTony.rbw
Type: application/octet-stream
Size: 10436 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20040522/9c1889d0/wxTony.obj
2007 Jul 04
0
[1107] trunk/wxruby2: Add the 2.8 get_modifiers method to KeyEvent; remove some deprecated
...that the correct key code could be
</span><span class="cx"> found in the key down event handler by checking the value returned by
</span><span class="cx"> "shift_down()":#KeyEvent_shiftdown(), in general you should use
</span><del>-@EVT_CHAR@ for this as for non alphanumeric keys the translation is
</del><ins>+@EVT_CHAR@ for this as for non-alphanumeric keys the translation is
</ins><span class="cx"> keyboard-layout dependent and can only be done properly by the system itself.
</span><span cla...
2007 May 29
0
[1035] trunk/wxruby2/swig/classes/EvtHandler.i: Removed a heap of redundant stuff that''s been #if 0''d for a while
...-static VALUE evt_key_down(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_no_parameters(argc, argv, self, wxEVT_KEY_DOWN);
-}
-
-static VALUE evt_key_up(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_no_parameters(argc, argv, self, wxEVT_KEY_UP);
-}
-
-static VALUE evt_char(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_no_parameters(argc, argv, self, wxEVT_CHAR);
-}
-
-static VALUE evt_find(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_FIND);
-}
-
-static VALUE evt_find_next(int argc, VALUE *a...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...VT_ERASE_BACKGROUND => Wx::EraseEvent,
- Wx::EVT_UPDATE_UI => Wx::UpdateUIEvent,
- Wx::EVT_SIZE => Wx::SizeEvent,
- Wx::EVT_SIZING => Wx::SizeEvent,
- Wx::EVT_MOVE => Wx::MoveEvent,
- Wx::EVT_MOVING => Wx::MoveEvent,
- Wx::EVT_TIMER => Wx::TimerEvent,
- Wx::EVT_CHAR => Wx::KeyEvent,
- Wx::EVT_CHAR_HOOK => Wx::KeyEvent,
- Wx::EVT_KEY_DOWN => Wx::KeyEvent,
- Wx::EVT_KEY_UP => Wx::KeyEvent,
- Wx::EVT_COMMAND_FIND => Wx::FindDialogEvent,
- Wx::EVT_COMMAND_FIND_NEXT => Wx::FindDialogEvent,
- Wx::EVT_COMMAND_FIND_REPLACE => Wx:...
2008 Jan 19
10
lose focus event?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I''m new to wxruby, and I haven''t found any answer with google: Is
there a way to capture a lose focus event on controls, such as a combo
box? All my experiments show events when changing the text, but not
when leaving the box.
I want to make a combobox that autocompletes if I press tab (or down
arrow or something), but if I
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...+ Wx::EVT_PAINT => Wx::PaintEvent,
+ Wx::EVT_UPDATE_UI => Wx::UpdateUIEvent,
+ Wx::EVT_SIZE => Wx::SizeEvent,
+ Wx::EVT_SIZING => Wx::SizeEvent,
+ Wx::EVT_MOVE => Wx::MoveEvent,
+ Wx::EVT_MOVING => Wx::MoveEvent,
+ Wx::EVT_TIMER => Wx::TimerEvent,
+ Wx::EVT_CHAR => Wx::KeyEvent,
+ Wx::EVT_CHAR_HOOK => Wx::KeyEvent,
+ Wx::EVT_KEY_DOWN => Wx::KeyEvent,
+ Wx::EVT_KEY_UP => Wx::KeyEvent,
+ Wx::EVT_COMMAND_FIND => Wx::FindDialogEvent,
+ Wx::EVT_COMMAND_FIND_NEXT => Wx::FindDialogEvent,
+ Wx::EVT_COMMAND_FIND_REPLACE => Wx:...