Icon Size |
Post Reply |
Author | |
robs
Groupie Joined: 09 November 2003 Status: Offline Points: 84 |
Post Options
Thanks(0)
Posted: 30 December 2003 at 2:22pm |
I think I narowed this down to be an issue with the resource editor in VB. Sorry, this is also a double post. When using LoadResPicture in VB, it seems to always load icons 32X32 pixels, which looks ugly on the docking panes. I've had luck resizing the icons using code such as: Private Declare Function CopyImage Lib "user32" (ByVal handle As Long, ByVal imageType As Long, ByVal newWidth As Long, ByVal newHeight As Long, ByVal lFlags As Long) As Long Private Cons IMAGE_ICON=2 Private Const LR_COPYFROMRESOURCE =3 Dim p As stdole.IPictureDisp DockingPane.AddIconHandle (l,ID) The code above will resize the icon in the resource file to 16X16.
|
|
robs
Groupie Joined: 09 November 2003 Status: Offline Points: 84 |
Post Options
Thanks(0)
|
Oleg, Dim p As IPictureDisp Dim DockingPaneAs XtremeDockingPane.pane Set DockingPane = DockingManager.CreatePane(UID, cx, cy, dockingDirection, Nothing) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
How do you load the icons?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
robs
Groupie Joined: 09 November 2003 Status: Offline Points: 84 |
Post Options
Thanks(0)
|
Docking Pane 8.6 ActiveX: I am using AddIconHandle to load an icon from a resource file. The icon is 16x16 only. The icon gets displayed as 32x32 on the pane. Any ideas?
|
|
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 |