APPX widget macros
Enter macros in the Tooltip or Label field in Widget Properties. If the editor has no Tooltip field, set WIDGET TOOLTIP at runtime. To hide a table's row numbers and footer, enter @TSRN=F@TSFB=F.
All widgets
@SDSDrop shadow- Set shadow visibility, distance, size, angle, opacity and color. Drop shadow settings.
@SLNLayer order- Lower layer numbers appear in front. The default layers changed from 3, 2 and 1 in APPX 5.0 to 30, 20 and 10 in 5.1. Layer numbers by widget type.
@CLSSCSS class- Assign a CSS class in the HTML client. For example,
@CLSS=order-totalapplies a class namedorder-total. @WCGAFANAccessible name- Set the HTML
aria-labelthat a screen reader announces for a field or image. For example,@WCGAFAN=Order number.
Buttons, lists and files
@SFPButton focus- Use
@SFP=Tto paint the focus indicator (the default) or@SFP=Fto hide it. @SMVMovable button- Assign the user option number to return when the user moves the button. Movable button options.
@SLLDropdown choices- The first character after the equals sign separates the values. For example,
@SLL=,Open,Closed. Local dropdown lists. @SFFFile chooser filter- Give the filter a label and a list of extensions, as in
@SFF="Images",png,jpg. File chooser filters. @FULCFile transfer- Use
@FULC=Fto use the browser for a file upload or download. The HTML client also accepts@FULC=Nfor browser transfer. Browser transfer requires APPX Server 5.4.5 or later. HTML client file transfers.
Lines
@SLUBUnit base- Use
Wfor grid-cell width,Hfor height, or a pixel count. Line unit base. @SSPStroke pattern- Set alternating lengths of line and gap in the selected units, for example
@SSP=4,2. Stroke patterns. @SSPOPattern offset- Start partway through a repeating stroke pattern. Stroke pattern offsets.
Tables
APPX 5.2.0 introduced the Table Widget. Use T to enable and F to disable a setting. The default for the options below is T except for case-sensitive sorting.
@TCRResize columns- Allow users to drag column edges to resize. A column can override the table setting.
@TCSSort columns- Allow sorting by a column. A column can override the table setting.
@TCSSCase-sensitive sort- Set
@TCSS=Tto distinguish uppercase and lowercase in HTML client sorts. The default isF. @TCSVCSV export- Show the option to export the table to a CSV file.
@TSCCColumn chooser- Show the column chooser in the footer.
@TSFBFooter bar- Show the entire table footer in the HTML client.
@TSHBColumn headings- Show the row containing the column labels.
@TSLSSave layout- Show the option to save a customized column layout.
@TSMCMove columns- Allow users to drag columns into a different order.
@TSPOPaging option- Show the paging toggle in the footer.
@TSRNRow numbers- Show row numbers in the HTML client.
@TSTRReset layout- Show Reset to Default, which discards the current or saved column layout and restores the default.
@TSTRFRefresh table- Show the option to refresh the table.
@TSTSSearch table- Show the option to search the table.
Table columns
Set a column macro on the individual column. Resizing, sorting and searching are enabled by default.
@TCRResize this column- Use
@TCR=Fto keep this column at a fixed width. @TCSSort this column- Use
@TCS=Fto prevent sorting by this column. @TCSESearch this column- Use
@TCSE=Fto exclude this column from a table search. @TCSTSort type- Set
INT,FLOAT,DATEorTEXT. For a whole-number column, use@TCST=INT.
Color and opacity
Enter #RRGGBBAA in a color macro. The first six digits set red, green and blue. The last two set opacity. For example, @SFC=#005872A4 sets the enabled foreground.
@SFC@SEFCEnabled foreground- Text or foreground color of an enabled widget.
@SBC@SEBCEnabled background- Background color of an enabled widget.
@SDFCDisabled foreground- Text or foreground color of a disabled widget.
@SDBCDisabled background or border- The desktop appearance can be controlled by the operating system. This setting can color the border. The HTML client also uses it for a disabled background.
@SRFCRollover foreground- Foreground color when the pointer moves over the widget.
@SRBCRollover background- Background color when the pointer moves over the widget.
@SWBCWallpaper background- Color behind the wallpaper.
For red, #FF0000FF encodes full opacity, #FF000080 about half opacity and #FF000000 zero opacity. Older APPX documentation also calls #FF000001 solid red in the context of the WIDGET file's COLOR NL field. The desktop and HTML macro parsers can read a literal 01 as 1/255 opacity. Use FF for solid red and check the result on the target client.