SUGGESTION: Set pixel gap between listbox items.

Started by monkey0506, Tue 05/09/2006 17:26:36

Previous topic - Next topic

monkey0506

Okay, here I go again. :D

I've noticed that it seems the space between listbox items is fixed at 3 pixels*. I can't seem to change it at all even with all my efforts in modifying my fonts and whatnot.

The reason I need to change this is because I need my listbox to fit inside of a certain area, however there are several extra pixels at the bottom because the items are spaced incorrectly.

Please can we get this changed? :'(

:=

[EDIT:]

In all my n00bly glory I managed to look up the related tracker entry, (after posting... :-[), but still, I would find this useful, and it's been nearly a year since the tracker entry.

*This is based off of one test with one font. I didn't actually attempt any other fonts, although I did try adding extra blank space at the bottom to no avail. It could be the case that this amount depends somewhat on the size of the font instead of just being 3 pixels as stated.

Dave Gilbert

I second this!  I have a listbox in my game that acts like notes on a notepad, and it was difficult to get the lines on the notepad to match up with the words.  Then I wanted to try a different font and had to refutz with the lines again.  It would be much easier to be able to set a gap between the listbox lines.

Adamski

I would also like to add my support to this request, as it would make my life much happier too!

abstauber

Sorry to bump this. Has there been any progress on this?

I'm currently working on guis in the scumm template and try to detect a the height of a listbox item.

Right now I'm using GetTextHeight and manually add 2px. Is this still a fixed value?

Pumaman

Correct, it is currently still hardcoded to GetTextHeight + 2px (or 4px in hi-res games).

abstauber

Alright, thanks for the info.

So I'm now adding 2px if the resolution is below 640x480 and 4px if it's equal and above. Looking good so far :)

Shane 'ProgZmax' Stevens

It would be nice if a sample of text in the chosen font was drawn inside the Listbox (ITEM 1, ITEM 2) in the editor for each entry to SHOW the spacing and alignment and then allow you to tweak it from the properties.  I'm sure this would save massive amounts of time and effort.

SMF spam blocked by CleanTalk