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

Help: Rainmeter Skins • Re: SideBar Hide & position

$
0
0
I did what you suggested Balala.... the problem where the Menus interfere each other is solved... further examination on the code lines you suggested to add, it made me realize is like a toggle switch functioning, it can't be "On' in both positions... one side should be "Off" while the other one is "On"...
while doing that it occurred to me to change the way to access the sub menus... so I replaced the LeftMouseUpAction for a MouseOverAction... trying to make it look more like a Context Menus Style...
However, the OnUnFocusAction got messed up somehow... now while clicking outside the Skin won't reset the Menu Elements and make them disappear...
Can you take a look ...? Please...?
The elements of the skin are not behaving like a context menu in my opinion. Leaving the skin closes all open menus. This is more than annoying, at least for me. Windows context menus definitely don't work this way either. This is what you were talking about when said "the OnUnFocusAction got messed up somehow"?
In my opinion the best approach is still the one got by adding the previously suggested things, to your last skin. By this, you get the following code:

Code:

[Rainmeter]Update=-1OnUnfocusAction=[!SetVariable OpenMenu "0"][!UpdateMeasure "MeasureOpenMenu"][!UpdateMeter "MeterMenu"][!SetVariable OpenMenu1 "0"][!UpdateMeasure "MeasureOpenMenu1"][!UpdateMeter "MeterMenu1"][Variables]OpenMenu=0OpenMenu1=0[MeasureOpenMenu]Measure=CalcFormula=#OpenMenu#IfCondition=(#CURRENTSECTION#=0)IfTrueAction=[!HideMeterGroup "Menu"][!Redraw]IfFalseAction=[!ShowMeterGroup "Menu"][!Redraw]DynamicVariables=1[MeterMenu]Meter=STRINGX=0Y=0Padding=15,5,15,5FontColor=220,220,220FontEffectColor=0,0,0StringEffect=ShadowSolidColor=0,0,0,150FontSize=8FontFace=Segoe UIStringStyle=BOLDStringAlign=LEFTAntiAlias=1Text=Menu1DynamicVariables=1LeftMouseUpAction=[!SetVariable OpenMenu "(1-#OpenMenu#)"][!SetVariable OpenMenu1 "0"][!UpdateMeasure "MeasureOpenMenu"][!UpdateMeasure "MeasureOpenMenu1"][!UpdateMeter #CURRENTSECTION#][MeterMenuElement1]Meter=STRINGX=70Y=0Padding=15,5,15,5FontColor=220,220,220FontEffectColor=0,0,0StringEffect=ShadowSolidColor=0,0,0,150FontSize=8FontFace=Segoe UIStringStyle=BOLDStringAlign=LEFTAntiAlias=1Text=NotepadGroup=MenuLeftMouseUpAction=[!SetVariable OpenMenu "0"]["Notepad.exe"][!UpdateMeasure "MeasureOpenMenu"][!UpdateMeter "MeterMenu"][MeterMenuElement2]Meter=STRINGX=0rY=1RPadding=15,5,15,5FontColor=220,220,220FontEffectColor=0,0,0StringEffect=ShadowSolidColor=0,0,0,150FontSize=8FontFace=Segoe UIStringStyle=BOLDStringAlign=LEFTAntiAlias=1Text=CommandlineGroup=MenuLeftMouseUpAction=[!SetVariable OpenMenu "0"]["cmd.exe"][!UpdateMeasure "MeasureOpenMenu"][!UpdateMeter "MeterMenu"][MeterMenuElement3]Meter=STRINGX=0rY=1RPadding=15,5,15,5FontColor=220,220,220FontEffectColor=0,0,0StringEffect=ShadowSolidColor=0,0,0,150FontSize=8FontFace=Segoe UIStringStyle=BOLDStringAlign=LEFTAntiAlias=1Text=MiscellaneousGroup=MenuLeftMouseUpAction=[!SetVariable OpenMenu "0"]["\\WDMYCLOUD\Public\Back up\Miscellaneous"][!UpdateMeasure "MeasureOpenMenu"][!UpdateMeter "MeterMenu"][MeterMenuElement4]Meter=STRINGX=0rY=1RPadding=15,5,15,5FontColor=220,220,220FontEffectColor=0,0,0StringEffect=ShadowSolidColor=0,0,0,150FontSize=8FontFace=Segoe UIStringStyle=BOLDStringAlign=LEFTAntiAlias=1Text=AdcomGroup=MenuLeftMouseUpAction=[!SetVariable OpenMenu "0"]["\\WDMYCLOUD\Public\Back up\Adcom"][!UpdateMeasure "MeasureOpenMenu"][!UpdateMeter "MeterMenu"]--------------------------------------------------------------[MeasureOpenMenu1]Measure=CalcFormula=#OpenMenu1#IfCondition=(#CURRENTSECTION#=0)IfTrueAction=[!HideMeterGroup "Menu1"][!Redraw]IfFalseAction=[!ShowMeterGroup "Menu1"][!Redraw]DynamicVariables=1[MeterMenu1]Meter=STRINGX=0Y=30Padding=15,5,15,5FontColor=220,220,220FontEffectColor=0,0,0StringEffect=ShadowSolidColor=0,0,0,150FontSize=8FontFace=Segoe UIStringStyle=BOLDStringAlign=LEFTAntiAlias=1Text=Menu2DynamicVariables=1LeftMouseUpAction=[!SetVariable OpenMenu1 "(1-#OpenMenu1#)"][!SetVariable OpenMenu "0"][!UpdateMeasure "MeasureOpenMenu"][!UpdateMeasure "MeasureOpenMenu1"][!UpdateMeter #CURRENTSECTION#][MeterMenu1Element1]Meter=STRINGX=70Y=30Padding=15,5,15,5FontColor=220,220,220FontEffectColor=0,0,0StringEffect=ShadowSolidColor=0,0,0,150FontSize=8FontFace=Segoe UIStringStyle=BOLDStringAlign=LEFTAntiAlias=1Text=My DocumentsGroup=Menu1LeftMouseUpAction=[!SetVariable OpenMenu "1"][Shell:::{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}][!UpdateMeasure "MeasureOpenMenu1"][!UpdateMeter "MeterMenu1"][MeterMenu1Element2]Meter=STRINGX=0rY=1RPadding=15,5,15,5FontColor=220,220,220FontEffectColor=0,0,0StringEffect=ShadowSolidColor=0,0,0,150FontSize=8FontFace=Segoe UIStringStyle=BOLDStringAlign=LEFTAntiAlias=1Text=UPS WorldwideGroup=Menu1LeftMouseUpAction=[!SetVariable OpenMenu "1"]["https://www.ups.com/ship/guided/origin?tx=91823594772879941&loc=en_US"][!UpdateMeasure "MeasureOpenMenu1"][!UpdateMeter "MeterMenu1"]

Statistics: Posted by balala — 55 minutes ago



Viewing all articles
Browse latest Browse all 1134

Trending Articles