ITT Rule IDL Version 7.0 User Manual Page 351

  • Download
  • Add to my manuals
  • Print
  • Page
    / 430
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 350
Chapter 15: Creating a Custom iTool Widget Interface 351
iTool Developer’s Guide Adding a User Interface Panel
Adding a User Interface Panel
iTool user interface panels are created using the CW_ITPANEL compound widget.
User interface panels can be used to display a selection of widgets in a tab interface
on one side of the iTool interface.
Note
If you are creating a custom iTool user interface that includes both regular IDL
widgets and iTool compound widgets in a standard base widget, it is unlikely that
you will also need to create a user interface panel. (If you want your interface to
display other panels that are registered with the iTool system, such as the image,
map, or volume panels, you must include a CW_ITPANEL widget.) Conversely,
you may be able to avoid creating an entire custom user interface if you can place
the extra widget controls you need on a user interface panel, which requires
significantly less code. See Chapter 14, “Creating a User Interface Panel” for
information on creating a user interface panel that can be displayed with your iTool.
The signature of the CW_ITPANEL function is:
Result = CW_ITPANEL(Parent, UI [, KEYWORDS])
where:
Parent is the ID of the base widget on which the panel will be displayed.
UI is the user interface object associated with the interface.
KEYWORDS are keywords either handled explicitly by the widget or passed
through to the widgets that make up the compound widget.
Modifying User Interface Panel Contents
The contents of a user interface panel can be modified based on the current state of
the iTool via one or more callback routines, as described in Chapter 14, “Creating a
User Interface Panel.
Resizing User Interface Panels
The CW_ITPANEL compound widget defines a separate procedure,
CW_ITPANEL_RESIZE, that accepts as an argument the new height of the panel.
This procedure handles all calculations necessary to properly resize the panel, taking
into account the fact that panels can themselves include scrolling base widgets. See
“CW_ITPANEL” on page 404 for complete details.
Page view 350
1 2 ... 346 347 348 349 350 351 352 353 354 355 356 ... 429 430

Comments to this Manuals

No comments