I have a button on a toolbar set to show only icons:
Filter Bar On-Off Toggle.dcf (846 Bytes)
with this code in the button:
@label:Val("$glob:QUICK")=="on" ? "Filter Bar is OFF" : "Filter Bar is ON"
@if:$glob:QUICK
@set glob:QUICK
Set QUICKFILTER
@if:else
CLI QUICKFINDCLEAR
@sendkey:escape
@set glob:QUICK=on
@if:common
@toggle:update
It does toggle the quick filter bar on and off.
On hovering, the button displays the same text, "Filter Bar is OFF" regardless of the toggle state:
How can I get the button to display the correct state of the toggle? TIA