Displaying 20 results from an estimated 24 matches for "get_item".
Did you mean:
get_iter
2007 Aug 27
3
Problem with ListCtrl#get_item
Hello,
I have a problem with getting items from ListCtrl.
Although my ListCtrl is in LC_REPORT mode, it has columns set up,
every cell is set with set_item and everything displays fine, this
code:
x = myList.get_item(row,col).get_text()
always returns an empty string.
For example:
myList.set_item(0,0,"Hello")
x = myList.get_item(0,0).get_text()
now x equals "" !
I don''t know whether it is a bug in wxRuby or I''m doing something wrong.
I have tried:
x = myList.get_item...
2004 Jan 27
0
FW: Wx::ListCtrl#get_item method
For some reason, Mailman auto-discarded this message, so I am reposting it.
Curt
-----Original Message-----
From: Nick Kral [mailto:nkral@pinnaclet.com]
Sent: Tuesday, January 27, 2004 8:55 AM
To: Wxruby developers'' list
Subject: Re: [Wxruby-users] Wx::ListCtrl#get_item method
Same question - I have a small patch I need to send for the mac version.
Nick
Curt Hibbs wrote:
>I know you are going away soon, do you still want to do a 0.2 Release
before
>then? If so, you should probably label the CVS repository and I should do
>another windows build to in...
2008 Jun 02
0
[ wxruby-Bugs-20477 ] Wx::ListEvent#get_item crashes when navigating with the keypad
.../06/2008 10:34
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=20477&group_id=35
Category: Incorrect behavior
Group: current
Status: Open
Resolution: None
Priority: 3
Submitted By: Pascal Hurni (phi)
Assigned to: Nobody (None)
Summary: Wx::ListEvent#get_item crashes when navigating with the keypad
Initial Comment:
Having a ListCtrl with an ''item_selected'' event handler, and inside it calling get_item on the passed event object may crash.
To reproduce the bug:
If the first selection occurs with the keypad, no bug arise when navigatin...
2004 Jan 15
10
Wx::ListCtrl#get_item method
Hi guys!
I have a question (or a request?) on Wx::ListCtrl#get_item method.
As you can see in the wxWindows reference, wxListCtrl::GetItem method of
C++ is different from that of wxPython.
C++
return value: boolean
argument: wxListItem& info
wxPython
return value: wxListItem
arguments: int ID, int column (optional)
How about wxruby?
>From the wxr...
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...rgin:10px 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>[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>740</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2006-11-15 13:4...
2006 Nov 21
0
[747] trunk/wxruby2/Changelog: get_item stuff, evt_toolbar, also correct a commit from 0.0.37 that I missed
...id #ccc;margin:10px 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>[747] trunk/wxruby2/Changelog: get_item stuff, evt_toolbar, also correct a commit from 0.0.37 that I missed</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>747</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd&...
2004 Apr 26
7
TRW: getters and setters
Hi all,
I mentioned this on the forum but wasn''t sure if
anyone was paying attention. I was just wondering if
it would be possible to replace the
get_something/set_something style methods with the
more Rubyish something/something= style (i.e. uniform
access).
For example, the Button class currently has
button.get_label and button.set_label("foo"). It
would give me warm,
2007 Mar 17
5
Fix for crash at exit
Hi
This is a very small patch that seems to solve that "Exit the app and
get a segfault in return" problem.
Another thing: bigdemo.rb:395 does
item = event.get_item()
if item.is_ok
but get_item typemaps TreeItemId into a plain integer, so it doesn''t
have is_ok method anymore, is there
any wxruby2''yish solution to this kind of problem ?
A.K.
In case attachment gets scrubbed somewhere along the way:
Index: fixdeleting.rb
===========...
2006 Nov 13
0
[735] trunk/wxruby2: Got the ''get_item_sample'' sample working had to add some missing ListCtrl constants.
...margin:10px 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>[735] trunk/wxruby2: Got the ''get_item_sample'' sample working had to add some missing ListCtrl constants.</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>735</dd>
<dt>Author</dt> <dd>seanlong</dd>
<dt>Date</dt>...
2004 Jul 16
2
TreeCtrl#get_item_data
Hi
I saw from the ChangeLog that [get|set]_client_data was removed from
ComboBox for 0.4.0 because the methods weren''t working properly.
TreeCtrl#get_item_data still seems to be there. I was wondering if
someone who understood the issue could say if TreeItemData might also be
afflicted with the same problems?
I seem to be segfaulting quite a bit (actually, on TreeEvt#get_item),
but it disappears when I don''t use item_data. The methods are e...
2004 Jan 08
3
pictorG
...EFAULT_SIZE,LC_ICON|LC_AUTOARRANGE
assign_image_list(@imageList=ImageList.new(THM_WIDTH,THM_HEIGHT),IMAGE_LIST_NORMAL)
# evt_list_begin_drag(self.get_id) {|e| log_status "Oh, dragging"; dragsrc = DropSource.new(self); true }
evt_list_item_activated(self.get_id) {|e|
fn=e.get_item.get_text
MyImageFrame.new(self,fn,fn).show()
}
end
def thm_name filename
dir,fn=File.split filename
[dir+"/.thumb#{THM_WIDTH}x#{THM_HEIGHT}/",fn+''.jpg'']
end
def gen_thm filename
img = Image.new(filename)
w,h=img.get_width.to_f,img.get_...
2007 Jan 06
0
[835] trunk/wxruby2/doc/textile: Updated documentation about TreeItemId
...o test whether it refers to a valid
+item. If the id is equal to zero, then the id does not refer to a valid
+item. This is most useful when testing whether any item has been clicked
+as part of a "TreeEvent":treeevent.html handler; for example:
+
+ def on_tree_clicked(event)
+ if event.get_item.nonzero?
+ # .. an item was clicked, make it bold
+ set_item_bold(event.get_item)
+ else
+ # otherwise the click didn''t happen over an item
+ ...
+
+h3. Associating Ruby objects with TreeCtrl items
+
</ins><span class="cx"> TreeCtrls can be linked to n...
2007 Jan 05
0
[832] trunk/wxruby2/samples: Fix samples for TreeItemIds as integers, fix image size in treectrl sample
...01-05 23:22:38 UTC (rev 832)
</span><span class="lines">@@ -393,7 +393,7 @@
</span><span class="cx">
</span><span class="cx"> def on_tree_sel_changed(event)
</span><span class="cx"> item = event.get_item()
</span><del>- if item.is_ok
</del><ins>+ if item.nonzero?
</ins><span class="cx"> itemText = @tree.get_item_text(item)
</span><span class="cx"> run_demo(itemText)
</span><span class=&quo...
2008 Jun 06
3
GenericDirCtrl problem
I am having a problem getting any event to happen when I activate a
selection on GenericDirCtrl i.e. double click on it.
Could anyone help me out.
thanks in advance.
Joe
Attachments:
http://www.ruby-forum.com/attachment/2123/Random.rb
--
Posted via http://www.ruby-forum.com/.
2006 Nov 13
0
ListCtrl / ListItem
The attached patch builds upon Sean''s neat work adding the ListItem
constants.
Instead of passing a ListItem into ListCtrl#get_item, you now pass the
row and optionally the column you want info for, and get a ListItem
back. This was suggested by how wxPython works, according to the docs.
I hadn''t realised until now, but %extend does work correctly with
directors - so as Kevin suggested, may be a better option than...
2006 Mar 29
0
Intermittent error - undefined method ''destroy_without_callbacks''
...ial''
/vendor/rails/activerecord/lib/active_record/base.rb:952:in `find_one''
/vendor/rails/activerecord/lib/active_record/base.rb:941:in
`find_from_ids''
/vendor/rails/activerecord/lib/active_record/base.rb:382:in `find''
/lib/item_aids.rb:6:in `get_item''
/app/controllers/items_controller.rb:277:in `version''
/vendor/rails/actionpack/lib/action_controller/base.rb:908:in `send''
/vendor/rails/actionpack/lib/action_controller/base.rb:908:in
`perform_action_without_filters''
/vendor/rails/actionpac...
2006 Nov 30
0
[765] trunk/wxruby2: Fixed item_data functions for ListCtrl, plus test
...:GetItem(wxListItem& info) const;
</span><ins>+%ignore wxListCtrl::GetItemData;
+%ignore wxListCtrl::SetItemData;
</ins><span class="cx">
</span><span class="cx"> %extend wxListCtrl {
</span><span class="cx"> VALUE get_item(int row, int col = -1)
</span><span class="lines">@@ -36,10 +39,53 @@
</span><span class="cx">
</span><span class="cx">         return returnVal;
</span><span...
2008 Jan 21
0
Wx::GenericDirCtrl Segfault Crash
...ach the two event handlers for
evt_tree_item_expanding() and evt_tree_item_activated() when grabbing the
Wx::GenericDirCtrl#get_tree_ctrl(). All I have it doing, is attempting to
catch these events (Which I really don''t need evt_tree_item_expanding() at
this point and time), and print evt.get_item(). It never actually reaches
this point, as I will expand one folder, no problem (But the event doesn''t
fire), and if I start scrolling through the list, it''ll segfault. I ran GDB
on it, and came up with the backtrace log, showing that it''s crashing in the
middle of DoG...
2014 Jul 25
0
Wine release 1.7.23
...Removed superflous NULL check (Coverity).
dmime: Remove useless NULL check (Coverity).
Nikolay Sivov (5):
kernel32: Implement GEO_PARENT for GetGeoInfo().
kernel32: Properly implement EnumSystemGeoID().
kernel32/tests: Skip working tests properly.
wshom.ocx: Implement get_Item() for IWshEnvironment.
t2embed: Added TTDeleteEmbeddedFont() stub.
Piotr Caban (6):
usp10: Limit trace length in dump_types.
usp10: Limit trace length in iso_dump_types.
msi: Don't publish features with non positive install level.
msi: Fix feature actions overridi...
2020 Aug 14
0
Wine release 5.15
...ocedureCollection stub implementation.
msscript.ocx/tests: Add initial tests for Script Procedures.
msscript.ocx: Implement ScriptProcedureCollection::get_Count.
msscript.ocx: Uncache the module objects when adding new code.
msscript.ocx: Implement ScriptProcedureCollection::get_Item.
msscript.ocx: Cache the procedures obtained from the ScriptProcedureCollection.
msscript.ocx: Implement ScriptProcedure::get_Name.
msscript.ocx: Implement ScriptProcedure::get_NumArgs.
msscript.ocx: Implement ScriptProcedure::get_HasReturnValue.
Gijs Vermeulen (7):
a...