search for: valuefunc

Displaying 10 results from an estimated 10 matches for "valuefunc".

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
...VALUE evt_menu_highlight_all(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_no_parameters(argc, argv, self, wxEVT_MENU_HIGHLIGHT_ALL); -} - - -// TODO: Add for ListEvent types? Is this needed? - -%} - - - - -%init %{ - rb_define_method(cWxEvtHandler.klass, "connect", VALUEFUNC(connect_fnc), -1); - rb_define_method(cWxEvtHandler.klass, "evt_menu", VALUEFUNC(evt_menu), -1); - rb_define_method(cWxEvtHandler.klass, "evt_tool", VALUEFUNC(evt_menu), -1); - rb_define_method(cWxEvtHandler.klass, "evt_menu_range", VALUEFUNC(evt_menu_range),...
2004 Jul 31
3
Bug in new_work_item
Hi all, Windows 2000 Ruby 1.8.2 R7 VC++ 6.0 I noticed that if I try to call new_work_item and give the task a name that already exists, I get a segfault: C:\eclipse\workspace\win32-taskscheduler>ruby test.rb "0.1.0" test.rb:22:in `new_work_item'': NewWorkItem() function failed (Win32::TaskSchedul erError) from test.rb:22 test.rb:22: [BUG] Segmentation fault ruby
2006 Jul 25
6
Wizards
Hi Please find attached a set of patches and swig files to implement Wizards for wxruby. Also a brief sample. Quick q - the C declarations of evt_xxx_xxx methods and their attaching to Ruby classes seems to be duplicated across Events.i and EvtHandler.i - is one of these the right place to be adding them? or both? Thanks alex _______________________________________________
2003 Nov 13
7
modified classes
-- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+ -------------- next part -------------- A non-text attachment was scrubbed... Name:
2007 Jun 23
0
[1060] trunk/wxruby2/swig/fixevents.rb: Include some previously missing events, rehash and simplify
...mp;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspout.puts <<REGISTER_FUNC -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsprb_define_method(cWxEvtHandler.klass, \"#{evt[0].downcase}\", VALUEFUNC(#{evt[0].downcase}),-1); </del><ins>+ out.puts "#ifdef __WXMSW__" if evt.windows_only? + out.puts <<REGISTER_FUNC +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsprb_define_method(cWxEvtHandler.klass, \"#{evt.name.downcase}\", VALU...
2006 Apr 27
5
Major Breakthrough?
Attached are patches to make the textctrl.rb sample work fully. Note the new %directorargout typemap I added to fix wxWindows calling into SWIG. I don''t know if this can fix all such problems or not. Let me know what you think. I also rubified the sample a little bit more. Also, note that I fix the << operator so the function can be called. I hope I did this right. Roy
2005 Aug 04
2
Next swig problem
...1: ''cWxSpinCtrl'' : redefinition; different basic types ... The reason for this is the way it trying to use something before declaring it: extern "C" void PostInit_wxSpinCtrl(void) { #ifndef __WXGTK__ rb_define_method(cWxSpinCtrl.klass, "set_selection", VALUEFUNC(_wrap_wxSpinCtrl_SetSelection), -1); #endif } extern swig_class cWxControl; swig_class cWxSpinCtrl; If I move the PostInit part down below the declaration all works fine (compilation wise).
2005 May 02
3
where is destructors?
...here some problems? This is a patch: ================================================================ --- src/bitmap.cpp 30 Nov 2003 22:54:48 -0000 1.2 +++ src/bitmap.cpp 2 May 2005 11:11:58 -0000 @@ -32,10 +32,16 @@ rb_define_method(rubyClass, "convert_to_image", VALUEFUNC(WxBitmap::ConvertToImage), 0); } +void WxBitmap_free(wxBitmap *bmp) { + if(bmp) { + delete bmp; + }; +}; + VALUE WxBitmap::alloc(VALUE self) { - return Data_Wrap_Struct(self, 0, 0, 0); + return Data_Wrap_Struct(self, 0, WxBitmap_free, 0); } VALUE =======================...
2005 Jul 16
28
wxruby (was: Some questions)
Roy Sutton wrote (on the FreeRIDE list): > Really? That''s interesting. I haven''t checked out WxRuby but I would > be much happier using something that interfaces to the underlying > operating system''s widgets. As a member (and former leader) of the wxruby team, I thought I would share the state of the wxruby world. The current release is 0.6, and it has
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...$events.each do | evt | - next if evt.excluded? - - out.puts "#ifdef __WXMSW__" if evt.windows_only? - out.puts <<REGISTER_FUNC -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsprb_define_method(cWxEvtHandler.klass, \"#{evt.name.downcase}\", VALUEFUNC(#{evt.name.downcase}),-1); -REGISTER_FUNC - out.puts "#endif //__WXMSW__" if evt.windows_only? - end - - out.puts "}" - out.puts "}" -end </del></span></pre> </div> </div> </body> </html>