Print Page | Close Window

how to change font of items

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=4787
Printed Date: 21 November 2024 at 3:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to change font of items
Posted By: tobi
Subject: how to change font of items
Date 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 ...



Replies:
Posted By: SuperMario
Date 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


Posted By: tobi
Date 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 !?



Posted By: SuperMario
Date 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.


Posted By: tobi
Date Posted: 14 August 2006 at 8:56am
Yep, I changed theme ! Putting code after the theme change works !!!
Thanks a lot



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net