Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 923

General Discussion • Checkmarks in Context Menu

$
0
0
Well, I misspoke again :oops:

Context items can be dynamically changed and I have done it in the past (and forgot that it did not require a [!Refresh] :Whistle )

Here a simple example changing just one item in the Context menu.

Code:

ContextTitle=Toggle ACCESS SettingsContextAction=[!ToggleConfig "#RootConfig#\Settings" "settings.ini"]ContextTitle2=---ContextAction2=[]ContextTitle3=[\x25cb] TooltipsContextAction3=[!WriteKeyValue Variables HideTips (1-#HideTips#) "#@#variables1.inc"][!RefreshGroup "#RootConfig#"]; Set Context menu radio buttons for text styles; =================================[mContextStyle]Measure=CalcFormula=1IfCondition=(#HideTips#=1)IfTrueAction=[!SetOption Rainmeter ContextTitle3 "[\x25cb] Tooltips"]IfFalseAction=[!SetOption Rainmeter ContextTitle3 "[\x25c9] Tooltips"]
It requires a measure and uses IfCondition or IfMatch tests and updates the value of a ContextTitle with special characters.

Statistics: Posted by eclectic-tech — Today, 7:56 pm — Replies 5 — Views 111



Viewing all articles
Browse latest Browse all 923

Trending Articles