FontBold = False does not work

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

Andreas Weichert
Posts: 57
Joined: Fri Apr 05, 2013 4:51 am
Contact:

FontBold = False does not work

Post by Andreas Weichert » Mon Apr 29, 2013 6:08 am

I make my first expriement with MM script and created an additional panel

Code: Select all

Dim SDB: Set SDB = CreateObject("SongsDB.SDBApplication")
Set UI = SDB.UI 
Set Pnl = UI.NewDockablePersistentPanel("AWSelectionPanel") 
if Pnl.IsNew then 
	Pnl.DockedTo = 2 
	Pnl.Common.Width = 250 
End If 
Pnl.Caption = "Selection" 
Set FNLbl = UI.NewLabel(Pnl) 
FNLbl.Autosize = True 
FNLbl.Multiline = False 
FNLbl.Caption = "???" 

FNLbl.Common.FontBold = vbTrue            ' creates a bold font   Ok
FNLbl.Common.FontBold = vbFalse         ' creates a bold font too           ??????????? 
It seems that I get a none-bold font only if I write no code to set the font.

Whats the problem ????
Last edited by Lowlander on Mon Apr 29, 2013 10:34 am, edited 1 time in total.
Reason: Moved to correct forum
My Scripts
Take a look on my Android app Time Sheriff – the extensive all-in-one timer/reminder.