Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Task Panel
  New Posts New Posts RSS Feed - [BUG] TaskPanel.ItemFonts & Item.Font properties
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[BUG] TaskPanel.ItemFonts & Item.Font properties

 Post Reply Post Reply
Author
Message
gibra View Drop Down
Senior Member
Senior Member


Joined: 31 October 2008
Location: Italy
Status: Offline
Points: 288
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibra Quote  Post ReplyReply Direct Link To This Post Topic: [BUG] TaskPanel.ItemFonts & Item.Font properties
    Posted: 15 May 2011 at 10:41am
1) When a try to set the ItemFonts property from VB6IDE Properties panel
I get the error:
Invalid property value. Angry
 
2) When I set programmatically the property:
TaskPanel1.ItemsFont.Name = "Tahoma"
 
I get the error:
Run-time error '91'
Object variable or With block variable not set Angry
 
3) If I set the font for a TaskPanelItem:
Item.Font.Name = "Tahoma"
doesn't work. Angry
 
 
Therefore there is not way to set Item font!
This seem a BUG, by me. Confused
 
 
Finally, only TaskPanelGroup allows to change font properties. Smile
 
Thank.
gibra
CJ SuiteControl v: 13.x to 19.x
Windows 10 64bit
VS2019 - VB6.0 SP6
<a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2011 at 1:41am
Hello,

Font/ItemsFont property is "Nothing" by default, so you should assign some font first:

    Dim fnt As StdFont
    Set fnt = New StdFont
    fnt.Name = "Tahoma"
    fnt.Size = 12
    
    Set wndTaskPanel.ItemsFont = fnt
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
gibra View Drop Down
Senior Member
Senior Member


Joined: 31 October 2008
Location: Italy
Status: Offline
Points: 288
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibra Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2011 at 10:36am
Thank Oleg,
this work. Smile
 
Should be the time to update the help guide...? Ouch
Really isn't a very 'help guide'!
 
In this case nothing appear in the help topic about ItemsFont:
 

Description

Specifies the font used to display the text of TaskPanelGroupItems.

Property type

Read-write property

Syntax (Visual Basic)

Public Property ItemsFont() As Font

See Also

TaskPanel Control

It's impossible to learn anything, using the above istructions.
 
IMHO.
 
gibra
CJ SuiteControl v: 13.x to 19.x
Windows 10 64bit
VS2019 - VB6.0 SP6
<a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.