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

General Discussion • Re: Checkmarks in Context Menu

$
0
0

Code:

contextViewTitle1=Word WrapcontextViewAction1=[!SetVariable WrapAround ((2+[#*WrapAround*]+1)%2)][!UpdateMeasure SelectedMenus][!UpdateMeasure WrapAround][!UpdateMeter *][!Redraw][!WriteKeyValue Variables WrapAround ((2+[#*WrapAround*]+1)%2)]
Well, that works because you created a separate context menu using contextViewTitle and contextViewAction that can be updated.

ms310 is using the built-in [!SkinCustomMenu] that has ContextTitle and ContextAction which are in the [Rainmeter] section and can not be dynamically updated.

I'll wait to see what they came up with...
Yah lol, I just updated my post to mention that. I always use that technique for custom context menus, it takes advantage of the fact that menus resolve variables when they're open.

Statistics: Posted by RicardoTM — Today, 6:02 pm



Viewing all articles
Browse latest Browse all 1538

Trending Articles