![]() |
ToolBar Icon Size |
Post Reply ![]() |
Author | |
WaleedSeada ![]() Groupie ![]() ![]() Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Baldur ![]() Senior Member ![]() Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
![]() ![]() ![]() ![]() ![]() |
The best way is to create icons for each size with the same Id's.
|
|
![]() |
|
WaleedSeada ![]() Groupie ![]() ![]() Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |