|
of_typeof
|
|
Full name
|
pfc_n_cst_resize.of_typeof
|
Access
|
protected
|
Extend of
|
string
|
Return value
|
string
|
Prototype
|
protected function string of_typeof(windowobject)
|
protected function string of_typeof (windowobject awo_control);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_TypeOf
//
// Access: protected
//
// Arguments:
// awo_control The window object for which a type is needed.
//
// Returns: string
// Describes the type of the object.
// '!' if an error occurs.
//
// Description: Determines on the type of an object for the purposes of
// getting to its attributes.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 6.0 Changed to use new constants.
// 7.0 Added new controls hprogressbar!, htrackbar!, vprogressbar!,
// vtrackbar!, picturehyperlink!, statichyperlink!
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1999 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
//Check parameters
If IsNull(awo_control) or (not IsValid(awo_control)) Then
Return '!'
End If
//Validate and set typeof value
Choose Case awo_control.TypeOf()
Case checkbox!, commandbutton!, datawindow!, dropdownlistbox!, dropdownpicturelistbox!, &
editmask!, graph!, groupbox!, hprogressbar!, hscrollbar!, htrackbar!, listbox!, &
listview!, multilineedit!, olecontrol!, olecustomcontrol!, omcontrol!, omcustomcontrol!, &
omembeddedcontrol!, picture!, picturebutton!, picturehyperlink!, picturelistbox!, &
radiobutton!, richtextedit!, singlelineedit!, statichyperlink!, statictext!, &
tab!, treeview!, userobject!, vprogressbar!, vscrollbar!, vtrackbar!
Return DRAGOBJECT
Case line!
Return LINE
Case oval!
Return OVAL
Case rectangle!
Return RECTANGLE
Case roundrectangle!
Return ROUNDRECTANGLE
Case mdiclient!
Return MDICLIENT
End Choose
Return '!'
end function
Name
|
Owner
|
powerobject.typeof |
powerobject
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|