Changing row heights to different size in listbox

I’d like to change the height of a row if the row is a folder. Couldn’t find anything in the docs. Is that possible?

You can’t set individuals heights for specific rows.

too bad…

You can make a graphical ListBox with a canvas. Paste this a the Open event of an empty window (for testing only):

g.ForeColor = &cFF808000
g.FillRect 0, 0, 150, 30
g.ForeColor = &c00000000
g.DrawString “Row 1”, 10, 20

g.ForeColor = &cC0C0C000
g.FillRect 0, 30, 150, 50
g.ForeColor = &c00000000
g.DrawString “Row 2”, 10, 60

g.ForeColor = &cFF808000
g.FillRect 0, 80, 150, 20
g.ForeColor = &c00000000
g.DrawString “Row 3”, 10, 95

g.ForeColor = &cC0C0C000
g.FillRect 0, 100, 150, 30
g.ForeColor = &c00000000
g.DrawString “Row 4”, 10, 120

g.ForeColor = &cFF808000
g.FillRect 0, 130, 150, 30
g.ForeColor = &c00000000
g.DrawString “Row 5”, 10, 145

g.ForeColor = &cC0C0C000
g.FillRect 0, 150, 150, 50
g.ForeColor = &c00000000
g.DrawString “Row 6”, 10, 180

g.ForeColor = &cFF808000
g.FillRect 0, 200, 150, 20
g.ForeColor = &c00000000
g.DrawString “Row 7”, 10, 215

g.ForeColor = &cC0C0C000
g.FillRect 0, 220, 150, 30
g.ForeColor = &c00000000
g.DrawString “Row 8”, 10, 240

If you would simulate a full ListBox, Make a Subclass of a Canvas with name “ListBoxCanvas” and give them some properties for with, heigt, background, textstring, textsize, textcolor and so on. Paste this class to a container controll. Create your listbox with some command to create or repeat the rows. Paste this container into a window, add a scrollbar. In the “ValueChanged” event of the scrollbar move the container up and down. You are very flexible with this Listbox, becaue you can give each row or column different colors for forground, background and textcolor and also you can use diffrent textfonts

[quote=242374:@Horst Jehle]You can make a graphical ListBox with a canvas. Paste this a the Open event of an empty window (for testing only):

If you would simulate a full ListBox, Make a Subclass of a Canvas with name “ListBoxCanvas” and give them some properties for with, heigt, background, textstring, textsize, textcolor and so on. Paste this class to a container controll. Create your listbox with some command to create or repeat the rows. Paste this container into a window, add a scrollbar. In the “ValueChanged” event of the scrollbar move the container up and down. You are very flexible with this Listbox, becaue you can give each row or column different colors for forground, background and textcolor and also you can use diffrent textfonts[/quote]

You’re suggesting him to make a custom listbox without really knowing his objectives except for a variable row height…Don’t like that. A custom listbox even with basic features is a lot of coding.

No. But there are 3rd Party Solutions like this: http://www.pidog.com/piDogScrollingCanvas/DataView.shtml