Fanning Consulting Services (25K)

Widget TLB Not Resizing Properly

Name: David Fanning
E-mail Address: davidf@dfanning.com
IDL version: IDL 5.2
Platform and OS: UNIX versions
Description of Behavior:

Resizeable top-level bases that have menu bars do not report their
correct size in the resize base event structure. Programs that rely
on this information (event.x and event.y) will not work correctly.
This is most often noticed by the vertical size of the widget changing
slighly, even though the widget was only resized horizontally.

Example Code:

Here is an example program that shows the problem
and the proposed work-around.

Known Workarounds or Fixes:

The only work-around is to keep track of the size of the
top-level base in your program, using this syntax:

   Widget_Control, event.top, TLB_GET_SIZE=newsize

You can calculate the difference between the old size and the
new size to see how your top-level base size has changed.

RSI Technical Support Response:

This is a bug and it will be put on the schedule to
be fixed. 



[Return to Table of Contents]
Copyright © 1997-1999 David W. Fanning
Last Updated 18 May 1999