search for: set_client_data

Displaying 13 results from an estimated 13 matches for "set_client_data".

Did you mean: get_client_data
2006 Dec 01
0
[766] trunk/wxruby2: Added item_data aliases for client_data functions, update doc & tests;
...hich also happens when it is -destroyed). Finally note that in the same control all items must have client -data of the same type (typed or untyped), if any. This type is determined by -the first call to "Append":controlwithitemsappend.html (the version with -client data pointer) or "set_client_data":#ControlWithItems_setclientdata. </del><ins>+optionally, item data associated with them. Any ruby object may be set +as item data for an item with a control, allowing linking of core ruby +program objects with GUI code. </ins><span class="cx"> </span>&...
2004 Apr 20
4
wxRuby 0.3.0 has been released!
...orge.org/tracker/?group_id=35 Changes in this release include: * Added MDI support, and an MDI sample * Fixed MAJOR problems with Validators. * Cleaned up many method names and parameters. * Many bug fixes. * Added a note to controls/controls.rb sample explaining that the current get/set_client_data can segfault See the ChangeLog for a detailed list of changes. -------------- What is wxRuby? wxRuby is an open source GUI toolkit for the [Ruby] programming language. It provides a Ruby interface to the cross-platform wxWidgets C++ GUI framework (formerly known as wxWindows). wxRuby is int...
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 23
0
[754] trunk/wxruby2/samples/bigdemo: Rubified samples and added in missing client data sample code
...{|event| on_evt_listbox(event)} + evt_listbox_dclick(@lb1.get_id) {|event| on_evt_listbox_dclick(event)} </ins><span class="cx"> @lb1.set_selection(3) </span><del>- @lb1.append("with data")#, "This one has data") - # set_client_data() not supported in wxRuby 0.4 - # @lb1.set_client_data(2, "This one has data") </del><ins>+ @lb1.append("with data", "This one has data") + @lb1.set_client_data(2, "This one has data") </ins><span class="cx"...
2007 Jul 27
0
[ wxruby-Bugs-12610 ] Possible crash with EvtHandler.add_pending_evemt and custom event class
...Incorrect behavior Group: None Status: Open Resolution: None Priority: 2 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Possible crash with EvtHandler.add_pending_evemt and custom event class Initial Comment: If a custom event sets associated client_data using set_client_data, and then the event is queued using EvtHandler#add_pending_event the client_data may be prematurely deleted if GC runs before the event is actually processed. Temporary workaround is to send the event for immediate processing via process_event. ----------------------------------------------------...
2004 Jun 01
2
New wxRuby code is in CVS
...e 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 plan to support them in the upcomin...
2006 Nov 12
0
[728] trunk/wxruby2/Changelog: HTML classes, Window[ChangeDestroy]Event, sample fix, client_data
...><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 class="cx&quot...
2006 Dec 03
0
[778] trunk/wxruby2: Remove broken and deprecated LayoutConstraints, update samples & docs
...t;>@@ -90,24 +90,7 @@ </span><span 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''", -#...
2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...rgs) + super(nil, -1, ''Test '' + ctrl_class.name) + self.control = ctrl_class.new(self, -1, *args) + end +end + +class TestItemData < Test::Unit::TestCase + def assert_retrievable_data(ctrl, n, test_value) + compare = Marshal.load( Marshal.dump(test_value) ) + ctrl.set_client_data(n, test_value) + assert_equal(compare, ctrl.get_client_data(n) ) + GC.start + assert_equal(compare, ctrl.get_client_data(n) ) + end + + def do_control_with_items_assertions(f) + assert_retrievable_data(f.control, 0, { ''b'' => ''B'' }) + assert_re...
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
2007 Apr 14
0
[965] branches/wxruby2/wxwidgets_282/doc/textile: Misc.
...quot;> data, though it may be unwise to use volatile objects such as sockets or </span><span class="cx"> files as item data. </span><span class="cx"> </span><del>-Note that in WxWidgets C++, this method is called SetClientData; -therefore *set_client_data* is an alias in WxRuby for this method. THe </del><ins>+*Note* that in WxWidgets C++, this method is called SetClientData; +therefore *set_client_data* is an alias in WxRuby for this method. The </ins><span class="cx"> name *set_item_data* is preferred for clarity...
2004 Sep 10
0
http streaming in the xmms plugin
...data_respond) (void *decoder, FLAC__MetadataType type); + FLAC__bool (*set_write_callback) (void *decoder, WriteCallback value); + FLAC__bool (*set_metadata_callback) (void *decoder, MetadataCallback value); + FLAC__bool (*set_error_callback) (void *decoder, ErrorCallback value); + FLAC__bool (*set_client_data) (void *decoder, void *value); + FLAC__bool (*decoder_init) (void *decoder); + void (*safe_decoder_finish) (void *decoder); + void (*safe_decoder_delete) (void *decoder); + FLAC__bool (*process_until_end_of_metadata) (void *decoder); + FLAC__bool (*process_single) (void *decoder); + FLAC__boo...
2004 Aug 26
18
wxRuby 0.5.0 has been released!
...requests here: http://rubyforge.org/tracker/?group_id=35 Changes in this release include: * Added XRC (Xml Resource File) support. * Added totally awesome HTML widget from Tobi Gruetzmacher. * Fix crash in ListCtrl#on_get_item_xxx * Fix crash in TreeCtrl#on_compare_items * Remove all get/set_client_data and get_event_object methods (they were broken anyway) * Patched problem with MSVC.NET that caused build problems -------------- What is wxRuby? wxRuby is an open source GUI toolkit for the Ruby programming language. It provides a Ruby interface to the cross-platform wxWidgets C++ GUI fr...