It is currently April 26th, 2024, 8:08 am

[Bug] You can't type minus when DefaultValue and InputNumber are set

Report bugs with the Rainmeter application and suggest features.
User avatar
Jeff
Posts: 332
Joined: September 3rd, 2018, 11:18 am

[Bug] You can't type minus when DefaultValue and InputNumber are set

Post by Jeff »

Code: Select all

[InputTest]
Measure=Plugin
Plugin=InputText
InputNumber=1
DefaultValue="hello there, how are you"
H=100
W=100

[SweetImage]
Meter=Image
SolidColor=44,00,255,122
H=100
W=100
LeftMouseUpAction=!CommandMeasure InputTest "ExecuteBatch ALL"
Last edited by Jeff on May 25th, 2021, 12:24 pm, edited 1 time in total.
User avatar
Jeff
Posts: 332
Joined: September 3rd, 2018, 11:18 am

Re: [Bug] You can't type minus when DefaultValue and InputNumber are set

Post by Jeff »

I wanted to be smug and leave only the code block, but I feel like an explanation is needed, If I wanna change the angle of a visualizer to either 30 or -45, I can't do the latter, so don't come to me recommending Neg(X) unless you want your code blocks cut off
User avatar
jsmorley
Developer
Posts: 22630
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Bug] You can't type minus when DefaultValue and InputNumber are set

Post by jsmorley »

Yeah, the API doesn't recognize - as a number.
User avatar
Jeff
Posts: 332
Joined: September 3rd, 2018, 11:18 am

Re: [Bug] You can't type minus when DefaultValue and InputNumber are set

Post by Jeff »

Well, typing -45 without DefaultValue works, it only fails to put the minus when there's already a string DefaultValue. Negative numbers are allowed, it just isn't able to put that minus when there's something there in place. I think you already got the idea though :V
Maybe this is the place with the problem?
User avatar
Brian
Developer
Posts: 2684
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: [Bug] You can't type minus when DefaultValue and InputNumber are set

Post by Brian »

This should be fixed as the next beta. Thanks for reporting!

-Brian