
Pro-Gramer (Customer) asked a question.
Hello,
For my HMI application, I really needed a ComboBox / Dropdown to let the user select from a list of predefined items. Since this feature does not exist in the HMI, I searched this forum and came across Garry's solution.
But it that was not exactly what I wanted.
So here's my version/workaround of the drop-down/Combobox:
The user will press on the rounded button in the Edit column and the button will advance through the choices.
How it's done is through trickery:
An Increment/Decrement button is hidden behind a Multi-state text indicator.
Each time the button is pressed, the text will change. It will also go back to the first text, thanks to the roll-over capability of the button.
The end result: The value of the tag ParamEdit1 will contain a value from 0 to 4 (in this example).
In my application, I show an orange rectangle beside the button to show this value is different than the actual value in the PLC. The user need to press a Save/write button to accept the change.
So this is my contribution to this forum as a thanks for all the answers to my questions.
Of course the C-More HMI software would greatly benefit from having this feature built-in ;)
Hi @Pro-Gramer (Customer)
This looks good. Here is how I did the dropdown menu.
https://accautomation.ca/c-more-drop-down-menu-create-all-models/
Video:
https://youtu.be/H7qonInXE6Y
Regards,
Garry
https://accautomation.ca/series/c-more-hmi-series-panel/
https://accautomation.ca/series/c-more-micro-hmi/
I love the trickery, I really like making up the trickery, but, alas, I find it necessary to whittle down the trickery to the bare minimum to get the job done.
It is a balance between what it takes to make it work and what it takes to debug the trickery next week.
Sure, I'm with you on this.
I think this is an example of a trick that is fairly simple...