Print Page | Close Window

ToolBar Icon Size

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=11882
Printed Date: 16 September 2024 at 4:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ToolBar Icon Size
Posted By: WaleedSeada
Subject: ToolBar Icon Size
Date Posted: 19 August 2008 at 4:34am
Dear all,
 
I create a toolbar with default icons of 32x32 and it works fine with the toolbar buttoms when xtpButtonIconAndCaptionBelow is set, howeverwhen I change it to xtpButtonIconAndCaption the icons resize to 16x16, then I resolve this using the seticonsize() for the toolbar and it works fine, but when I increase the size to 64x64 the icons don't show correctly until I resize the form width ... even after I used the CommandBars.PaintManager.RefreshMetrics() & CommandBars.RecalcLayout()
Notice, I am loading the icons from a resource file using loadbitmapfromresource ...
 
Using Powerbuilder 10.5
Activex Suite 11.2.2
 
Regards,
 


-------------
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada



Replies:
Posted By: Baldur
Date Posted: 19 August 2008 at 5:39am
The best way is to create icons for each size with the same Id's.


Posted By: WaleedSeada
Date Posted: 24 August 2008 at 6:04am
Hello,
 
It seems that I need to create the commandbar in the Open event of the form ... that solve the issue ...
 
Thanks and best regards
 


-------------
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada



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