Font support in SDB.UI controls does not work BUG#5258

Beta Testing for Windows Products and plugins

Moderator: Gurus

refrancoeur
Posts: 13
Joined: Wed Oct 01, 2008 6:50 pm
Location: Washington, DC

Font support in SDB.UI controls does not work BUG#5258

Post by refrancoeur »

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
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Re: Font support in SDB.UI controls does not work

Post by Bex »

1. Can you please test it in a VBScript to see if it has the same problem?

2. Seems like a bug. I'll report it when we know how issue 1. works.
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: Font support in SDB.UI controls does not work

Post by ZvezdanD »

I could confirm this. It doesn't work with VBScript either.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Re: Font support in SDB.UI controls does not work

Post by Bex »

Thank you ZvezdanD!

Do you know if the other new Common-properties work or not?
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: Font support in SDB.UI controls does not work

Post by ZvezdanD »

What other Common properties? If you mean on another Font properties, I tried FontName, FontItalic and FontColor and they don't work either.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Re: Font support in SDB.UI controls does not work

Post by Bex »

The meant the ones that Jiri added recently:
# (diff) (hist) . . N ISDBUICommon::FontColor; 10:53 . . Jiri (Talk | contribs)
# (diff) (hist) . . N ISDBUICommon::FontSize; 10:53 . . Jiri (Talk | contribs)
# (diff) (hist) . . N ISDBUICommon::FontName; 10:52 . . Jiri (Talk | contribs)
# (diff) (hist) . . N ISDBUICommon::FontUnderline; 10:52 . . Jiri (Talk | contribs)
# (diff) (hist) . . N ISDBUICommon::FontStrikeOut; 10:51 . . Jiri (Talk | contribs)
# (diff) (hist) . . N ISDBUICommon::FontItalic; 10:51 . . Jiri (Talk | contribs)
# (diff) (hist) . . N ISDBUICommon::FontBold; 10:51 . . Jiri (Talk | contribs)

I'll add a report to Mantis!
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Re: Font support in SDB.UI controls does not work

Post by Bex »

Was it in 1218 you did the test?
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: Font support in SDB.UI controls does not work

Post by ZvezdanD »

Bex wrote:Was it in 1218 you did the test?
Yes, it is.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Re: Font support in SDB.UI controls does not work

Post by Bex »

Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
jiri
Posts: 5430
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: Font support in SDB.UI controls does not work BUG#5258

Post by jiri »

This will be fixed in the next release.

Jiri
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

1220 - FontSize still doesn't work

Post by ZvezdanD »

1220 - FontSize still doesn't work. FontName, FontBold, FontItalic, FontColor are OK.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: Font support in SDB.UI controls does not work BUG#5258

Post by ZvezdanD »

Well, mentioned properties (FontName, FontBold, FontItalic, FontColor) are OK only with the Label control. The Checkbox, Edit, Dropdown and probably all another controls still don't support those properties.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Post Reply