User Interface Controls > Common Properties > Layout > Types > ImgTag |
The ImgTag UI Control can be used to place images in MAXScript Rollouts. Other than the Bitmap UI Control, it does not have a sunken edge and can be integrated better in the layout. In addition, it supports transparency effects and various mouse handlers which could be used to design customized controls.
imgTag <name> [caption] [tooltip:<string>] [style:<key>] [bitmap:<bitmap>] [opacity:<float>] [transparent:<color>] [iconName:<filename>] [iconSize:<point2>]
Current image being displayed.
Way the bitmap will be displayed in the control.
Overall opacity of the image, can range from 0.0 to 1.0
The RGB color in the source bitmap to treat as transparent.
<ImgTag>.iconName string
Specifies the filename of an icon file to load.
<ImgTag>.iconSize point2
Specifies the icon's size at 100% DPI scaling.
Methods:
getIconAsBitmap <iconName> iconSize:<point2> enabled:<bool> on:<bool> applyUIScaling:<bool> -- defaults values: [24,24], true, false, true
Returns the icon as a bitmap value, if the icon is found. Returns undefined if it is not found. Available in in 3ds Max 2017 and higher.
EXAMPLE |
b = getIconAsBitmap @"PolyTools\TransformTools\PB_CW" getIconSizes <iconName> enabled:<bool> on:<bool> -- defaults values: true, false |
Returns an array of icon sizes that are defined for the specified icon file. Returns undefined if the icon is not found.
EXAMPLE |
getIconSizes @"PolyTools\TransformTools\PB_CW" #([20,20], [25,25], [30,30], [40,40]) |
Called when the left mouse button is pressed down.
Called when the left mouse button is released.
Called when the left mouse button is released.
Called when the left mouse button double clicked.
Called when the mouse is moved into the image area.
Called when the mouse is moved out of the image area.
Called when the right mouse button is released. Available in 3ds Max 8 and higher.
Called when the left mouse button has been pressed. Available in 3ds Max 8 and higher.
The first argument contains a Point2 value representing the 0-based pixel coordinates within the ImgTag.
The second argument is the Flags value which is a combination of the following bits:
You can use the bit.get() method to determine whether a key is pressed or not:
Called when the left mouse button has been released. Available in 3ds Max 8 and higher.
The first argument contains a Point2 value representing the 0-based pixel coordinates within the ImgTag.
The second argument is the Flags value as described above.
Called when the left mouse button has been double-clicked. Available in 3ds Max 8 and higher.
The first argument contains a Point2 value representing the 0-based pixel coordinates within the ImgTag.
The second argument is the Flags value as described above.
Called when the middle mouse button has been pressed. Available in 3ds Max 8 and higher.
The first argument contains a Point2 value representing the 0-based pixel coordinates within the ImgTag.
The second argument is the Flags value as described above.
Called when the middle mouse button has been released. Available in 3ds Max 8 and higher.
The first argument contains a Point2 value representing the 0-based pixel coordinates within the ImgTag.
The second argument is the Flags value as described above.
Called when the middle mouse button has been double-clicked. Available in 3ds Max 8 and higher.
The first argument contains a Point2 value representing the 0-based pixel coordinates within the ImgTag.
The second argument is the Flags value as described above.
Called when the middle mouse button has been pressed. Available in 3ds Max 8 and higher.
The first argument contains a Point2 value representing the 0-based pixel coordinates within the ImgTag.
The second argument is the Flags value as described above.
Called when the middle mouse button has been released. Available in 3ds Max 8 and higher.
The first argument contains a Point2 value representing the 0-based pixel coordinates within the ImgTag.
The second argument is the Flags value as described above.
Called when the middle mouse button has been double-clicked. Available in 3ds Max 8 and higher.
The first argument contains a Point2 value representing the 0-based pixel coordinates within the ImgTag.
The second argument is the Flags value as described above.