Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Need popup toolbar icons at 16 with parent at 24
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Need popup toolbar icons at 16 with parent at 24

 Post Reply Post Reply
Author
Message
strider View Drop Down
Groupie
Groupie


Joined: 16 April 2008
Location: United States
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote strider Quote  Post ReplyReply Direct Link To This Post Topic: Need popup toolbar icons at 16 with parent at 24
    Posted: 27 March 2009 at 1:33pm
I am trying to create a primary toolbar that the user can change their icons from small to large.  This works great.  However, I have a popup toolbar on the primary bar that shows up too big when the icons are set to large (24).  So I am trying to keep the parent toolbar at large (24) and the baby popup toolbar at (16), but nothing I do changes the popup bar.
 
I have tried the following on the popup toolbar
 
SetIconSize 16, 16
SetPopupIconSize 16, 16
LargeIcons = False
 
If the parent toolbar is set to large icons (24), then the popup toolbar is always (24).
 
How do I get my popup toolbar to be small (16), and keep the parent bar large (24)?
 
ActiveX commmandbars
version 13.0.0
ActiveX 13.2.1

Strider
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2009 at 1:50am
Hi,
 
Call SetIconSize for this popup.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
strider View Drop Down
Groupie
Groupie


Joined: 16 April 2008
Location: United States
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote strider Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2009 at 4:03pm
I have tried SetIconSize on the commandbar of the popup both at startup and in the InitCommandsPopup, but it doesn't work:


This is how I am initializing the bar to begin with:

    CommandBars.Options.SetIconSize False, 16, 16
    CommandBars.Options.SetIconSize True, 24, 24
    CommandBars.Options.SetPopupIconSize 16, 16
    CommandBars.Options.LargeIcons = True


then when I create the toolbar through commands in the code, I am specifically setting the icon size for the popup:

    PopBtn.CommandBar.SetIconSize 16, 16

Then I set it again in the InitCommandsPopup event:
    
    CommandBar.SetIconSize 16, 16

I feel like I must be missing something obvious ??


ActiveX 13.0.0
ActiveX 13.2.1

Strider
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2009 at 2:41am
Hello,
 
Afraid your are right :(
SetIconSize  for popup toolbar didn't work if you switch to Large Icons. Its fixed for next release.
 
Maybe you can now change Options.LargeIcons = False and set CommandBar.SetIconSize 24,24 for your main toolbar ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
strider View Drop Down
Groupie
Groupie


Joined: 16 April 2008
Location: United States
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote strider Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2009 at 9:15am
It does work to set the iconsize without the largeicons option :)

I am not sure which way I will handle it though. We are saving the state of the toolbars. Without the largeicons option in the xml, the setting is not remembered when it is reloaded.

Activex 13.0.0
ActiveX 13.2.1

Strider
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.203 seconds.