increase spacing between items on a GUI listbox?

Started by TheMagician, Mon 14/11/2005 13:03:53

Previous topic - Next topic

TheMagician

Hi everybody!

The topic says it all:
Is there any possibility to change (increase) the spacing/distance between the items on a GUI listbox?

Looking forward to your ideas.
Stefan

Ashen

#1
AFAIK, there's no in-built way to do this. In fact, this was just asked not too long ago, and got tracker'ed.

In the meantime, you could try importing a font which looks like your standard font, but has extra space at the bottom of the characters, and only using it on the list box. Or, if you feel like a bit of scripting, use single-line labels to mimic the appearance of a listbox. You could still use a 'hidden' listbox to store the items, rather than fiddling with arrays.
I know what you're thinking ... Don't think that.

TheMagician

Thanks Ashen!
I didn't notice the other thread about this topic ... sorry.

I also thought about creating a font with additional space below the characters (could Radiant's FontEdit be used for that task?).

And I really like the idea of the hidden list but I think it would be too much effort if I could just change the font.

Ashen

FontEdit is the only thing I can think of off-hand that would do it, unless you have another font editing/creation program, of course.

As to which is easier - it probably depends on if you have the font in a format you can just edit, or whether you'll have to draw it from scratch. Personally, I'd rather do the coding than that, but that might just be me.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk