[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Widget Bug
- Subject: Re: Widget Bug
- From: Bernard Puc <bpuc(at)va.aetc.com>
- Date: Thu, 12 Oct 2000 14:57:43 -0400
- Newsgroups: comp.lang.idl-pvwave
- Organization: AETC,INC.
- References: <39E5FB91.BAD3E6E0@va.aetc.com>
- Reply-To: bpuc(at)va.aetc.com
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:21680
Hello Again,
Sorry to reply to my own post - which means I didn't try hard enough
first to figure this out on my own!
The problem stems from the fact that I realized the object before
applying the offsets, then setting map = 1. I assumed that I had to
realize the object first, in order to get its geometry using widget_info
- this is not the case. By not realizing the object until after the
offsets are applied, the problem disappears. And, now I do not have to
use the map keyword.
Bernard Puc wrote:
>
> Hello,
>
> Has anyone come across the following problem? I have attached two gif
> images of a widget that demonstrate the problem. goodwidget.gif shows
> the widget as it is supposed to look. Note that the buttons are
> centered in their base widget's frame. badwidget.gif is what happens
> when I add to the code a line providing an x and y offset for the top
> level base (in order to center it on the screen). ie, "widget_control,
> tlb, xoffset = xdim, yoffset = ydim"
> Now, all the widgets are aligned with the bottom of their base, and look
> ugly.
> All positioning is done via column or row keywords, the widget is
> unmapped until the offsets are applied.
>
> My IDL: { x86 linux unix 5.3 Nov 11 1999}
>
> --
> Bernard Puc AETC, INC.
> bpuc@va.aetc.com 1225 Jefferson Davis Highway #800
> (703) 413-0500 Arlington, VA 22202
>
> ------------------------------------------------------------------------
> [Image] [Image]
--
Bernard Puc AETC, INC.
bpuc@va.aetc.com 1225 Jefferson Davis Highway #800
(703) 413-0500 Arlington, VA 22202