Software Customisation
Reference Manual
Summary of Objects, Members and Methods
:
Object Type Details
: CONTAINER Gadget
CONTAINER Gadget
Members
Member Name
Type
Purpose
type
STRING Get/Set
Gadget type as string 'Container'.
control
REAL Get/Set
Integer handle of external control.
popup
MENU Get/Set
Popup menu associated with the control.
Methods
Method Name
Result
Purpose
ShowPopup(!x is
REAL, !y is REAL )
NO RESULT
Show the associated popup at the specified position. Position is the integer pixel position within the enclosed control.
FullName( )
STRING
Get the full gadget name, i.e. !!Form.gadget.
Name( )
STRING
Get the gadget's name
Owner( )
FORM
Get owning form
GetPickedPopup( )
MENU
Returns the last picked popup menu for the gadget.
Shown( )
BOOLEAN
Get 'shown' status.
Command
The Container gadget allows the hosting of an external Control, e.g. a PMLNet, control inside a PML defined form. It allows you to add an external .Net control, which may raise events that can be handled by PML. In order to customise the context menus of the .Net control, the Container may have a PML popup menu assigned to it. This is shown when the .Net control raises a 'popup' event.
.--<-----.
/ |
>---- CONTAINER gname -+- NOBOX ---|
+- INDENT --*
|
'- PMLNET/CONTROL -+- handle -.
'----------|
.----<------------------------*
|
| .----<-----------------.
|/ |
+-- tagtext -------------|
+-- <fgpos> -------------|
+-- <fganch> ------------|
+-- <fgdock> ------------*
|
+-- <vshape> -.
'-------------'-->
Notes:
1.
By default the Container will be enclosed in a box, but you can select NOBOX or INDENT.
2.
Only PMLNet controls are supported.
3.
'handle' is the integer token identifying the control.
4.
Positioning must be specified before size (<vshape>).
5.
Dock and Anchor are supported to allow intelligent resize behaviour. The enclosed control must support resizing and is usually set as Dock fill, so that it follows size changes of the Container.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.