Hi,
I am developing an application using wxListCtrl with non default sized images. When switching minor versions of wxWidgets it stopped doing what I wanted it to do, which is display two columns of images, not just one.
Here is what i want it to look like (from an older version of the app):
http://icstatic.uwcs.co.uk/icLogic22.PNG
This is what it looks like now:
http://icstatic.uwcs.co.uk/wxListCtrl1.PNG
It also looks like this when using wxGTK (before and after version change):
http://icstatic.uwcs.co.uk/icLogicLinux.png
The bit you are looking at is the 'Component Palette' on the right hand side.
Any ideas how to get it working like in the first screenshot on both windows and on linux?
Thanks in advance,
Ian
wxListCtrl images
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
-
- Earned a small fee
- Posts: 12
- Joined: Thu Sep 08, 2005 6:41 pm
- Location: Coventry, UK
- Contact:
priyank_bolia, thanks, it helped. I say helped, because it now aligns correctly when i call Arrange with wxLIST_ALIGN_TOP, however to get it to work I had to double the amount of space it had, and it's now taking up too much space.
The minimum width I had to set the housing notebook to was 252. On 2.6.1, the width used to be 128. The images in the list are 69x38 so ideally the panel should be 69*2 + 3*10 padding + 20 scrollbar (random numbers off the top of my head) so at most the whole control should be about 200 pixels wide. I'm not entirely sure where 252 is coming from... Is there some kind of item padding that i've missed?
This is what the control looks like now:
http://icstatic.uwcs.co.uk/wxListCtrl2.PNG
Has anybody got any ideas how to get the control looking even remotely right under GTK?
I'm toying with the idea of making a custom control to draw the items but it seems like an awful lot of work when something which nearly works exists!
The minimum width I had to set the housing notebook to was 252. On 2.6.1, the width used to be 128. The images in the list are 69x38 so ideally the panel should be 69*2 + 3*10 padding + 20 scrollbar (random numbers off the top of my head) so at most the whole control should be about 200 pixels wide. I'm not entirely sure where 252 is coming from... Is there some kind of item padding that i've missed?
This is what the control looks like now:
http://icstatic.uwcs.co.uk/wxListCtrl2.PNG
Has anybody got any ideas how to get the control looking even remotely right under GTK?
I'm toying with the idea of making a custom control to draw the items but it seems like an awful lot of work when something which nearly works exists!
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact: