by refrancoeur » Tue Jan 27, 2009 11:47 am
In testing 3.1, I found that, although font properties are now supported, they do not seem to work. Try the following jscript:
var form = SDB.UI.newForm;
var label = SDB.UI.newLabel(form);
TRACE("-Before: "+label.Common.FontBold);
label.Common.FontBold = true;
TRACE("-After: "+label.Common.FontBold);
TRACE("-Before: "+label.Common.FontSize);
label.Common.FontSize = 32;
TRACE("-After: "+label.Common.FontSize);
You should see that the assignments do not work. In 3.0 the assignments resulted in an error, in 3.1 no error occurs, but the assignments are ineffective.
Also, when I assign a hotkey to a js script, the invocation from the hotkey assumes that the script is vb and fails. The problem does not occur when invoking the script from the tools menu. This problem also existed in release 3.0.
Regards,
Dick Francoeur
In testing 3.1, I found that, although font properties are now supported, they do not seem to work. Try the following jscript:
var form = SDB.UI.newForm;
var label = SDB.UI.newLabel(form);
TRACE("-Before: "+label.Common.FontBold);
label.Common.FontBold = true;
TRACE("-After: "+label.Common.FontBold);
TRACE("-Before: "+label.Common.FontSize);
label.Common.FontSize = 32;
TRACE("-After: "+label.Common.FontSize);
You should see that the assignments do not work. In 3.0 the assignments resulted in an error, in 3.1 no error occurs, but the assignments are ineffective.
Also, when I assign a hotkey to a js script, the invocation from the hotkey assumes that the script is vb and fails. The problem does not occur when invoking the script from the tools menu. This problem also existed in release 3.0.
Regards,
Dick Francoeur