Displaying 3 results from an estimated 3 matches for "list_format_left".
2004 Apr 21
2
Resizing a ListCtrl
...destroy()
end ## }}}
def onSize(event=nil)
frame_size = event.get_size
x = frame_size.x - 10
y = frame_size.y - 10
@fileList.set_size_xy(x, y)
event.skip() if event
end
def fillListCtrl #{{{
@fileList.clear_all
@fileList.insert_column(0, "Col 1", LIST_FORMAT_LEFT)
@fileList.insert_column(1, "col 2", LIST_FORMAT_LEFT)
@fileList.insert_column(2, "col 3", LIST_FORMAT_LEFT, 1000)
item = ListItem.new
item.set_column(0)
20.times { |i|
idx = @fileList.insert_item(item)
@fileList.set_item(idx, 0, i.to_s * i)...
2006 Mar 28
3
ListItem patches
...ating 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 set_item_string.
One thing that doesn''t work is the constants LIST_FORMAT_LEFT etc. I''m not sure if it''s the same problem I''m seeing with some other groups of constants since upgrading to SWIG 1.3.29, but constants declarations like
enum wxListColumnFormat {
....
enum wxSystemColour {
...
seem to be broken.
Lastly, would it be possible and desira...
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...DEFAULT_SIZE,Wx::LC_REPORT)
</del><ins>+ list = Wx::ListCtrl.new(self, -1, Wx::DEFAULT_POSITION,
+ Wx::DEFAULT_SIZE,
+ Wx::LC_REPORT)
</ins><span class="cx"> list.insert_column(0,"column0",Wx::LIST_FORMAT_LEFT, -1)
</span><span class="cx"> list.insert_column(1,"column1",Wx::LIST_FORMAT_LEFT, -1)
</span><span class="cx"> list.insert_item(0, ''line0:column0'')
</span><span class="lines">@@ -32,12 +32,10 @@
&...