This object is similar to the TTASPanel in that it can hold other objects but it has other uses also. The types of styles available are the Look and Feel of an XP/Office style bar and it 'owns' the objects placed on it. This means that if you set the Visible property of the panel to .False. all object that are on the panel, automatically become invisible also. The same applies to the Enabled property. This can be very useful when you know you want to effect a group of objects all the same way at the same time.
The icon for this object is on the Zip & Other page.
PALETTE ICON & EXAMPLE
PROPERTIES
The following are the properties that apply to this object. Some are defined in Common Properties and are linked to their appropriate page.
Appearance
Alignment
Caption |
This is the text that is displayed on the panel. The default is the name of the object. |
Behavior
Font
Hint
Misc
Other
Anchors
BevelInner
BevelOuter
BevelWidth
BorderStyle
BorderWidth
Constraints
GrabberPlace Position of the Bars.
GrabberSize Point size of bars.
HelpKeyword
HelpType
Icon | The Icon used for the panel |
Moveable if you user can move the Frame.
ParentBackground Use parent background color
ParentCtl3D
Position
COMMENTS
EVENTS
Events are Click and Close
This object has two events that is called if your user clicks on the object. This event looks to your program for a special label. It is made up of the object Name, a period (.) and the Event name (Click). The full event name would be ObjectName.Click: and ObjectName.close:. You would not return a value from the program, just a simple RET is all that is required. So, the user clicks on the object, if the event label exists the routine is called, you return from the routine, and the user has control again.
NOTE: You can have multiple objects call the same routine by 'stacking' the event labels on top of each other. For example, if you had two buttons you wanted to call the same event, you could do the following:
btnFirstButton.click:
btnSecondButton.click:
//event routine code would go here.
ret
The labels are not part of the code executed. They are just place keepers and tell the program where to go.
Example
mypanel.click:
msg 'The user clicked on the panel'
ret
mypanel.close:
msg ' User Clicked on the X.'
ret
Page url: http://www.cassoftware.com/tas/manual/ttasframepanel.htm