It is currently September 18th, 2019, 12:07 am

Meter hiding when other one is active

Help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 8620
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Meter hiding when other one is active

balala » September 1st, 2019, 3:01 pm

mak_kawa wrote:
August 31st, 2019, 9:41 pm
Add [!SetOption Box Text "Search..."][!UpdateMeter Box] to the end of the Command1= line of [SearchButtoInput] measure.
And, add OnDismissAction=[!SetOption Box Text "Search..."] to [SearchButtoInput].
Also, remove LeftMouseDownAction=!HideMeter "Box" from [SearchButtoInput]

Further, modify the LeftMouseUpAction= line in [Box] meter to LeftMouseUpAction=[!CommandMeasure SearchButtonInput "ExecuteBatch 1"][!SetOption Box Text ""][!UpdateMeter Box].
Related to the proposed bangs, note that adding a !UpdateMeter bang without a !Redraw is completely useless, because even if you update a meter (in this case the Box meter) you can't see the result unless the skin is redrawn. This to happen, you have to add a !Redraw bang as well, beside the !UpdateMeter. If you don't add it, the result of the update is visible only after the next update cycle of the skin, when a redrawn is anyway done.
mak_kawa
Posts: 242
Joined: December 30th, 2015, 9:47 am

Re: Meter hiding when other one is active

mak_kawa » September 1st, 2019, 7:45 pm

Thanks balala for kind guidance. I am a sort of birdbrained...
User avatar
balala
Rainmeter Sage
Posts: 8620
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Meter hiding when other one is active

balala » September 1st, 2019, 8:24 pm

mak_kawa wrote:
September 1st, 2019, 7:45 pm
I am a sort of birdbrained...
No, you are not. Probably what have I described is not obvious, at least not from the beginning.