Print Page | Close Window

[solved] GetIconsize???

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=23433
Printed Date: 24 November 2024 at 9:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] GetIconsize???
Posted By: TomasS
Subject: [solved] GetIconsize???
Date Posted: 30 August 2017 at 9:48am
I know the SetIconsize function. But what if you want to find out what icon size commandbars currently uses? I find no GetIconsize. How can I do this?
Using 17.3 atm.



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



Replies:
Posted By: olebed
Date Posted: 01 October 2017 at 5:53pm
Hello TomasS,

Thank you for bringing this to our attention. I have investigated this and didn't find any possibilities to get these values. So I have added getters for IconSize to CommandBar and  Options.

    ToolBar.SetIconSize 13, 12
    
    Dim xx As Long, yy As Long
    xx = ToolBar.GetIconWidth
    yy = ToolBar.GetIconHeight
        
    ToolBar.CommandBars.Options.SetIconSize True, 66, 66
    xx = ToolBar.CommandBars.Options.GetIconWidth(True)
    yy = ToolBar.CommandBars.Options.GetIconHeight(True)
        
    ToolBar.CommandBars.Options.SetIconSize False, 44, 44
    xx = ToolBar.CommandBars.Options.GetIconWidth(False)
    yy = ToolBar.CommandBars.Options.GetIconHeight(False)

    ToolBar.CommandBars.Options.SetPopupIconSize 77, 77
    xx = ToolBar.CommandBars.Options.GetPopupIconWidth
    yy = ToolBar.CommandBars.Options.GetPopupIconHeight

Regards,
 Oleksandr Lebed


Posted By: TomasS
Date Posted: 02 October 2017 at 3:31am
Thanks. I hope to see this in a version soon together with scrollbars submitting to theme for PropertyGrid and other controls. :-)



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



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