Displaying 12 results from an estimated 12 matches for "evt_left_up".
2005 Jan 22
9
Dragging images across the canvas
...l, -1, title,Wx::DEFAULT_POSITION, Wx::Size.new(250,250))
image = Wx::Image.new("sk.png")
@bitmap = Wx::Bitmap.new(image)
@left_dn = false
evt_paint { on_paint }
evt_motion {|event| on_motion(event) }
evt_left_down {|event| @left_dn = true }
evt_left_up {|event| @left_dn = false }
end
def move_region(nx,ny)
ox,oy,w,h = @reg.get_box
@reg.clear
@reg = Wx::Region.new(nx,ny,nx+w,ny+h)
dc = Wx::ClientDC.new(self)
# Erase from the existing location
#
wb = Wx::WHITE_BRUSH
dc.set_brush(wb)
dc...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...ACE => Wx::FindDialogEvent,
- Wx::EVT_COMMAND_FIND_REPLACE_ALL => Wx::FindDialogEvent,
- Wx::EVT_COMMAND_FIND_CLOSE => Wx::FindDialogEvent,
- Wx::EVT_SET_FOCUS => Wx::FocusEvent,
- Wx::EVT_KILL_FOCUS => Wx::FocusEvent,
- Wx::EVT_LEFT_DOWN => Wx::MouseEvent,
- Wx::EVT_LEFT_UP => Wx::MouseEvent,
- Wx::EVT_LEFT_DCLICK => Wx::MouseEvent,
- Wx::EVT_MIDDLE_DOWN => Wx::MouseEvent,
- Wx::EVT_MIDDLE_UP => Wx::MouseEvent,
- Wx::EVT_MIDDLE_DCLICK => Wx::MouseEvent,
- Wx::EVT_RIGHT_DOWN => Wx::MouseEvent,
- Wx::EVT_RIGHT_UP => Wx::MouseEvent,...
2003 Nov 10
1
Statusbar usage
Hi!
While playing around with a little example, I''ve realized, that I don''t
exactly know, how to work with the statusbar. When just calling
set_status_text (setStatusText in C++), then repeating messages don''t
display again. I guess there should be a magic rule about statusbar''s
text hierarchy, but can sy give me some hints about it?
Maybe some wxruby hints
2004 Jun 22
8
Tracking Mouse motion
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: tst_wxPaint.rbw
Type: application/octet-stream
Size: 4446 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20040622/abc8ba85/tst_wxPaint-0001.obj
2010 Sep 09
1
Wx::Grid and motion events, bug?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi there,
Doesn''t a Wx::Grid get motion events sent? This code demonstrates the
problem:
- --------------------------------------------------------------
#!/usr/bin/env ruby
#Encoding: UTF-8
require "wx"
class MyFrame < Wx::Frame
include Wx
def initialize(parent = nil)
super(parent, title: "Test", size:
2007 Jun 26
0
[1086] trunk/wxruby2/lib/wx/classes/evthandler.rb: Restore evt_mouse_events convenience handler, fixing bug in printing sample
...t;<span class="cx"> end
</span><span class="cx"> end
</span><span class="cx">
</span><ins>+ # convenience evt_handler to listen to all mouse events
+ def evt_mouse_events(&block)
+ evt_left_down(&block)
+ evt_left_up(&block)
+ evt_middle_down(&block)
+ evt_middle_up(&block)
+ evt_right_down(&block)
+ evt_right_up(&block)
+ evt_motion(&block)
+ evt_left_dclick(&block)
+ evt_middle_dclick(&block)
+ evt_right_dclick(&block)
+ evt_leave_window(&bloc...
2007 Mar 17
0
[886] branches/wxruby2/wxwidgets_282/swig/fixevents.rb: Mouse events fix for Win32 (Artur Kuptel)
...  
+                out.puts <<FUNC_DEF
+static VALUE evt_mouse_events(int argc, VALUE *argv, VALUE self)
+{
+ evt_left_down(argc,argv,self);
+ evt_left_up(argc,argv,self);
+ evt_middle_down(argc,argv,self);
+ evt_middle_up(argc,argv,self);
+ evt_right_down(argc,argv,self);
+ evt_right_up(argc,argv,self);
+ evt_motion(argc,argv,self);
+ evt_left_dclick(argc,argv,self);
+ evt_middle_dclick(argc,argv,self);
+ evt_right_dclick(arg...
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
...E evt_tool_enter(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_TOOL_ENTER);
-}
-
-static VALUE evt_left_down(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_no_parameters(argc, argv, self, wxEVT_LEFT_DOWN);
-}
-
-static VALUE evt_left_up(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_no_parameters(argc, argv, self, wxEVT_LEFT_UP);
-}
-
-static VALUE evt_left_dclick(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_no_parameters(argc, argv, self, wxEVT_LEFT_DCLICK);
-}
-
-static VALUE evt_right_down(in...
2007 Apr 29
0
[993] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Use ClientDC via Window#paint object
...bsp   2007-04-29 16:40:51 UTC (rev 993)
</span><span class="lines">@@ -35,11 +35,11 @@
</span><span class="cx"> evt_left_down {|event| on_left_button_event_down(event)}
</span><span class="cx"> evt_left_up {|event| on_left_button_event_up(event)}
</span><span class="cx"> evt_motion {|event| on_left_button_event_motion(event)}
</span><del>- evt_paint {|event| on_paint(event)}
</del><ins>+ evt_paint { on_paint }
</ins><span cl...
2004 Jul 06
1
New to wxruby
Sorry if this is a repost for those of you who are also on the wxusers
list. But I thought I might get some more specific feedback here.
I am interested in producing graphical interface elements, like those:
http://azureus.sourceforge.net/img/sc/2.1.0.2/statistics.png
and http://azureus.sourceforge.net/img/sc/2.1.0.2/torrent_general.png
Can anyone point me to what wxruby widgets might work to
2004 Jun 02
13
wxGrid Question
...ld that is created when you start typing in a cell.
Also is there a way to get mouse events to work with a wxGrid, so far I
can''t get any of them to work. I had tried various combo''s of:
@grid.evt_left_down(){ |event|
puts "Left mouse is down"; }
using evt_left_down, evt_left_up, evt_mouse_events, etc...
Thanks,
Zach
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.684 / Virus Database: 446 - Release Date: 5/13/2004
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...ACE => Wx::FindDialogEvent,
+ Wx::EVT_COMMAND_FIND_REPLACE_ALL => Wx::FindDialogEvent,
+ Wx::EVT_COMMAND_FIND_CLOSE => Wx::FindDialogEvent,
+ Wx::EVT_SET_FOCUS => Wx::FocusEvent,
+ Wx::EVT_KILL_FOCUS => Wx::FocusEvent,
+ Wx::EVT_LEFT_DOWN => Wx::MouseEvent,
+ Wx::EVT_LEFT_UP => Wx::MouseEvent,
+ Wx::EVT_LEFT_DCLICK => Wx::MouseEvent,
+ Wx::EVT_MIDDLE_DOWN => Wx::MouseEvent,
+ Wx::EVT_MIDDLE_UP => Wx::MouseEvent,
+ Wx::EVT_MIDDLE_DCLICK => Wx::MouseEvent,
+ Wx::EVT_RIGHT_DOWN => Wx::MouseEvent,
+ Wx::EVT_RIGHT_UP => Wx::MouseEvent,...