background image
<< Class Hierarchy - new class called FileDialog | Supporting Custom Objects >>
Class Hierarchy - winclass declaration”
<< Class Hierarchy - new class called FileDialog | Supporting Custom Objects >>
User's Guide
315
16 E
XTENDING
THE
C
LASS
H
IERARCHY
Defining new classes
StaticText DirectoriesText
tag "Directories:"
StaticText PathText
tag "#3"
ListBox Path
tag "#2"
StaticText ListFilesOfTypeText
tag "List Files of Type:"
PopupList ListFilesOfType
tag "List Files of Type:"
StaticText DrivesText
tag "Drives:"
PopupList Drives
tag "Drives:"
PushButton OK
tag "OK"
PushButton Cancel
tag "Cancel"
PushButton Network
tag "Network"
To make use of this new class, you
1
Rewrite the declarations for the Open and Save As dialogs, changing the
class to FileDialog.
2
Remove the declarations for the child objects inherited from the new
class.
Here are the rewritten declarations for the Open and Save As dialogs:
window FileDialog SaveAs
tag "Save As"
window FileDialog Open
tag "Open"
For more information on the syntax used in declaring new classes, see
"winclass declaration" in online Help.