Page 1 of 2

App developer more Button

Posted: Fri Jan 22, 2021 5:04 pm
by stefan.erni
Hi Ben

It's working very nice with the App developer and the keyboard button.
KB-2021-01-22_17-21-07.png
KB-2021-01-22_17-21-07.png (4.86 KiB) Viewed 12486 times

Is it possible to add more button components for the App developer like the switch component, but just as a press Button pressed by the mouse?
The text and color should be able to be changed while running.
Show/hide should be able to be changed while running.

And a button can press an another button, if I press End App Dev it's press Stop Motor.

ESC 2021-01-22_17-57-40.png
ESC 2021-01-22_17-57-40.png (8.89 KiB) Viewed 12486 times


At the moment if I stop the App developer with this Stop Button, the App end right away. Its is not really good when I do a Tesla control

regards

Stefan
Stop-2021-01-22_17-40-45.png
Stop-2021-01-22_17-40-45.png (20.03 KiB) Viewed 12486 times

Re: App developer more Button

Posted: Fri Jan 22, 2021 9:46 pm
by medelec35
Hi Stefan,
stefan.erni wrote:
Fri Jan 22, 2021 5:04 pm
Is it possible to add more button components for the App developer like the switch component, but just as a press Button pressed by the mouse?
Take a look at this App.
It uses switches you can press with the mouse.
They can be set up to change text with pressed etc

Re: App developer more Button

Posted: Mon Jan 25, 2021 9:54 am
by stefan.erni
Hi Martin

Thanks Martin, I saw how you did it. If the switch is longer than high, there is a usable picture.
Also, I don't have to move the switch with the mouse, just click with the mouse. This info is already a great help.
But if this switch should be square, I think there is something wrong.
A (push) button for my application would be even better than a switch

regards

Stefan

Re: App developer more Button

Posted: Tue Jan 26, 2021 10:47 am
by stefan.erni
Hi Martin

Such a push button was already available in the FC8 SCADA.
But I can't find it anymore

regards

Stefan
Pushbutton_2021-01-26_11-32-23.png
Pushbutton_2021-01-26_11-32-23.png (95.29 KiB) Viewed 12430 times

Re: App developer more Button

Posted: Tue Jan 26, 2021 12:08 pm
by Steve-Matrix
A lot of components are hidden, but they are usually still available. Try looking for them in the component search window.

Re: App developer more Button

Posted: Tue Jan 26, 2021 12:28 pm
by BenR
At the moment if I stop the App developer with this Stop Button, the App end right away. Its is not really good when I do a Tesla control
If you need to gracefully do something like flush and close comms then this is possible by enabling the Simulation Stop Event and assigning a new macro to it. This macro should then run and allow you to do any last second things before the app stops.
SimStop.jpg
SimStop.jpg (22.46 KiB) Viewed 12425 times

Re: App developer more Button

Posted: Tue Jan 26, 2021 1:48 pm
by stefan.erni
Hi Steve
This push button is hidding very good. I can't found it.

Hi Ben

Yes that a what I'm looking for.

I did it but it's give a problem with incompatible macro.

regards

Stefan
Macro_2021-01-26_14-41-30.png
Macro_2021-01-26_14-41-30.png (20.89 KiB) Viewed 12417 times

Re: App developer more Button

Posted: Tue Jan 26, 2021 2:09 pm
by Steve-Matrix
stefan.erni wrote:
Tue Jan 26, 2021 1:48 pm
This push button is hidding very good. I can't found it.
Sorry - you are correct. I thought all components were available (but hidden). Unfortunately, only some exist for App Developer.

I will discuss here at Matrix to see how easy it is to make them available.

Re: App developer more Button

Posted: Tue Jan 26, 2021 3:02 pm
by stefan.erni
Hi Steve

Thank you.

Hi Ben

There was just a problem with the return variable missing. Now it's working perfect.
If I press the stop debug it's send lastly a stop at the machine.

regards

Stefan
Cancel_2021-01-26_15-53-28.png
Cancel_2021-01-26_15-53-28.png (24.71 KiB) Viewed 12409 times
Stop_2021-01-26_15-57-17.png
Stop_2021-01-26_15-57-17.png (17.04 KiB) Viewed 12409 times

Re: App developer more Button

Posted: Tue Jan 26, 2021 3:03 pm
by BenR
Thanks for letting us know,

The missing switches should be there now, though still hidden they should now be available via search.

Also not sure if this is of interest but I made a quick demo for making your own switch with images on here.

https://matrixtsl.com/mmforums/viewtopi ... 44#p104744