search for: lastid

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

Did you mean: lasted
2007 Jun 23
0
[1063] trunk/wxruby2/swig/classes/EvtHandler.i: Add a public ''connect'' method for handling arbitary user-defined events
...ad, they are defined by Events.cpp, generated from +// swig/Event.i and modified by swig/fixevents.rb </ins><span class="cx"> </span><ins>+// This provides the public Ruby ''connect'' method +%extend wxEvtHandler { + VALUE connect(int firstId, int lastId, wxEventType eventType) + { + VALUE func = rb_funcall(rb_cProc, rb_intern("new"), 0); + rb_global_variable(&callbacks); + if(callbacks == Qnil) + callbacks = rb_ary_new(); + rb_ary_push(callbacks, func); + + wxObject* userData = new wxRbCallback(func); + wxOb...
2007 Jun 23
0
[1064] trunk/wxruby2/swig/Events.i: Removed unused func, updated comments
...connect'' +// Internal method that links a ruby Proc (the block passed to evt_xxx) +// to the WxWidgets C++ event handler method. </ins><span class="cx"> extern swig_class cWxEvtHandler; </span><ins>+extern void internal_connect(VALUE self, int firstId, int lastId, +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs...
2006 Mar 21
16
Javascript Code inside an Ajax response
Hi, i wish to run a function that came inside my Ajax response. I read that i have to use the evalScripts to make this, but still i couldn''t make it work. The error said that my function isn''t declared. I look at the Sergio Pereira tutorial about use the var xxx = function() but still doesn''t work. Someone could help me? In the response this is the code: for (var i =
2016 Apr 19
2
Creating two new variables conditional on retaining values from previous rows
Hello, Iam looking for an R solution that can efficiently produce the output shown below. I can produce this easily in SAS with retain statement and a few lines of if-then-else logic, etc.. but I am not find anything similar on the Rforum archives. Below is the logic I am trying to apply to produce the output table below. Thanks in any help! if the ID is the first ID encountered then group=1 and
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
...783 +541,6 @@ </span><span class="cx"> %} </span><span class="cx"> </span><span class="cx"> </span><del>-#if 0 -%{ - static VALUE callbacks = Qnil; -%} - -%{ -static void internal_connect(VALUE self, int firstId, int lastId, - wxEventType eventType) -{ - - wxEvtHandler *cppSelf = (wxEvtHandler *) 0 ; - SWIG_ConvertPtr(self, (void **) &cppSelf, SWIGTYPE_p_wxEvtHandler, 1); - - VALUE func = rb_funcall(rb_cProc, rb_intern("new"), 0); - rb_global_variable(&callbacks); - if(...
2007 Apr 13
2
who can give me an EvtHandler#connect example?
I read the api document online: http://wxruby.rubyforge.org/doc/evthandler.html but still don''t know how to use it. EvtHandler#connect connect(Integer id, Integer lastId, EventType eventType, ObjectEventFunction function, Object userData = nil, EvtHandler eventSink = nil) the online doc''s example is write in C++: frame->Connect( ID_EXIT, EVT_COMMAND_MENU_SELECTED, CommandEventHandler(MyFrame::OnQuit) ); is it like this?:...
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...class="cx"> cEvent = cWxSashEvent.klass; </span><span class="cx"> #ifdef WXSCINTILLA </span><span class="lines">@@ -411,7 +429,6 @@ </span><span class="cx"> void internal_connect(VALUE self, int firstId, int lastId, </span><span class="cx"> wxEventType eventType) </span><span class="cx"> { </span><del>- </del><span class="cx"> wxEvtHandler *cppSelf = (wxEvtHandler *) 0 ; </span><span class="cx&...
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...lt;span class="cx"> </span><del>- </del><ins>+// Internal method that links a ruby Proc (the block passed to evt_xxx) +// to the WxWidgets C++ event handler method. </ins><span class="cx"> void internal_connect(VALUE self, int firstId, int lastId, </span><span class="cx"> wxEventType eventType) </span><span class="cx"> { </span></span></pre></div> <a id="trunkwxruby2swigfixeventsrb"></a> <div class="modfile"><h4>M...
2007 Jun 25
0
[1066] trunk/wxruby2/swig: Move EVT constants in swig/classes/Event.i; add a few missing ones
...e evt_xxx -// methods could now be implemented in ruby via ''connect'' -// Internal method that links a ruby Proc (the block passed to evt_xxx) -// to the WxWidgets C++ event handler method. -extern swig_class cWxEvtHandler; -extern void internal_connect(VALUE self, int firstId, int lastId, -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs...
2012 Oct 29
4
replace repeated id in a pedigree list
Hello, I have a pedigree file such this: FAMID ID FA ID MO ID SEX STATUS 1 1 0 0 2 0 1 2 3 1 2 2 1 4 3 1 1 2 1 5 3 1 1 0 1 6 3 1 1 0 1 7 3 1 2 2 1 8 3 1 1 0 1 9 3 1 1 0 1 10 3 1 2 0 1 11 3 1 1 0 1 3 0 0 1 0 2 12 13