2022-08-10 08:19 PM
Hi,
For example, I create 2 widgets (button and box), the box in top and button in bottom.
I need to change their position like picture 2, how can I do except delete and rebuild to changed their order ?
Solved! Go to Solution.
2022-08-15 02:55 AM
Hello,
Unfortunately this function is not implemented in the API.
But, there is a little work-around you can use if you want to do that :
The code could look like that :
void Screen1View::changeWidgetPosition()
{
remove(box1);
insert(&button1, box1); // insert the box below the button
}
/Yoann
2022-08-12 12:53 AM
Hello @V.H ,
In the Screens menu, you can simply right click on the widget you want to put on foreground, and then select the "Move Up" option :
Please not that you can also do the same with background, if you select "Move Down".
Hope that this answers the question,
/Yoann
2022-08-12 01:12 AM
Thanks for your reply.
Does the API have this function? I want to do this movement in the firmware.
2022-08-15 02:55 AM
Hello,
Unfortunately this function is not implemented in the API.
But, there is a little work-around you can use if you want to do that :
The code could look like that :
void Screen1View::changeWidgetPosition()
{
remove(box1);
insert(&button1, box1); // insert the box below the button
}
/Yoann