Go Back   Velocity Reviews > Newsgroups > Python
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Python - WxListCtrl

 
Thread Tools Search this Thread
Old 12-26-2004, 11:14 AM   #1
Default WxListCtrl


Is there any way I can disable just the horizontal scroll bar for a listctrl?
When enough items have been added for it to scroll vertically a horizontal bar
also appears, even though you don't need it at all. I've played around with
sizing individual columns and haven't seemed to come up with anything
satisfactory.


LutherRevisited
  Reply With Quote
Old 12-26-2004, 02:00 PM   #2
Kartic
 
Posts: n/a
Default Re: WxListCtrl
You might want to try using the SetColumnWidth method and give the
column width in pixels. The user (or you) can the read the entire
contents by dragging the column marker to the right (or you can give a
tooltip that displays the entire list control item when the moused
over)

self.lc.SetColumnWidth(0, 200) # Set the first list control column to
200 pixels.

If you want the column to "auto adjust" to the length of the column
header, no matter how long the row contents are, you cann use

self.lc.SetColumnWidth(0, wx.LIST_AUTOSIZE_USEHEADER)

But when you drag out the column to read more the Horizontal Scroll bar
might appear. In my limited knowledge, I can not tell whether or not
there is anything you can do about it. I don't think there is a way to
just prevent the H. Scroll Bar from appearing at all.

Thanks,
--Kartic



Kartic
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46