Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Missing CommandBar Icons (Solved)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Missing CommandBar Icons (Solved)

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


Joined: 27 October 2007
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote meaningoflights Quote  Post ReplyReply Direct Link To This Post Topic: Missing CommandBar Icons (Solved)
    Posted: 16 July 2008 at 10:52pm
Hi all,

This troubled me for ages and I couldn't see the solution here, so I thought I'd post my findings:

PROBLEM:
--------------
 I created a CommandBar with 5 buttons and the icons didn't show using this method:

CommandBars.Icons.LoadBitmap App.path & "\Styles\SmsSettings.png", _
 Array(ID_NewSMSAccount, ID_CheckCredits....), xtpImageNormal
 

CAUSE:
--------------
The png image was 1 pixel too skinny!!!


SOLUTION:
--------------
Make image widths exact multiples of 32pixels.



ps. I wonder if something like that is preventing a refresh as per:
BUG (Repaint/Refresh problem)
https://forum.codejock.com/forum_posts.asp?TID=10983
Jeremy Thompson (MCSD)
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: 17 July 2008 at 12:34pm
Hello,
 
Thanks for sharing.
Yes, if ImageManager can't determine Image Size it just do nothing :)
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.203 seconds.