I have created a weather widget, which uses the
component "
Memo".
In my script I'm filtering scraped data (from a weather-warnings webpage) and fill my "MemoMsg.Text" with it.
Everything is working fine, but XWidget is breaking the words apart - instead of breaking it before.
Example:This is a weather warning for reg
ion xy, last update on 1. Novemb
er 2013 ...Shouldn't break a "
word-wrap" the lines
before/after a word

(attributes "WordWrap" and "Readonly" are set to "True" for that control - in the GUI and in the code too)
And I am facing another little problem using
DateTimeCore.
I put a code like the following in my script
and set
Refresh Intervall > 1950 ms - in fact I use "1 Minute" (=60000 ms):
Code:
var cr_time;
cr_time = datetimecore1.Get("${Time}");
print("cr_time: >" + cr_time + "<");
Nearly everytime I'm getting an empty value for
cr_time when I start the widget (but not always!). Why - anything wrong with it?
This kind of code is used for deciding which background to show (calculating/comparing it with sunrise/sunset of AccWeatherCore -> day/night).
In my thoughts
DateTimeCore gets initialized at startup (keeps its records) and refreshes its data (after the intervall timer) but maybe that is a misunderstanding
(at least something seems to change if Intervall is set to "1951 ms" or more).
Kind regards