Print Page | Close Window

Missing CommandBar Icons (Solved)

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


Topic: Missing CommandBar Icons (Solved)
Posted By: meaningoflights
Subject: Missing CommandBar Icons (Solved)
Date 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 - https://forum.codejock.com/forum_posts.asp?TID=10983


-------------
Jeremy Thompson (MCSD)



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



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