deGetAppInfo
deGetAppInfo(t_viewType) =>l_appInfo/ nil
Description
Returns the application registration information associated with t_viewType and its sub-view types.
This function returns a property list with the following elements:
If t_viewType is a root view type, then l_appInfo->parentType will be "", and l_appInfo->dataTrigger and l_appInfo->appTrigger will be non-nil. Otherwise, the opposite is true.
l_appInfo->subTypes is a list of property lists, one for each defined subviewType of t_viewType, which have the same format. Thus l_appInfo contains the entire class tree for t_viewType.
-
If there are no sub viewtypes, then l_appInfo->subTypes is
nil. - If t_viewType is itself a subType, then only the subType tree with t_viewType at its root is returned.
l_appInfo->userAppTrigger, l_appInfo->userMenuTrigger, and l_appInfo->userPostInstallTrigger are supported for compatibility reasons only and should not be used otherwise. If multiple functions are registered for any of these triggers, only the first function of the list is returned.
Arguments
Value Returned
Example
For the subviewType, maskLayout
deGetAppInfo("maskLayout") => (nil userMenuTrigList (m1 m2) userPostInstallTrigList nil userPostInstallTrigger nil userAppTrigList nil viewType "maskLayout" parentType "" appName "Layout" apptitle nil help "Layout" widgetType "graphics" noCadenceMenu t dataTrigger geDataTrigger appTrigger leAppTrigger enableTrigger leEnableTrigger menuTrigger leMenuTrigger exitTrigger nil postInstallTrigger nil windowBBoxProc leWindowBBoxProc userAppTrigger nil userMenuTrigger m1 inheritMenus nil inheritEnabling nil subTypes ( (nil viewType "maskLayoutXL" "parentType" "maskLayout" appName "Virtuoso XL" appTitle "Layout XL" help "layoutXLhelp" widgetType "graphics" noCadenceMenu t dataTrigger nil appTrigger nil enableTrigger lxiEnableTrigger menuTrigger lxiMenuTrigger exitTrigger lxiExitTrigger postInstallTrigger lxiPostInstallTrigger windowBBoxProc nil userAppTrigger nil userMenuTrigger nil inheritMenus nil inheritEnabling nil subTypes nil )
deGetAppInfo() returns a pointer to the application information. If the application information is then changed, your local pointer to the application information also changes. deRegUserTrigger("maskLayout"
'appTriggerCB 'menuTriggerCB 'postInstallTriggerCB
)
Verify that the triggers are registered.
localAppInfo = deGetAppInfo("maskLayout")
localAppInfo->userAppTrigger ; Display the userAppTrigger.
appTriggerCB
localAppInfo->userMenuTrigger ; Display the userMenuTrigger.
menuTriggerCB
localAppInfo->postInstallTriggerCB ; Display the postInstallTrigger
postInstallTriggerCB
Un-register the user triggers.
deUnRegUserTriggers("maskLayout")
The localAppInfo properties are set to nil even though localAppInfo was not directly modified.
localAppInfo->userAppTrigger
nil
localAppInfo->userMenuTrigger
nil
localAppInfo->postInstallTriggerCB
nil
Copy the application information into different variables if you want to preserve the information for future reference:
localAppTrigger = localAppInfo->userAppTrigger
Return to top