ITT Rule IDL Version 7.0 Manuel d'utilisateur Page 366

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 430
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 365
366 Chapter 15: Creating a Custom iTool Widget Interface
Example: a Custom iTool Interface iTool Developers Guide
; Destroy the widget.
'WIDGET_KILL_REQUEST': BEGIN
; Get the shutdown service and call DoAction.
; This code must be here, and not in the _cleanup routine,
; because the tool may not actually be killed. (For example
; the user may be asked if they want to save, and they may
; hit "Cancel" instead.)
IF OBJ_VALID((*pState).oUI) THEN BEGIN
oTool = (*pState).oUI->GetTool()
oShutdown = oTool->GetService('SHUTDOWN')
void=(*pState).oUI->DoAction(oShutdown->getFullIdentifier())
ENDIF
END
; Focus change.
'WIDGET_KBRD_FOCUS': BEGIN
; If the iTool is gaining the focus, Get the set current tool
; service and call DoAction.
IF (event.enter && OBJ_VALID((*pState).oUI)) THEN BEGIN
oTool = (*pState).oUI->GetTool()
oSetCurrent = oTool->GetService('SET_AS_CURRENT_TOOL')
void = oTool->DoAction(oSetCurrent->GetFullIdentifier())
ENDIF
END
; The top-level base was resized.
'WIDGET_BASE': BEGIN
; Compute the size change of the base relative to
; its cached former size.
WIDGET_CONTROL, event.top, TLB_GET_SIZE = newSize
deltaW = newSize[0] - (*pState).basesize[0]
deltaH = newSize[1] - (*pState).basesize[1]
example2_wdtool_resize, pState, deltaW, deltaH
END
ELSE: ; Do nothing
ENDCASE
END
Discussion
Two of the three events handled in this routine are discussed in earlier sections of this
chapter. See “Handling Resize Events” on page 354 for details on the
WIDGET_BASE event and “Handling Shutdown Events” on page 356 for details on
the WIDGET_KILL_REQUEST event.
Vue de la page 365
1 2 ... 361 362 363 364 365 366 367 368 369 370 371 ... 429 430

Commentaires sur ces manuels

Pas de commentaire

Capteurs manuels

Choisissez votre marque de {catégorie} pour le téléchargement des manuels et guides d'utilisation

Liste des marques pour la catégorie des manuels Capteurs
Marques Meilleurs modèles
Industrial-data-systems                               IDS DT220 IDS DT200 Autres catégories
Meteor                               C-80 DMX Controller C240 F Controller C192 Controller Autres catégories
Osco                               MG0-20 Autres catégories
Ameri-King                               AK-451-ELT AK-451-P-ELT Autres catégories
Omega                               CNiS8DV CDTX-90 OS35 FTB600B Autres catégories
Brooks-instrument                               BM50 BM02 Autres catégories
Zytronic                               ZXY110 ZXY200 Autres catégories
Spypoint                               S-MS-1 S-WRL Autres catégories
Chief Manufacturing                               Dual Stud Adapter CTA-111 Single Stud Wall Arm CTA-025 Dual Stud Wall Arm CTA-225 Internal Dual Stud Wall Plate CTA-2536 Autres catégories
Garmin                               GTS 855 GPSMAP 5000 GLO Autres catégories
APC                               150 155 Источник бесперебойного питания 2U REMOTE POWER-OFF DEVICE AP9830 Autres catégories
Teledyne                               MX300-I Trace Oxygen Analyzer 3000TA Trace Oxygen Analyzer 3000TA-XL-EU MX300 Autres catégories
Schumacher                               E-CHARGE VTV-20 IP-75 e-Charge 00-99-000568 Autres catégories
Invacare                               IRC10LX PLATINUM 5 IRC5LXO2 Autres catégories
AOSafety                               Eye Gear Rotational Display A1655 OMNI STAR M-Tac Surgical Respirator N95 Autres catégories
Universal-remote-control-urs                               THZ-100 THZ-100 Rev 03 MRX-4SEN Thermo Control Autres catégories
Firstech, LLC.                               CS-600 DATA CONTROLLER FT-MB164-DC FT-MB211-DC CM6200 Autres catégories
Innotech                               Device Communications Genesis II Digital Controller (v5) Maxim Device Network Cabling Autres catégories
Niles Audio                               TS100 WS110R WS100R Autres catégories
Interlink-electronics                               Ring Sensor 4-Zone FSR Mouse Sensor FSLP Sensor Autres catégories