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

Home » Public Forums » archive » Re: widget_base alignment 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: widget_base alignment question [message #42636 is a reply to message #42621] Wed, 16 February 2005 20:25 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Marshall Perrin writes:

> Having read through the IDL documentation on widget_base, and
> skimmed through all the widget stuff in Dave Fanning's most excellent
> book, I'm still stuck on this one. This is easy in GTK! Why is it so
> hard (or at least obscure) in IDL?!

Oh, let's not start. :-)

I need this kind of thing from time to time, too.
It usually takes less time to look for a layout that
doesn't have the requirement than it does to code the
damn thing up, but here is what I do.

I calculate the size of the TLB. Then the size of the
things I want to put into that row base. I do some subtraction
to get the size of the "space" I want between the things in
the row base. I have a "spacer" object or widget that I use
to insert itself in the right location. Just a label widget
with nothing written on it. Of course, after doing all the
calculations I have to subtract a fudge factor of 17 or 23
or something like that. It varies with the platform and the
time of the month. (Or maybe it's the phase of the moon, I
can't remember.)

Anyway, when it's done it looks great on my machine and
lousy everywhere else. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to rerun subroutine only?
Next Topic: Re: tick label problem

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

Current Time: Sat Oct 11 18:40:07 PDT 2025

Total time taken to generate the page: 0.88354 seconds