Important: The information in this document is obsolete and should not be used for new development.
MyPanelGetTitle
A control panel extension should respond to thekPanelGetTitleSelectrequest code but is not required to do so. A control panel sends this request code to your extension to get the name of your panel extension. A control panel extension typically responds to thekPanelGetTitleSelectrequest code by calling an extension-defined subroutine (for example,MyPanelGetTitle) to handle the request.
FUNCTION MyPanelGetTitle (self: ComponentInstance; title: Str255) : ComponentResult;
self- A component instance identifying the specific instance of your control panel extension.
title- On exit, the name of your control panel extension as you want it to appear in the panel-selection pop-up menu of the control panel.
DESCRIPTION
YourMyPanelGetTitlefunction should return, through thetitleparameter, a string that is the desired title of your control panel extension. This name appears as a menu item in the pop-up menu that lets the user select which panel to view.SPECIAL CONSIDERATIONS
Currently, all control panels use the component name as the title of the control panel extension. TheMyPanelGetTitlefunction is intended to allow your extension to assign a title different from the component name. Future control panels are likely to call yourMyPanelGetTitlefunction.RESULT CODES
YourMyPanelGetTitlefunction should returnnoErrif successful, or an appropriate result code otherwise.