ITT Rule IDL Version 7.0 Manuale Utente
Chapter 15: Creating a Custom iTool Widget Interface
355
iTool Developer’s Guide
Handling Resize Events
handled based on the layout and desired behavior of the interface. Aside from the
techniques discussed in
techniques discussed in
Programming), keep the following in mind when writing your resizing routine:
•
Use the supplied *_RESIZE procedures defined by the iTool compound
widget routines to resize the compound widgets, when they are available. See
the reference pages for the CW_IT* widgets for details.
widget routines to resize the compound widgets, when they are available. See
the reference pages for the CW_IT* widgets for details.
•
Widget sizing is handled differently on Windows and UNIX platforms.
Specifically:
Specifically:
•
On Windows platforms, turn off widget updating (via the UPDATE
keyword to WIDGET_BASE) while widgets are resizing. This helps
prevent flashing.
keyword to WIDGET_BASE) while widgets are resizing. This helps
prevent flashing.
•
On UNIX platforms, make sure updating is turned on while resizing, to
ensure proper resizing.
ensure proper resizing.
•
If you are storing the size of your base widget in the interface’s state structure,
be sure to update the values in the state structure after the interface has been
resized.
be sure to update the values in the state structure after the interface has been
resized.