Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - [BUG] Font assignment ignored in 18.3
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[BUG] Font assignment ignored in 18.3

 Post Reply Post Reply
Author
Message
TomasS View Drop Down
Groupie
Groupie
Avatar

Joined: 28 January 2009
Location: Sweden
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote TomasS Quote  Post ReplyReply Direct Link To This Post Topic: [BUG] Font assignment ignored in 18.3
    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
Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 284
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post 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
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.158 seconds.