ITT Rule IDL Version 7.0 User Manual Page 416

  • Download
  • Add to my manuals
  • Print
  • Page
    / 430
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 415
416 Appendix B: iTool Compound Widgets
CW_ITWINDOW iTool Developers Guide
CW_ITWINDOW
The CW_ITWINDOW function creates an iTool draw widget that contains an
IDLitWindow object.
Warning
This routine can only be used in the context of a user-created iTool. See “Overview
of iTools Compound Widgets” on page 398 for details.
The CW_ITWINDOW widget automatically performs the following actions:
1. Creates a scrolling draw widget with the specified dimensions.
2. Adds itself as an observer of the underlying IDLitWindow object. The
CW_ITWINDOW widget listens for the following message:
See “iTool Messaging System on page 41 for a discussion of observers and
notifications.
3. Handles all mouse and keyboard events. See “IDLitWindow” (IDL Reference
Guide) for a list of the mouse and keyboard callback methods.
Resizing CW_ITWINDOW Widgets
CW_ITWINDOW does not automatically resize itself to fit its parent widget. To
resize the widget, your base widget must call the CW_ITWINDOW_RESIZE
procedure with the new size. This procedure has the following interface:
CW_ITWINDOW_RESIZE, Widget_ID, Xsize, Ysize
where Widget_ID is the CW_ITWINDOW widget ID, and Xsize and Ysize are
the new visible size of the draw window.
Syntax
Result = CW_ITWINDOW(Parent, UI [, DIMENSIONS=[width, height]]
[, VIRTUAL_DIMENSIONS=[width, height] ] [Also accepts all
WIDGET_DRAW keywords])
Message Value Description / Result
CONTEXTMENU Menu identifier Change the current context menu.
Table B-5: Messages Understood by CW_ITWINDOW
Page view 415
1 2 ... 411 412 413 414 415 416 417 418 419 420 421 ... 429 430

Comments to this Manuals

No comments