search for: wxlistitem

Displaying 8 results from an estimated 8 matches for "wxlistitem".

Did you mean: listitem
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 Apr 23
1
Fixes for ListControl
...rtual demo. Note I changed the loading of the icon to the loading of a bitmap. I remember discussing this before. For some reason the .xpm loader isn''t initialized properly for Wx::Icon. However, the function will take a bitmap just fine so this works. This also adds directors for wxListItem and wxListEvent Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
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
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''m not sure of that due to lack of my C++ skills. Anyway, I think wxPython-like method is better for wxruby....
2007 Jan 14
0
[848] trunk/wxruby2/swig/classes/include/wxListCtrl.h: Added missing RefreshItem and RefreshItems methods
...hItems(long itemFrom, long itemTo); </ins><span class="cx"> bool ScrollList(int dx , int dy ) ; </span><span class="cx"> void SetBackgroundColour(const wxColour& col ) ; </span><span class="cx"> bool SetColumn(int col , wxListItem& item ) ; </span></span></pre> </div> </div> </body> </html>
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...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) + { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE returnVal = Qnil; +&nbsp&nbsp&nbsp&nbsp&nbs...
2006 Nov 30
0
[765] trunk/wxruby2: Fixed item_data functions for ListCtrl, plus test
...ot;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 wxListCtrl::SetItemData; </ins><span class="cx"> </span><span class="cx"> %extend wxListCtrl { </span><span class="cx"> VALUE get_item(int row, i...
2006 Nov 13
0
[735] trunk/wxruby2: Got the ''get_item_sample'' sample working had to add some missing ListCtrl constants.
...-1487,6 +1488,92 @@ </span><span class="cx"> // for compatibility only </span><span class="cx"> #define wxLC_USER_TEXT wxLC_VIRTUAL </span><span class="cx"> </span><ins>+// Mask flags to tell app/GUI what fields of wxListItem are valid +#define wxLIST_MASK_STATE 0x0001 +#define wxLIST_MASK_TEXT 0x0002 +#define wxLIST_MASK_IMAGE 0x0004 +#define wxLIST_MASK_DATA 0x0008 +#define wxLIST_SET_ITEM 0x0010 +#define wxLIST_MASK_WIDTH 0x0020 +#define wxLIST_MASK_FORM...