Logic Machine Forum
Widget - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Widget (/showthread.php?tid=994)



Widget - jmir - 15.09.2017

Hi,
I've two questions about widgets:

1.- Is it possible to fix the position where a widget is opened?

2.- I've a widget that contains a date object inside, when I edit it and I close the edit menu, the widget is closed too.
I'd like to mantain the widget opened. Is it possible?

Thanks.


RE: Widget - admin - 15.09.2017

1. There's "Widget position" option in widget properties

2. This is probably a bug, we'll fix it in the next version


RE: Widget - jmir - 18.09.2017

Ok thanks!

And is there any way to hide de seconds part on a time object?


RE: Widget - admin - 18.09.2017

You can create a text object and uses it as status object. Then create an event script on the main object which formats value as needed and writes to the text object. This will convert time/day to HH:MM format:
Code:
value = event.getvalue()
text = string.format('%02d:%02d', value.hour, value.minute)
grp.update('32/1/4', text)



RE: Widget - jmir - 25.09.2017

(18.09.2017, 06:21)admin Wrote: You can create a text object and uses it as status object. Then create an event script on the main object which formats value as needed and writes to the text object. This will convert time/day to HH:MM format:
Code:
value = event.getvalue()
text = string.format('%02d:%02d', value.hour, value.minute)
grp.update('32/1/4', text)

Perfect, thanks!