Справочник Пользователя для ITT Rule IDL Version 7.0

Скачать
Страница из 430
416
Appendix B: iTool Compound Widgets
CW_ITWINDOW
iTool Developer’s 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 
 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:
Se
 on page 41 for a discussion of observers and 
notifications.
3. Handles all mouse and keyboard events. See 
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(ParentUI [,
=[widthheight]] 
[,
=[widthheight] ] [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