Multiple interface panels

A place to report bugs you find in Builder and Megunolink.
Post Reply
stevewidg
Posts: 3
Joined: Tue Mar 02, 2021 2:55 pm

Fri May 05, 2023 7:01 pm

Hi
Im not sure if this is a bug, or me.
I have 2 interface panels, one of which I have renamed "Setup" and the other "Display" and I want to select which one to send data to .
It worked fine when I only had the one interface.
So I set up
InterfacePanel SetPan("Setup");
SetPan.SetText(F("CH1_Val"), ReadValue[0]);

and the monitor shows
{UI:Setup|SET|CH1_Val.Text=2451}

But Panel does not update. Both channels share the same source (serial 0) and port, but even so at the moment I'm just trying to get one working
Everything compiled without error. I even saved the file and closed it down to see if that made a difference.

A small note on this, the sample code does not change if you rename the interface ( I assume all I have to do to rename is right-click in the Interface tab)
void SendToCH1_Val()
{
InterfacePanel MyPanel; // Not Setup or Display or renamed name
// Set control content
MyPanel.SetText(F("CH1_Val"), "Hello");

Many thanks,

Steve
philr
Posts: 446
Joined: Mon May 26, 2014 10:58 am

Thu May 11, 2023 7:58 am

Hi try adding a MLPUIMessageProcessor to each interface and naming the channel as you describe. See image below
Screenshot 2023-05-11 195709.png
Screenshot 2023-05-11 195709.png (211.2 KiB) Viewed 7678 times
Post Reply