Print Page | Close Window

Need popup toolbar icons at 16 with parent at 24

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=13831
Printed Date: 07 October 2024 at 4:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Need popup toolbar icons at 16 with parent at 24
Posted By: strider
Subject: Need popup toolbar icons at 16 with parent at 24
Date 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



Replies:
Posted By: Oleg
Date Posted: 30 March 2009 at 1:50am
Hi,
 
Call SetIconSize for this popup.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: strider
Date 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


Posted By: Oleg
Date 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


Posted By: strider
Date 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



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