This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Widget
#1
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.
Reply
#2
1. There's "Widget position" option in widget properties

2. This is probably a bug, we'll fix it in the next version
Reply
#3
Ok thanks!

And is there any way to hide de seconds part on a time object?
Reply
#4
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)
Reply
#5
(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!
Reply


Forum Jump: