PxPlus User Forum

Main Board => Discussions => Language => Topic started by: James Zukowski on July 11, 2018, 04:42:14 PM

Title: Spacing Between Lines
Post by: James Zukowski on July 11, 2018, 04:42:14 PM
Does anyone know if there is a way to adjust the line spacing in a list_box? (Maybe a grid, too?)

We're looking for something like a leading setting that would increase readability. I know we can set the list'LinesPerRow to something like 1.1 or 1.25, but that also enables text wrap, which we don't really want.

I've seen this behavior in the Nomads designer, where it's normally a bit spaced, but if the designer errors out and I restart it, the lines are cramped together.

Suggestions?
Title: Re: Spacing Between Lines
Post by: Mike King on July 12, 2018, 10:02:32 AM
Have you tried the 'rowheight property?
Try this:

Code: [Select]
0010 LET x=10
0020 LIST_BOX x,@(5,5,17,10),OPT="r",FMT="[Name]8 [Type]8",SEP=","
0030 LIST_BOX LOAD x,0,"Puss and Boots,Cat"
0040 LIST_BOX LOAD x,0,"Marmaduke,Dog"
0050 LIST_BOX LOAD x,0,"Piggly Wiggly,Pig"
0060 LIST_BOX LOAD x,0,"Dumbo,Elephant"
0070 LIST_BOX LOAD x,0,"Scrooge McDuck,Duck"
0080 LIST_BOX LOAD x,0,"Mickey,Mouse"
0090 LET x'Rowheight=1.5
0100 ESCAPE
Title: Re: Spacing Between Lines
Post by: James Zukowski on July 12, 2018, 10:16:39 AM
No, I had not. It's not on the list of list_box properties. But it works exactly as we need it.

Thanks!