Displaying 20 results from an estimated 1000 matches similar to: "what''s a ListCtrlCompare ?"
2007 Oct 24
3
API doc update coming?
I''ve upgraded from 1.9.0 to 1.9.2 and am finding that
the errors I''m getting don''t match the docs. For example,
in Wx::ListCtrl:
- The doc makes no mention of on_get_item_column_image(),
but without this method I get NoMethodError.
- The doc says on_get_item_attr() *may* be overloaded,
but if I don''t define it, I get NoMethodError.
The API doc appears to
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
2009 Oct 24
6
Working with ListCtrl and ListItem
Hi List,
I''m trying to get my ListCtrl to work. Currently I''ve managed to fill
my ListCtrl with items, but I think it''s not the most beautiful way:
class MyList < Wx::ListCtrl
def initialize(parent, *args)
super(parent, :style => Wx::LC_REPORT|LC_HRULES )
create_layout
fill_list
end
def create_layout
self.insert_column(0, "Name")
2004 Apr 21
2
Resizing a ListCtrl
Hi Guys,
I''m having serious troubles resizing a dialog with a ListCtrl. The ctrl
will not resize horizontally no matter what I''m doing. I''ve attached a
sample code below. Any help will be greatly appreciated, as I really
like wxRuby :)
I''ve also tried to copy from the example from listtest.rbw, but that
also doesn''t seem to work.
Another thing
2008 Oct 17
3
ListCtrl loading data
Hi all,
I''m using a ListCtrl on LC_REPORT mode.
using set_item(index, col, ''value'') the list does''t get populated.
Is it a bug? which is the method to call?
i''m using ruby 1.8.6 wxruby 1.9.8 mswin32 on winXP
attached is an example.
thank you.
bio.
_______________________________________________
wxruby-users mailing list
2007 Apr 14
1
how to simulate key_down event(when event.get_key_code()==Wx::K_DOWN) in ListCtrl or TreeCtrl?
I want to simulate vi(vim) like operations in ListCtrl or TreeCtrl,
that is, for example, when user pressed a ''j'' on keyboard,the selected
item change into the next one item, just like user press a
Wx::K_DOWN(arrow key down on keyboard) .
but not jump to some item started with a "J" charater.
evt_tree_key_down(TreeTest_Ctrl) { | e | on_tree_key_down(e) }
...
def
2006 Nov 12
1
TreeCtrl item_data
The attached fixes set_item_data, get_item_data and some other methods
for the TreeCtrl so they work nicely with Ruby objects and GC.
In C++ Wx TreeCtrl item_data works differently from client_data in
classes derived from ControlWithItems (eg Choice, ListCtrl). A
one-to-one mapping of the way TreeCtrl works would mean that you would
have to derive a class from TreeItemData, and instantiate
2008 Apr 28
1
LC_REPORT ListCtrl Confusion
Hi,
I''m having some trouble allowing the user to edit a multi-column
listctrl. I can do the first column fine, simply by calling
ListCtrl::edit_label in the activate event, but it seems impossible to
do this for the other columns for two reasons. 1, the activate event
doesn''t allow you to get the column, and 2, edit_label onl;y works for
the first column.
Thanks,
Lucas
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2007 Jun 19
5
Wx::ToolBar#insert_tool
Hey guys,
Wx::ToolBar#insert_tool, is either not referenced right, or needs to be
updated.
1.) Wx::ToolBar#insert_tool(size_t
pos, ToolBarToolBase tool) comes up with a No overloading function
type error, AKA 404 Not Found
2.) Wx::ToolBar#insert_tool(size_t pos, Integer toolId, Bitmap bitmap1,
Bitmap bitmap2 = NullBitmap, Boolean isToggle = false, Object clientData =
nil, String shortHelpString
2007 Dec 30
1
ReOrdering Wx::TreeCtrl Items
Given the following hash:
#...
@project_list = {
''Contract0'' => nil,
''Contract1'' => {
''Project1'' => nil,
''Project2'' => nil,
''Project3'' => {
''task1'' =>
2007 Oct 18
6
Bug in minimal.rb
Hi!
I discovered WxRuby2 and WxSugar a short while ago (1.9.1) and I really
like its professional look and the platform independance. But
especially the simplification and ''rubyfication'' that you already
achieved and are planning for 1.9.2 (event handlers) is funstuff!
Thanks a lot!
And with Ruby 1.9/2 the keyword constructors will be even nicer with
the new hash syntax:
2009 Sep 05
5
Filling Wx::ListCtrl with contents
Hi all,
I''ve got a question concerning ListCtrl_virtual of wxRuby since I see no
way filling the list with dynamic contents. I''m new to Ruby so I maybe
have to apologise for my request.
The problem is, that I have to define the on_get_item_text(item, col)
function. There I would like to use the item and col variables to read
data from a two-dimensional array. My very problem
2007 Nov 13
3
New wxTree method
Here''s my first try at a contribution to the wxRuby project:
The tree control seemed to lack a more Ruby-ish way to add a bulk of
items to a tree control (and to easily connect a data structure to a
tree). Since tree view can be seen as an array of arrays, I simply added
a method called append_array (see attached file). With it, you can add a
full tree as simple as:
---
root =
2006 Nov 29
0
[ wxruby-Bugs-6972 ] Wx::ListCtrl will crash if item added before insert_column called
Bugs item #6972, was opened at 2006-11-29 23:47
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=6972&group_id=35
Category: Incorrect behavior
Group: None
Status: Open
Resolution: None
Priority: 2
Submitted By: Alex Fenton (brokentoy)
Assigned to: Kevin Smith (qualitycode)
Summary: Wx::ListCtrl will crash if item added before insert_column called
2006 Nov 29
0
[763] trunk/wxruby2/doc/textile/listctrl.txtl: Warn about a potential mistake using the API that may cause a crash
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2007 Sep 03
1
API survey results & update
Thanks to everyone who voted in the API style survey. We had 10 votes
altogether - we''re not electing the prime minister, after all - but it
was decisively a yes. 90% (9/10) supported adding keyword constructors,
and 77% (7/9) ruby-style accessors. The changes are summarised at the
bottom of the email.
We hope to have a 1.9.1 release incorporating these in the next week or
two.
2004 Feb 08
5
wxruby 0.2 for osx panther release
A first draft of the wxruby binary release for the macintosh is now
available at:
http://www.nicreations.net/wxruby-0.2-osx-panther.dmg
Install the metapackage (mpkg). You will need to choose a folder for the
sample apps. wxruby.bundle is installed in
/usr/lib/ruby/1.6/powerpc-darwin7.0
A few questions:
1) Should I just leave the samples in a folder instead of making the
user
2004 Aug 26
18
wxRuby 0.5.0 has been released!
wxRuby 0.5.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 and
MS Windows.
Please report any bugs or feature 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
2007 Oct 13
3
Newbie can''t get sample/etc/wizard.rb to work
Hello,
I''ve downloaded wxruby onto windows (ruby 1.8.6 (2007-03-13 patchlevel 0)
[i386-mswin32]).
All samples are working fine, except for wizard.rb, which gets:
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.1-i386-mswin32/lib/wx/keyword_ctors.rb:201:in
`initialize'': Error initializing #<Wx::Wizard:0x2f3fed8> (ArgumentError)
Sent parameters: