Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Task Panel
  New Posts New Posts RSS Feed - how to change font of items
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to change font of items

 Post Reply Post Reply
Author
Message
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Topic: how to change font of items
    Posted: 13 August 2006 at 1:06pm
How is it possible in vb6 to change the font name and size of taskpanel items ? Trying it through design time proprties results in an error and I donīt know how to do it with code ...
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2006 at 8:16am
It is possible using TaskPanel.ItemsFont.  For example:

    Dim x As New StdFont
    x.Size = 16
    x.Name = "Arial"
   
    Set wndTaskPanel.ItemsFont = x
Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2006 at 8:27am

Iīve put that code in my Form_Load event but the font and size doesnīt change !?

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2006 at 8:35am
Maybe you change the theme afterwards?

In our taskpanel sample I just put that code at the end of form load and it works.
Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2006 at 8:56am
Yep, I changed theme ! Putting code after the theme change works !!!
Thanks a lot
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.219 seconds.