Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Two image problems with CommandBars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Two image problems with CommandBars

 Post Reply Post Reply
Author
Message
d_r_smith View Drop Down
Newbie
Newbie


Joined: 16 November 2007
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote d_r_smith Quote  Post ReplyReply Direct Link To This Post Topic: Two image problems with CommandBars
    Posted: 21 November 2007 at 6:17pm

 I have two problems with specifying the icons for my toolbar buttons:

1.  I cannot get the ImageManager's design-time button editor (the tool to draw icons and load them from BMP) to import a bitmap.
At design time, I bring up the Properties dialog,
I select the ID in the Icons list at the left,
I select the "Normal" icon in the list at the right,
then I choose Import and Export > Import from Bitmap.
In the Open dialog I choose my BMP file.
The bitmap  (16 x 16) shows up in an Import dialog, and the preview looks correct.  So from that dialog I click the Import button.

And then......  nothing happens. The image was not actually imported.  Back on the Properties dialog, I still see the default red circle-with-bar.
There is no error message; the import just didn't change anything. 

Is this a known problem?  Is there a known fix?   


2.  Through code I'm able to load bitmaps that I can use as button icons.  But, if I choose a size other than 16 x 16, then at runtime the image is squished (to fit in a 16 x 16 box, I'm guessing), and because of the squishing, the icon looks terrible.  
     I need to be able to support 18 x 16 icons,  for backwards compatibility reasons, and I can't edit the icons myself as some are in third-party libraries that I don't even have access to; so, I need to be able to load 18 x 16 icons.
     Does the product support that?  Is there some property I can set to tell the CommandBars to use an image size other than 16 x 16 ? 


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: 23 November 2007 at 1:47am
1. You must first add button with some id, and select this id in import dialog.
 
2, call CommandBars.Option.SetIconsIze
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.031 seconds.