473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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.
Jul 18 '05 #1
1 2395
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

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joost van Rooij | last post by:
Hi, I am having problems deleting one item from a list in a wxListCtrl widget. My thought was to select it as presented below: def onSelect(self, event): self.item = event.GetItem()...
1
by: bmoore | last post by:
Hello. I am working on an application using wxPython that includes a panel with a wxListCtrl populated with data received from a LAN attached database. I want the wxListCtrl panel to be...
1
by: Krzysztof Kaczkowski | last post by:
Hello Im having problem, my class inherit in wxTreeItemData. (Python2.3 i wxPython2.4.1.2u) class MyTreeItemData (wxTreeItemData): def __init__(self, name): wxTreeItemData.__init__(self)...
1
by: chauhan | last post by:
Hi, I am new to pogramming. I have written a small program which retrieves emails from server, unless all the messages are loaded only then it displays on screen properlely. Whole thing works...
1
by: Mark Carter | last post by:
I would like a wxListCtrl with 3 columns in it. The number of rows in it will vary during run-time. In the first column of each row should be a wxCheckBox, which the user can check or uncheck. ...
3
by: Piet | last post by:
Hi there. I am trying to display tabular data in a wxListCtrl. What I get from the script below are only the headers, not the items themselves. The documentation didnīt help me much; instead I was...
4
by: Piet | last post by:
Hello. I am working on an XML editor that will not display the xml file as plain text, but will rather work with a combination of a tree view for the main element nodes and some kind of tabular...
0
by: Piet | last post by:
Hello, I am working on a graphical MySQL Frontend written in python/wxPython. The results from a table query are displayed either in a wxGrid or in a wxListCtrl. I would prefer the latter because...
0
by: kalyan.abbaraju | last post by:
Hi, I have to create a ListBox in which I have to move items up and down using DnD. How to create drag and drop call backs in wxListCtrl. I can see EVT_LIST_BEGIN_DRAG but I could not find any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.