Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - [solved] GetIconsize???
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] GetIconsize???

 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: [solved] GetIconsize???
    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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
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 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
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.156 seconds.