Displaying 9 results from an estimated 9 matches for "evt_tool".
Did you mean:
ethtool
2008 May 26
0
[ wxruby-Feature Requests-20367 ] wxToolBarTool (wxToolBarToolBase) missing, thus anti-OO
...nt (as I''v seen) that requires concrete ID''s. This is a pain to handle in ruby. We want objects (propaganda).
Example:
tb = Wx::Toolbar.new(frame)
tb.add_tool(1000, "Click me", fancy_bitmap)
tb.add_tool(1001, "Don''t click here", fancy_bitmap)
evt_tool(1000) { puts "Great job" }
evt_tool(1001) { puts "I warned you" }
Those IDs: 1000, 1001 may clash with other toolbars on the same frame. For a fixed app this may be not a great problem, but for generated apps it''s a mess.
I really want to be able to do
tb = Wx::T...
2008 Mar 07
9
copy & paste event
hi. now I have problem about copy and paste text in my application I
make copy and paste button in toolbar and I have fuction of them but I
don''t know how to make it can copy only selection text and paste into
other textCtrl. see my picture for more info. thank you :)
Attachments:
http://www.ruby-forum.com/attachment/1526/untitled.JPG
--
Posted via http://www.ruby-forum.com/.
2009 Jan 05
8
How to use evt_update_ui wrt RichTextCtrl ?
Hi,
I''m trying to create a very simple RichTextCtrl sample based on the C++ version.
This works pretty well now with the fixes for missing
RichTextCtrl.selection_bold? ... methods.
See the attached script.
Given the formatting buttons (bold, italics, underlined), I can type
text with the proper formatting, select some text and apply a
formatting later ...
The problem I have is I
2009 Jan 05
8
How to use evt_update_ui wrt RichTextCtrl ?
Hi,
I''m trying to create a very simple RichTextCtrl sample based on the C++ version.
This works pretty well now with the fixes for missing
RichTextCtrl.selection_bold? ... methods.
See the attached script.
Given the formatting buttons (bold, italics, underlined), I can type
text with the proper formatting, select some text and apply a
formatting later ...
The problem I have is I
2006 Oct 17
0
[678] trunk/wxruby2/doc/textile/commandevent.txtl: Fixed a few event macros that did not get fixed by the parser.
...gth":#CommandEvent_setmaxlength.|
</span><span class="cx"> |*evt_togglebutton(id) { | event | ... }*|Process a EVT_COMMAND_TOGGLEBUTTON_CLICKED event.|
</span><span class="cx"> |*evt_tool(id) { | event | ... }*|Process a EVT_COMMAND_TOOL_CLICKED event(a synonym for EVT_COMMAND_MENU_SELECTED). Pass the id of the tool.|
</span><del>-|*EVT_TOOL_RANGE(id1, id2, func)*|Process a EVT_COMMAND_TOOL_CLICKED e...
2008 Mar 18
14
Proposal for an improved API for Sizer (and ToolBar)
Hi all,
This is a proposal for supporting keyword arguments to Sizer#add
following the thread below :
http://rubyforge.org/pipermail/wxruby-development/2008-March/001244.html
After a deeper look at lib/wx/keyword_ctors.rb and
lib/wx/keyword_defs.rb, I understood the whole thing :-).
I just reused and modified slightly the method args_as_list.
The new Sizer#add_item combines the features of add
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...Wx::TextUrlEvent],
+ EventType[''evt_timer'', 1,
+ Wx::EVT_TIMER,
+ Wx::TimerEvent],
+ EventType[''evt_togglebutton'', 1,
+ Wx::EVT_COMMAND_TOGGLEBUTTON_CLICKED,
+ Wx::Event],
+ EventType[''evt_tool'', 1,
+ Wx::EVT_COMMAND_TOOL_CLICKED,
+ Wx::CommandEvent],
+ EventType[''evt_tool_enter'', 1,
+ Wx::EVT_COMMAND_TOOL_ENTER,
+ Wx::CommandEvent],
+ EventType[''evt_tool_range'', 2,
+ Wx::...
2007 Jun 22
0
[1056] trunk/wxruby2/swig/classes/include/wxToolBar.h: Add missing param to InsertTool long version; uncomment some methods now
...p    /**
-         * \brief Called when the user clicks on a tool with the left mouse button.
-
-This is the old way of detecting tool clicks; although it will still work,
-you should use the EVT_MENU or EVT_TOOL macro instead.
-         * \param int
-         * \param bool
-        */
-
</del><ins>+...
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
...t_find_close(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_FIND_CLOSE);
-}
-
-static VALUE evt_button(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_BUTTON_CLICKED);
-}
-
-static VALUE evt_tool_rclicked(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_TOOL_RCLICKED);
-}
-
-static VALUE evt_tool_enter(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_TOOL_ENTER);
-}
-
-static VALUE...