Print Page | Close Window

[BUG] Font assignment ignored in 18.3

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=23577
Printed Date: 26 April 2024 at 11:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [BUG] Font assignment ignored in 18.3
Posted By: TomasS
Subject: [BUG] Font assignment ignored in 18.3
Date Posted: 19 February 2018 at 10:25am
In 17.3 I was able to assign font.name and font.size for comboboxes and listview. Those now fail. Setting it in the IDE seems to work, but doing it from code fails.
It works fine for other controls like the pushbutton.


-------------
Xtreme SuitePro (ActiveX) version 17.3.0, 16.3.1
Windows 10 64-bit
Visual Basic 6.0



Replies:
Posted By: astoyan
Date Posted: 20 February 2018 at 10:19am
Please try this code (approach) which definitely works in 18.3, I have tested:

  Dim newFont As StdFont
  Set newFont = New StdFont

  With newFont
    .Bold = True
    .Italic = True
    .Name = "Tahoma"
    .Size = "14"
    .Underline = True
    .Strikethrough = False
   End With

  Set TabControl1.Font = newFont

Regards,
  Alexander



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