search for: get_client_data

Displaying 18 results from an estimated 18 matches for "get_client_data".

2006 Nov 03
3
revised get_client_data patch
Here''s a revised patch for fixing get_client_data. It tackles the serious problem with the previous patch (segfault on exit) and makes the key bit of code available for sharing with other ControlWithItems classes. So it''s a candidate for applying. If it works I''ll add to other relevant places, like ListCtrl and ComboBox. The...
2006 Nov 01
1
get_client_data
As a first stab at understanding swig''s mem mgmt features, I tried to fix get_client_data, using Wx::Choice as a testbed. The attached patch resolves the immediate crasher with this function (which was b/c the typemap for void* isn''t right for this method). It also uses the %markfunc feature to prevent objects that are set as client data from being GC''d. The mini-s...
2006 Nov 16
0
ControlsWithItems get_client_data
This patch rolls out the support for get_client_data to ComboBox and ListBox. It also moves a bit more stuff into shared code. One slightly interesting bit is a unit test to go with it. Gets round the slightly tricky problem that all GUI code needs to run within an App#on_init loop, but that entering that loop blocks and prevents a unit test run...
2006 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
...0px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>722</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-11-07 16:30:46 -0500 (Tue, 07 Nov 2006)</dd> <...
2006 Nov 23
0
[748] trunk/wxruby2/swig/classes: Fix an errant Ruby-ism in C++ code (Roy Sutton)
...span class="lines">@@ -33,7 +33,7 @@ </span><span class="cx"> %markfunc wxChoice "mark_wxControlWithItems"; </span><span class="cx"> </span><span class="cx"> %extend wxChoice { </span><del>- VALUE get_client_data(int n) { wxControlWithItems_get_client_data(self, n); } </del><ins>+ VALUE get_client_data(int n) { return wxControlWithItems_get_client_data(self, n); } </ins><span class="cx"> } </span><span class="cx"> // end client_data fixes </span&gt...
2006 Dec 01
0
[766] trunk/wxruby2: Added item_data aliases for client_data functions, update doc & tests;
...ntrolWithItems_clear </span><span class="cx"> * "ControlWithItems#delete":#ControlWithItems_delete </span><span class="cx"> * "ControlWithItems#find_string":#ControlWithItems_findstring </span><del>-* "ControlWithItems#get_client_data":#ControlWithItems_getclientdata -* "ControlWithItems#get_client_object":#ControlWithItems_getclientobject </del><span class="cx"> * "ControlWithItems#get_count":#ControlWithItems_getcount </span><ins>+* "ControlWithItems#get_item_data...
2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...ot;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) - { -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE returnVal = (VALUE) self->GetClientData(n); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( returnVal == NULL ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs...
2004 Jun 01
2
New wxRuby code is in CVS
...cked in some good fixes. You can see the (full) Changelog here: http://qualitycode.com/repos/wxruby/ChangeLog Notable items: - Added shanko''s grid sample (thanks!) - Added support for ComboBox#get_value - Fixed *all* the known crashing bugs. The way I "fixed" the problems with get_client_data was to remove the set_client_data and get_client_data implementations. I *think* they are really only necessary in a static language like C++. I was able to remove the few uses of them from our samples pretty easily. If you have an app that uses them, I can help you figure out a workaround. I p...
2006 Nov 12
1
TreeCtrl item_data
...similar to, but not the same as the way wxPython and wxPerl deal with this. I''m going to go back to the other ControlWithItems classes and add item_data support to them along the model of wxChoice. I think it is weird that methods that get data from an item in these classes are called get_CLIENT_data, and now the way they work will be consistent across TreeCtrl, Choice, ComboBox etc I plan to rename get_client_data to get_item_data. Again, shout if you think this is wrong. cheers alex -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: treec...
2004 Jan 07
3
Another Updated - wxRubyWindowsinstalleravailablefor
Robert McGovern wrote: > > Just to let you know Curt the new debug build works perfectly for me ... > well nearly. Thanks for the confirmation. > Trying to run the controls.rbw example generates an error dialog > > "Debug" > > "E:\dev\RubyDev\wx\src\common\ctrlsub.cpp(120): assert > "m_clientDataItemsType == wxClientData_Void" failed: this
2006 Nov 22
0
Patch to fix ControlWithItems problems
The latest head won''t compile for me. These patches fix get_client_data to return a value. Seems someone has been doing too much ruby lately. :) Roy -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ControlWithItems.patch Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20061121/a74a3d37/attachme...
2006 Nov 23
0
[754] trunk/wxruby2/samples/bigdemo: Rubified samples and added in missing client data sample code
...;/span><span class="cx"> </span><span class="cx"> def on_combobox(event) </span><del>- @log.write_text("evt_combobox: " + event.get_string()) </del><ins>+ cb = event.get_event_object + data = cb.get_client_data(event.get_selection) + @log.write_text("evt_combobox: #{event.get_string}\nClient Data: #{data}") </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def on_evt_text(event) <...
2004 May 22
10
Tabbing between Notebook pages
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: wxTony.rbw Type: application/octet-stream Size: 10436 bytes Desc: not available Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20040522/9c1889d0/wxTony.obj
2006 Nov 12
0
[728] trunk/wxruby2/Changelog: HTML classes, Window[ChangeDestroy]Event, sample fix, client_data
...(rev 728) </span><span class="lines">@@ -1,3 +1,8 @@ </span><ins>+- Fix crash in etc/sash.rb sample (Alex Fenton) +- Added HtmlWindow, HtmlCell, HtmlEasyPrinting &c (Alex Fenton) +- Added WindowCreateEvent and WindowDestroyEvent (Alex Fenton) +- Fix for Choice#get_client_data and set_client_data, inc mem mgmt (Alex Fenton) + </ins><span class="cx"> === 0.0.37 tag on 2006-10-24 included all of this: === </span><span class="cx"> - Fixed rake install task for non-gem build, added rake uninstall (Alex Fenton) </span><span...
2006 Nov 26
0
[759] trunk/wxruby2/Changelog: Roy & Alex''s recent fixes and additions
..."cx"> - Un-disabled evt_toolbar on Linux and OS X (Alex Fenton) </span><del>-- Fixed get_item_data and mem mgmt for TreeCtrl (Alex Fenton) </del><ins>+- Fixed TreeCtrl#get_item_data and mem mgmt (Alex Fenton) </ins><span class="cx"> - Added get_client_data support for all ControlWithItems + test case (Alex Fenton) </span><span class="cx"> - Ensure that all lib files are included in gem and tarball (Sean Long/Alex Fenton) </span><span class="cx"> - Fixed an error in bigdemo''s About dialog (Alex Fent...
2006 Nov 21
0
[747] trunk/wxruby2/Changelog: get_item stuff, evt_toolbar, also correct a commit from 0.0.37 that I missed
...0:19 UTC (rev 747) </span><span class="lines">@@ -1,3 +1,7 @@ </span><ins>+- Corrected some typemapped method signatures (Alex Fenton) +- Un-disabled evt_toolbar on Linux and OS X (Alex Fenton) +- Fixed get_item_data and mem mgmt for TreeCtrl (Alex Fenton) +- Added get_client_data support for all ControlWithItems + test case (Alex Fenton) </ins><span class="cx"> - Ensure that all lib files are included in gem and tarball (Sean Long/Alex Fenton) </span><span class="cx"> - Fixed an error in bigdemo''s About dialog (Alex Fento...
2004 Apr 20
4
wxRuby 0.3.0 has been released!
wxRuby 0.3.0 has been released and is now available for download from RubyForge at: http://wxruby.rubyforge.org/ This release includes binary builds for Max OS X Panther and MS Windows. Hopefully, within a couple weeks I will release RubyGems for the source, and RubyGem binaries for Mac, Windows, and Linux. Please report any bugs or feature requests here:
2006 Dec 03
0
[778] trunk/wxruby2: Remove broken and deprecated LayoutConstraints, update samples & docs
...pan class="cx"> </span><span class="cx"> Image_List, Image_Choice, Image_Combo, Image_Text, Image_Radio, Image_Gauge, Image_Max = (0..6).to_a </span><span class="cx"> </span><del>-def Myset_client_data(name,control) - # NOTE: get_client_data and set_client_data have been removed from wxRuby 0.4 - # because they could cause crashes - return - -# count = control.get_count() -# for n in 0 ... count -# s = sprintf("%s client data for ''%s''", -# name, control.get_string(n)) -...