Reset NumUpDown button to default

Support forum for MegunoLink
Post Reply
zwolf
Posts: 1
Joined: Mon Aug 08, 2016 4:11 pm

Mon Aug 08, 2016 4:18 pm

Hello,

I'm controlling a gizmo with arduino and used megunolink to make a gui. There are two delay values that I use to change the frequency at which the gizmo moves.
interface1.PNG
interface1.PNG (4.08 KiB) Viewed 5402 times
The numupdown boxes are set such that the values don't change until I hit the Set Delays button (so I get both at once). The Reset button sets the Delay1 and Delay2 values both back to 1000. However, I want this change reflected in the numupdown boxes, as well. If I change them both to 2000, for example, and then hit Reset, the values in the box stay at 2000. Can I augment the Reset command to change the numupdown values?

Thank you,
Z
philr
Posts: 446
Joined: Mon May 26, 2014 10:58 am

Sun Aug 14, 2016 7:26 am

Hi Z, unfortunately not. Best thing to do would be to get your microcontroller to reply to MegunoLink with the updated values and MegunoLink and process these to change the numbers back.

This would be similar to our example where the Arduino updates the text box.
https://github.com/Megunolink/MLP/tree/ ... /SendToMLP

Don't forget to add the MLPUIMessageProcessor found in the same list as text boxes etc. This is needed to receive the commands and adjust the interface.
http://www.megunolink.com/documentation ... ace-panel/

Cheers
Phil
Post Reply