ITT Rule IDL Version 7.0 Uživatelský manuál Strana 325

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 430
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 324
Chapter 14: Creating a User Interface Panel 325
iTool Developer’s Guide Example: A Simple UI Panel
The example uses the GetTool method of the IDLitUI object to retrieve an
object reference to the iTool with which the panel is associated. This reference
is later used to retrieve a reference to the IDLitOperation object that performs
the
Rotate Left operation, placing it in the variable oRotate.
•If the
Rotate Left operation is available to the iTool, the example places the
Rotate button on the user interface panel. It also establishes an observer to
watch for changes in the availability of the
Rotate Left operation, which
will change based on the item selected. The callback routine uses the messages
received by this observer to sensitize and desensitize the
Rotate button as
necessary.
The example packages important information in a state structure, and assigns
this structure to the user value of the first child widget of the panel widget. The
event-handling and callback routines will retrieve this state structure and use
the information contained therein.
Panel Event Handler Routine
The event-handler routine (beginning with the line PRO Example4_panel_event,
event
) receives widget events generated by the widgets that make up the user
interface panel, and acts accordingly.
PRO Example4_panel_event, event
; Retrieve the widget ID of the first child widget of
; the UI panel.
wChild = WIDGET_INFO(event.handler, /CHILD)
; Retrieve the state structure from the user value of
; the first child widget.
WIDGET_CONTROL, wChild, GET_UVALUE = state
; Retrieve the user value of the widget that generated
; the event.
WIDGET_CONTROL, event.id, GET_UVALUE = uvalue
; Now do the work for each panel item.
SWITCH STRUPCASE(uvalue) OF
'ROTATE': BEGIN
; Apply the Rotate Left operation to the selected item.
success = state.oUI->DoAction(state.idRotate)
RETURN
END
'HIDE': BEGIN
; Hide the selected item.
;
Zobrazit stránku 324
1 2 ... 320 321 322 323 324 325 326 327 328 329 330 ... 429 430

Komentáře k této Příručce

Žádné komentáře

ADC UltraWAVE X100 manuály

Uživatelské manuály a uživatelské příručky pro Počítačové příslušenství ADC UltraWAVE X100.
Poskytujeme 1 manuály pdf ADC UltraWAVE X100 ke stažení zdarma podle typů dokumentů: Uživatelský manuál


Adc UltraWAVE X100 Uživatelský manuál (4 strany)


Značka: Adc | Kategorie: Computer Accessories | Velikost: 0.09 MB |

 

Tabulka s obsahem





Další produkty a příručky pro Počítačové příslušenství ADC

Modely Typ Dokumentu
DS1 VDSL-Grade Transport System Cable 103326AE Uživatelský manuál   ADC DS1 VDSL-Grade Transport System Cable 103326AE User Manual, 4 stránky
LoopStar 745 Uživatelský manuál   ADC LoopStar 745 User Manual, 4 stránky
Active Digital Signal Cross-Connect ASX Uživatelský manuál   ADC Active Digital Signal Cross-Connect ASX User Manual, 4 stránky
4-Pair Riser Uživatelský manuál   ADC 4-Pair Riser User Manual, 4 stránky