search for: wxcontrolwithitems

Displaying 16 results from an estimated 16 matches for "wxcontrolwithitems".

2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...(); - if ( menu_bar ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ GC_mark_MenuBarBelongingToFrame(menu_bar); } -} - -// Prevents Ruby''s GC sweeping up items that are stored as client data -// Checks whether the C++ object is still around first... -void mark_wxControlWithItems(void* ptr) { - if ( GC_IsWindowDeleted(ptr) ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn; - - wxControlWithItems* wx_cwi = (wxControlWithItems*) ptr; - int count = wx_cwi->GetCount(); - if ( count == 0 ) -&nbsp&nbsp&nbsp&nbsp&nbsp&...
2007 Jul 22
0
[1141] trunk/wxruby2/swig/mark_free_impl.i: ControlWithItems call default Window mark routine to preserve ToolTips etc
...C_IsWindowDeleted(ptr) ) </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn; </span><span class="cx"> </span><ins>+ GC_mark_wxWindow(ptr); + </ins><span class="cx"> wxControlWithItems* wx_cwi = (wxControlWithItems*) ptr; </span><span class="cx"> int count = wx_cwi->GetCount(); </span><span class="cx"> if ( count == 0 ) </span></span></pre> </div> </div> </body> </html>
2007 Jul 20
0
[1125] trunk/wxruby2/swig/shared/control_with_items.i: Avoid MSW crashes when unexpected object is returned by SWIG tracking
...t;span class="lines">@@ -10,6 +10,8 @@ </span><span class="cx"> %ignore *::SetClientObject(int n, wxClientData * data); </span><span class="cx"> </span><span class="cx"> %{ </span><ins>+ extern swig_class cWxControlWithItems; + </ins><span class="cx"> // Returns a ruby object stored as client data </span><span class="cx"> static VALUE wxControlWithItems_get_client_data(wxControlWithItems *ptr, int n) { </span><span class="cx"> &nbsp&nbsp&...
2007 Jul 21
0
[1133] trunk/wxruby2/swig/shared/control_with_items.i: Move mark func for ControlWithItems into shared file so changes affect
...;nbsp&nbsp&nbsp&nbsp2007-07-21 15:50:04 UTC (rev 1133) </span><span class="lines">@@ -11,6 +11,7 @@ </span><span class="cx"> </span><span class="cx"> %{ </span><span class="cx"> extern swig_class cWxControlWithItems; </span><ins>+ extern void mark_wxControlWithItems(void* ptr); </ins><span class="cx"> </span><span class="cx"> // Returns a ruby object stored as client data </span><span class="cx"> static VALUE wxControlWithItems...
2007 Jul 21
0
[1134] trunk/wxruby2/swig/mark_free_impl.i: When window is deleted, unhook ruby obj from DATA_PTR to avoid MSW crashes
...&nbsp&nbsp&nbsp{ GC_mark_MenuBarBelongingToFrame(menu_bar); } </span><span class="cx"> } </span><ins>+ +// Prevents Ruby''s GC sweeping up items that are stored as client data +// Checks whether the C++ object is still around first... +void mark_wxControlWithItems(void* ptr) { + if ( GC_IsWindowDeleted(ptr) ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn; + + wxControlWithItems* wx_cwi = (wxControlWithItems*) ptr; + int count = wx_cwi->GetCount(); + if ( count == 0 ) +&nbsp&nbsp&nbsp&nbsp&nbsp&...
2007 Feb 09
20
Hello Everyone
I have a bit of a problem with installation. I installed wxX11 in my linux box. I compiled the demos and all the demos, save dbbrowse, work. I think I have a functional wx. Now I''m trying to install wxRuby from source, since I have a 64 bit machine. I only have permission to my home directory so my installation is : /usr/people/stevenq/Applications/wxX11/
2010 Mar 16
0
[ wxruby-Bugs-27976 ] Wx::ControlWithItems.select behavior is diferent than the documentation
...slightly more natural for controls >which support multiple selection. Code: > c = Wx::Choice.new self, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, (''1''..''5'').to_a > c.select 2 Output: > in `select'': Swig director pure virtual method called wxControlWithItems::Select (RuntimeError) VS. Code: > c = Wx::Choice.new self, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, (''1''..''5'').to_a > c.set_selection 2 Output: value is set with no errors - Sean ---------------------------------------------------------------------...
2007 Mar 15
0
[ wxruby-Patches-9297 ] Patch to compile wxruby 0.0.39 on windows (vc2003, swig 1.3.31, wxwidgets 2.8.0)
...y accumulated :) Main parts of this patch rakemswin.rb : updated to WxWidgets 2.8 and using File.join for file paths. Also building in debug mode creates a more verbose pdb file (''-Zi'') option events.rb : removed 2 messages that were not supported in Wx2.8 WxChoice.h/wxCombo.h/wxControlWithItems.h/wxFontData.h/wxHtmlCell.h/ App.i/wxControl.h/wxDC.h/wxDirDialog.h/wxDialog.h/Dialog.i/ wxFileDialog.h/wxHtmlContainerCell.h/wxWindow.h/Functions.i/RubyEventTypes.i : removed missing methods, added some new ones,fixed prototypes to conform with Wx2.8 fixdeleting.rb : added processing of specific...
2007 Jul 04
0
[1100] trunk/wxruby2/swig/classes/include/parents.rb: Add parent mapping for recently added ChildFocusEvent
...="cx"> ''wxCheckListBox'' => ''wxListBox'', </span><ins>+ ''wxChildFocusEvent'' => ''wxCommandEvent'', </ins><span class="cx"> ''wxChoice'' => ''wxControlWithItems'', </span><span class="cx"> ''wxChoicebook'' => ''wxControl'', </span><span class="cx"> ''wxChoicebookEvent'' => ''wxNotifyEvent'',&nbsp&nbsp&nbsp&nbsp&a...
2007 May 21
0
[1026] trunk/wxruby2/swig/shared/control_with_items.i: Memory mgmt: USe __wx_destroyed__ instead of __swig_dead__; fix some
...nbsp&nbsp&nbsp&nbsp&nbsp2007-05-21 18:40:49 UTC (rev 1026) </span><span class="lines">@@ -13,7 +13,7 @@ </span><span class="cx"> // Returns a ruby object stored as client data </span><span class="cx"> static VALUE wxControlWithItems_get_client_data(wxControlWithItems *ptr, int n) { </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE returnVal = (VALUE) ptr->GetClientData(n); </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbs...
2007 Mar 17
0
[889] branches/wxruby2/wxwidgets_282/swig/shared/control_with_items.i: Ensure SWIG doesn''t generate wrappers for client data methods (Artur Kuptel)
.../del><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspfflush(stdout); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxControlWithItems* wx_cwi = (wxControlWithItems*) ptr; </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspint count = wx_cwi->GetCount(); </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb...
2006 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
...t wxString& name = wxChoiceNameStr); </span><del>- </del><span class="cx"> </span><span class="cx"> </span><ins>+// start client_data fixes +%include "../shared/control_with_items.i" +%markfunc wxChoice "mark_wxControlWithItems"; + +%ignore wxChoice::GetClientData(int n) const; +%ignore wxChoice::GetClientObject(int n) const; +%extend wxChoice { + VALUE get_client_data(int n) + { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE returnVal = (VALUE) self->GetClientData(n); +&nbsp&...
2007 Mar 17
0
[883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
...sses/include/wxComboBox.h</a></li> <li><a href="#brancheswxruby2wxwidgets_282swigclassesincludewxControlh">branches/wxruby2/wxwidgets_282/swig/classes/include/wxControl.h</a></li> <li><a href="#brancheswxruby2wxwidgets_282swigclassesincludewxControlWithItemsh">branches/wxruby2/wxwidgets_282/swig/classes/include/wxControlWithItems.h</a></li> <li><a href="#brancheswxruby2wxwidgets_282swigclassesincludewxDCh">branches/wxruby2/wxwidgets_282/swig/classes/include/wxDC.h</a></li> <li><a href=&quot...
2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...lass="cx"> </span><del>- </del><span class="cx"> // start client_data fixes </span><span class="cx"> %include "../shared/control_with_items.i" </span><span class="cx"> %markfunc wxChoice "mark_wxControlWithItems"; </span><span class="cx"> </span><del>-%ignore wxChoice::GetClientData(int n) const; -%ignore wxChoice::GetClientObject(int n) const; </del><span class="cx"> %extend wxChoice { </span><del>- VALUE get_client_data(int n) -...
2006 Dec 01
0
[766] trunk/wxruby2: Added item_data aliases for client_data functions, update doc & tests;
...0 01:21:25 UTC (rev 765) +++ trunk/wxruby2/doc/textile/controlwithitems.txtl&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-12-01 17:40:06 UTC (rev 766) </span><span class="lines">@@ -1,26 +1,18 @@ </span><span class="cx"> h1(#wxcontrolwithitems). Wx::ControlWithItems </span><span class="cx"> </span><del>-This class is an abstract base class for some Widgets controls which contain -several items, such as "ListBox":listbox.html and -"CheckListBox":checklistbox.html derived from it, -&...
2005 Aug 21
15
New inheritance
...C.i The caret example won''t work at all because initialize isn''t declared any longer. If you comment out the import lines, Swig does create an initialize. For ClientDC this fixes things so you can at least allocate one. Second case: Choice.i This is missing an %import for wxControlWithItems. However, if you add this, the constructor goes away. It''s too hot in my house with the air conditioner out for me to attempt to puzzle this out later. If cooler heads haven''t figured this out later I may revisit it. Roy