Image/Picture Control |
|
The Image tool is used to insert a bitmap or multimedia image in a panel; e.g. company logo, product diagram or photograph. This object type is for display purposes only and does not respond to events.
For information on the use of graphics in PxPlus, see 'PICTURE' mnemonic.
To insert a graphic image/picture on a panel, select the Picture control tool from the Controls Toolbar, then hold down the left mouse button and drag the mouse to create a rectangle to the desired size. Release the mouse button to create the location for inserting the new image, as defined via the Picture Path property.
For making other adjustments, see Modifying Objects.
To assign a name and location of the image file to be used, as well as define specific image attributes, see Image Properties.
When creating or editing an Image control, the Image/Picture Properties dialogue (pictured below using the Folder Style version of the NOMADS Panel Designer) is displayed:
This dialogue is divided into the following tabbed panels for viewing and/or changing image/picture properties: Display and Advanced.
Unique name of the image control (NOMADS provides a default). Naming conventions for variables apply. Click the Browse Library button to copy parameters from an existing object (via the Library Browse dialogue). Note: | |||||||||||
Preview |
Displays how the visible properties of the control will appear at run time. | ||||||||||
Picture Path |
Name and location of picture file (Fixed value or string Expression). | ||||||||||
Image Format |
(The "Centered (scale and crop)" option was added in PxPlus 2019 Update 1.) | ||||||||||
Position |
(Support for increased Column and Line maximums was added in PxPlus 2021.) | ||||||||||
Size |
(Support for increased Width and Height maximums was added in PxPlus 2021.) | ||||||||||
General Attributes |
| ||||||||||
Assign an iNomads class to the control. Can be Fixed or Expression. The iNomads class contains class attribute references used when defining the control in the HTML code generated in iNomads. An iNomads class reference must start with an alpha character (A-Z or a-z), followed by any combination of A-Z, a-z, 0-9, underscore or dash. Multiple references may be entered, separated by a space. For a list of pre-defined iNomads classes, see iNomads Classes. (The iNomads Class property was added to Images in PxPlus 2018.) | |||||||||||
Text to be used as the alternate text for the image when running iNomads. (The iNomads Alt Text property was added in PxPlus 2021.) | |||||||||||
Cropping (Pixels from Top/Left of Image (0.0)) |
Define the cropped image in terms of Left, Right, Top and Bottom where these values are the number of pixels from the top left corner (0,0) of the image. Note: | ||||||||||
Attributes |
Note: | ||||||||||
| |||||||||||
Security |
Security restrictions. See Restricting Access for information on Object Security Definition. | ||||||||||
Groups |
Assign the control to a group. See Group Assignment. | ||||||||||
Notes |
Add notes/comments for the control. Maximum 1024 characters. (The Notes button was added in PxPlus 2023.) |