ListBox Font (Desktop App)

I have a ListBox showing data in 2 columns from a database. Works fine.

One column displays numbers with 2 places of decimals.

How do I change to a fixed width font such as Courier, so that these line up properly?

There is a post saying to use

Listbox1.font = “Courier”
Listbox1.Size = 14

but when I try that Xojo says Listbox has no member named .font or .size.

Thanks for the help!

Try FontName and FontSize.

Helle
now use Listbox1.FontSize
Listbox1.Size is dead !

See the help:
*aListBox].FontSize = *new SingleValue"

New in 2019r2

Cdlt JLP

Thanks so much to both - that worked. It’s so hard to keep up with all the changes, especially when they make a post incorrect!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.