General Category > Additional Components
New Keypad
Phrog30:
I've created a new keypad. I've debugged to the point where I think it's usable. If you have any suggestions or see any problems please let me know. I tried to keep things as consistent as the original keypad. The main differences:
1. This keypad is easily editable
2. PLC keypad min/max
3. Display min/max on keypad
4. Display current value on keypad
5. Keypad can be dragged
6. Doesn't use top most, which in my experience is a pain as it will block messages, etc
7. I think it looks better (my opinion of course)
You can download here:
https://drive.google.com/open?id=0B-5kPtgWJjV9UENLOC12VFhoUzQ
James
Archie:
Tell me if I am missing something, but it looks like you have the MinValue and MaxValue properties to allow nulls using "Decimal?", but in the load event handler you force it to a value anyway. Wouldn't it be easier to not allow nulls and set default values to Decimal.MinValue and Decimal.MaxValue
Phrog30:
I struggled with this. If just using this with a component, like AnalogValueDisplay, it wouldn't matter. But, what if someone calls this from code and forgets to set these values. I wanted a fallback. If there is a better way on that please let me know.
Archie:
I made a revised version with the ability to resize with a KeypadWidth property or when creating it new:
Dim kpd As New KeypadV2(300)
Phrog30:
Thank you sir. I look forward to seeing it.
Navigation
[0] Message Index
[#] Next page
Go to full version