ButtonEdit style attributes

ButtonEdit style presentation attributes apply to a buttonedit element.

Table 1. ButtonEdit style attributes
Attribute Description GDC CLIENT HTML5 CLIENT
scaleIcon Defines the scaling behaviors of the associated icon.

Independently of the style value, if an icon must be scaled, the source image will never be upscaled to avoid as much as possible pixellization or blurring the image. The notable exception is when the image come from an SVG file which can be upscaled or downscaled without any penalty. If the icon must anyway be made bigger, the image will be centered and a transparent border will be added around to "fill" the empty space. It will allow user to mix big icon with smaller one but also to keep widget alignment

If a scaling take place, the aspect ratio of the original image will be kept, keeping non square source as non square scaled icon.

Values can be:
  • "no" (default): No scaling occurs at all, the image are taken "as is". It's up to the user to resize the source image to avoid misalignment.
  • "yes": Image are scaled down according to the height of the edit field, and will match the scaling behaviors of a DateEdit field when style "buttonIcon; is used. Setting a "big" font may result with a "big" icon.
  • "nnnpx": Image are scaled down according to the specified size. For example, scaleIcon="128px" will make every icon to have no more than 128*128 pixels, but at least one side equal to 128 pixels, depending if the source image is square or not.
Yes Yes