comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Font compatibility question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Font compatibility question [message #61518 is a reply to message #61421] Thu, 17 July 2008 10:10 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
pdoherty writes:

> I want a base that holds a stack of widget_buttons, so I create
> a column oriented base and fill it with buttons. I want all
> the buttons to be the same width, so I set it. Otherwise they
> are all sized by the system based on the text that labels them.
> It doesn't get much uglier than that. Is there some other way
> to force them to be the same? I suppose I could create bitmaps
> that were the same size and held the label text, but that is
> ugly programming.

What version of IDL are you running!? This code creates
a stack of buttons all the same size on both my Windows
and UNIX machines:

tlb = Widget_Base(/COLUMN)
b = Widget_Button(tlb, Value='12')
b = Widget_Button(tlb, Value='1234')
b = Widget_Button(tlb, Value='123456')
b = Widget_Button(tlb, Value='12345678')
b = Widget_Button(tlb, Value='1234567890')
b = Widget_Button(tlb, Value='123456789012')
b = Widget_Button(tlb, Value='12345678901234')
b = Widget_Button(tlb, Value='1234567890123456')
Widget_Control, tlb, /realize
END

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDLgrAxis set TICKVALUES in specific positions
Next Topic: IDLgrAxis set TICKVALUES in specific positions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:46:25 PDT 2025

Total time taken to generate the page: 0.00416 seconds