Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox format problem 1

Status
Not open for further replies.

fabien

Technical User
Sep 25, 2001
299
AU
Hi!

I have created a listbox and I want to add items to it. The problem is that the items don't look too good in the listbox

Ideally I would like them to display like:
basic01 3dv 2 14.6
mig8b01 3dv 2 14.6
temp01 3dv 2 14.2
slice01 3dh 2 18.4
Frequency bri 0 0.0


so I did:
set toto [format "%-30s %-5s %-5d %-6.1f" $name $ext $nbext $size]
$lb insert end $toto

but the lines don't appear formatted like:
basic01 3dv 2 14.6
mig8b01 3dv 2 14.6
temp01 3dv 2 14.2
slice01 3dh 2 18.4
Frequency bri 0 0.0

Is there a way to get around this?

Many thanks!
 
Have you tried a fixed font as Courier?

ulis
 
You are right again I forgot about that.

Thanks Ulis!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top