AdvancedHMI Software
General Category => Support Questions => Topic started by: Jaguar on July 01, 2022, 09:24:12 AM
-
I am using the default keypad to enter value in digital panel meter. Want to enter negative value. Noticed that the keypad does not have any button for negative sign.
Would appreciate your help or input!
-
Hint: Keypad min value
-
I did that in properties of Digital panel meter, KeypadMinValue set to -50. That did not work.
Then went to Control folder and located the vb code of digital panel meter. Found this code,
Region "Keypad popup for data entry"
Private KeypadPopUp As MfgControl.AdvancedHMI.Controls.Keypad"
Could not find any vb code of keypad separately. I stopped there.
-
What version are you using?
Worked for me with v399yBeta38.
-
This is the version I see AdvancedHMIv399xR1
-
You are brave enough to try the latest version, right?
-
I can do that. Meanwhile, I searched the forum and found that Godra one time responded to similar question by others. Here what he wrote,
"Some controls might still be using that old keypad.
If you edit the code of the control then you can find the section where the "Keypad" is declared and just change it to "KeypadV2", save it and rebuild the solution. This KeypadV2 looks different than the one in your picture.
If it still doesn't allow you to enter negative numbers then try setting its KeypadMinValue and KeypadMaxValue properties."
I went to to DigitalPanelMeter.vb and changed Private KeypadPopUp As MfgControl.AdvancedHMI.Controls.Keypad to keypadV2. Got build error. I think I did not understand what Godra meant.
-
Godra may have fallen victim to Covid-19, RIP brother.
-
Thank you bachphi.
Build errors are probably caused by the fact that Jaguar is still using v399xR1.
In this case then try to compare the code of the existing controls that might have a different keypad.
-
Hey look, I brought back Godra. I am glad you are still around!!!
-
Jaguar,
just to make your work easier, you need to rely on Intellisense to show you what controls are available in the solution you are using - this normally pops up as soon as you would start deleting characters from the end of the line and get to the matching substrings.
Look up Intellisense on Google if you are not sure what it does.
Another thing you should do is work with a copy of your solution and once you know that changes might be working properly then apply them to the original solution.
-
I will call this "the secrets of bachphi" where powerful spell was cast to bring back the undead.
-
I downloaded, AdvancedHMIv399yBeta38. Noticed that in the toolbox, AdvancedHMIControls Components, where Digital Panel meters etc. are there, is missing. Should I have to add them?
-
Never mind. Found them :)