Buttons Component

Fnd_Bttn_GetPictureWidth

Fnd_Bttn_GetPictureWidth (icon; text) -> Number

Legacy manual page 55

Parameters

ParameterTypeDescription
iconTextName of the icon
textTextButton label
Function resultNumberWidth of the picture

Description

Fnd_Bttn_GetPictureWidth returns the width of the rollover picture that uses the specified icon and text.

$buttonWidth:=Fnd_Bttn_GetPictureWidth ("Fnd_Bttn_Wrench";"Special Functions")

The size returned will depend on the button platform and style currently set for the current process. Although this routine does not return the image, the composite button image is generated and stored in the cache.

Extracted source text
            Fnd_Bttn_GetPictureWidth (icon; text) ➔ Number

              Parameter                     Type                  Description
              icon                          Text                  Name of the icon
              text                          Text                  Button label
              Function result               Number                Width of the picture

            Fnd_Bttn_GetPictureWidth returns the width of the rollover picture that uses the specified icon and
            text.
              $buttonWidth:=Fnd_Bttn_GetPictureWidth ("Fnd_Bttn_Wrench";"Special Functions")

            The size returned will depend on the button platform and style currently set for the current process.
            Although this routine does not return the image, the composite button image is generated and stored in
            the cache.