Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

DspSetPopupMenuFont

  • Last UpdatedJul 18, 2023
  • 1 minute read

Allows you to set the font and font size for text that appears in popup menus at runtime. For example, you can use this function to adjust the size of the text that appears in context menus to suit a particular screen resolution.

Note: Background color and foreground color properties are not supported on popup menus.

Syntax

DspSetPopupMenuFont(hFont)

hFont:

The handle of font to be used.

Return Value

No return value.

DspSetTooltipFont, DspFont, DspFontHnd

Example

IF (StrEndsWith(sPage, "_HD1080") = TRUE) THEN

hFont = DspFontHnd("SA_Menu");

ELSE

IF (StrEndsWith(sPage, "_UHD4K") = TRUE) THEN

hFont = DspFontHnd("SA_Menu4K");

END

IF (hFont <> -1) THEN

DspSetPopupMenuFont(hFont);

END

See Also

Display Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in