Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - ToolBar Icon Size
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ToolBar Icon Size

 Post Reply Post Reply
Author
Message
WaleedSeada View Drop Down
Groupie
Groupie
Avatar

Joined: 29 March 2007
Location: Egypt
Status: Offline
Points: 88
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaleedSeada Quote  Post ReplyReply Direct Link To This Post Topic: ToolBar Icon Size
    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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2008 at 5:39am
The best way is to create icons for each size with the same Id's.
Back to Top
WaleedSeada View Drop Down
Groupie
Groupie
Avatar

Joined: 29 March 2007
Location: Egypt
Status: Offline
Points: 88
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaleedSeada Quote  Post ReplyReply Direct Link To This Post 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
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.242 seconds.