search for: wxlistctrl

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

Did you mean: listctrl
2004 Oct 19
1
Loading wxListCtrl subclass from XRC file
I''m trying to use the wxLC_VIRTUAL style of the wxListCtrl, which seems to require that I subclass the control (as opposed to being able to provide a data model a la Swing or Cocoa), and I''m running into trouble when loading the control from an XRC file. Apparently I need to specify the name of my subclass in the XRC as follows: <obj...
2007 Jan 14
0
[848] trunk/wxruby2/swig/classes/include/wxListCtrl.h: Added missing RefreshItem and RefreshItems methods
...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>[848] trunk/wxruby2/swig/classes/include/wxListCtrl.h: Added missing RefreshItem and RefreshItems methods</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>848</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-01-14...
2006 Aug 24
1
Patch to wxListCtrl.h
This removes a duplicately defined function. _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Mar 28
3
ListItem patches
Hi Attached, patches to implement ListItem. This class, in wxruby 0.6.0, allows styling of individual items in a ListCtrl, via a particularly clunky API. In disambiguating the overloaded ListCtrl#set_item method it introduces one non backwards-compatible change. I''ve followed the WxPython convention as described in the Wx class ref, renaming set_item(index, col, string, imageid) to
2006 Nov 30
0
[765] trunk/wxruby2: Fixed item_data functions for ListCtrl, plus test
...ListCtrl.i&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-11-30 01:21:25 UTC (rev 765) </span><span class="lines">@@ -19,7 +19,10 @@ </span><span class="cx"> # deprecated: </span><span class="cx"> %ignore wxListCtrl::GetItemSpacing(bool isSmall) const; </span><span class="cx"> </span><ins>+// dealt with below </ins><span class="cx"> %ignore wxListCtrl::GetItem(wxListItem& info) const; </span><ins>+%ignore wxListCtrl::GetItemData; +%ignore...
2004 Nov 13
2
wxRuby and XRC via wxGlade
...<label>Foo</label> <object class="sizeritem"> <option>1</option> <flag>wxEXPAND</flag> <object class="wxListCtrl" name="list_ctrl_1"> <style>wxLC_REPORT|wxSUNKEN_BORDER</style> </object> </object> </object> </object>...
2007 Sep 04
4
listctrl set_item_data
Hi, I have used set_item_data with ruby objects (an array) and got a crash. The reason is simple, the objects were deallocated by the GC. The easy solution would be to accept only long parameters (like the original interface). The hard is to play by the GC''s rules and increase the reference count and decrease on deletion. Regards, teki
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...istCtrl.i&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-11-15 18:41:10 UTC (rev 740) </span><span class="lines">@@ -19,16 +19,30 @@ </span><span class="cx"> # deprecated: </span><span class="cx"> %ignore wxListCtrl::GetItemSpacing(bool isSmall) const; </span><span class="cx"> </span><ins>+%ignore wxListCtrl::GetItem(wxListItem& info) const; </ins><span class="cx"> </span><ins>+%extend wxListCtrl { + VALUE get_item(int row, int col = -1...
2006 Oct 17
0
[677] trunk/wxruby2/doc/textile/index.txtl: Removed line from printing framework section stating that printing is not in wxRuby.
...s="cx"> |ListBox|A list of strings for single or multiple selection| </span><span class="cx"> |ListCtrl|A control for displaying lists of strings and/or icons, plus a multicolumn report view| </span><del>-|ListView|A simpler interface (fa\xB9\xC2de for wxListCtrl in report mode| </del><ins>+|ListView|A simpler interface (fa¹Âde for wxListCtrl in report mode| </ins><span class="cx"> |TextCtrl|Single or multiline text editing control| </span><span class="cx"> |TreeCtrl|Tree (hierarchy) control| </span...
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")
2003 Nov 07
6
DnD
Hi! Is drag''n''drop works currently under wxruby? I want an app, where you can drag files from a wxlistctrl to a wxtreectrl. Can anyone show a little example? Gergo -- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +--...
2007 Jan 06
0
[836] trunk/wxsugar/lib/wx_sugar: Make :validator and :name sugary ctor args work for Controls classes
...;<span class="cx"> wx_ctor_params :style </span><ins>+ wx_ctor_params :validator, :name => ''listBox'' </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> # wxListCtrl &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspA control for displaying lists of strings and/or icons, plus a multicolumn report view </span><span class="cx"> WxSugar.define_keyword_ctors(''ListCtrl'') do </span><span class=&qu...
2004 Oct 06
11
find_window_by_xxx doesn''t find Gauge or BitmapButton
I''m fairly new to the Ruby world, particularly WxRuby, so please forgive me if this is ground that''s been covered in the past. I''m trying to load a frame from an XRC file (created using DialogBlocks), and I''m having trouble getting an instance of the Gauge object using the Wx::Window.find_window_by_xxx methods. I''m trying this on Windows XP,
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
2007 Jan 23
0
[851] trunk/wxruby2/swig/classes/ListCtrl.i: Don''t try and mark item data for virtual ListCtrls, b/c it can crash
...@@ </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp return; </span><span class="cx"> </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxListCtrl* wx_lc = (wxListCtrl*) ptr; </span><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( wx_lc->GetWindowStyle() & wxLC_VIRTUAL ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp return; + </ins><span class="cx&...
2005 Sep 11
6
Patch to wxNotebook.rbw
Patch to the notebook example to remove the call to the deprecated NotebookSizer. It appears to work just fine without the sizer. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
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 wxruby source code, wxruby looks similar to C++. However I'...
2007 May 05
0
[1012] trunk/wxruby2/doc/textile: Added docs for AUI Advanced User Interface classes
...howing HTML content| +|StaticBox|A static, or group box for visually grouping related controls| +|ListBox|A list of strings for single or multiple selection| +|ListCtrl|A control for displaying lists of strings and/or icons, plus a multicolumn report view| +|ListView|A simpler interface (fa¹Âde for wxListCtrl in report mode| +|TextCtrl|Single or multiline text editing control| +|TreeCtrl|Tree (hierarchy) control| +|ScrollBar|Scrollbar control| +|SpinButton|A spin or ''up-down'' control| +|SpinCtrl|A spin control - i.e. spin button and text control| +|StaticText|One or more lines of non-e...