Using ImageManager with taskDialog? |
Post Reply |
Author | |
Muricy
Newbie Joined: 25 June 2010 Location: Brazil Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 25 June 2010 at 6:50pm |
How can I use imagemanager with TaskDialog to display images on FooterIcon and MainIcon?
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
You only are able to change MainIcon. If you want to use ImageManager Icons you have to get the handle of the icon and since entire Icons collection have same .Handle you have to extract Icon from ImageManager itself in for example a PictureBox and retrieve handle from PictureBox.Picture. If you are going to use a Picturebox you aren't able to use Alpha images.
With Me.TaskDialog1
Dim stdPic As StdPicture Set stdPic = ImageManager.Icons.GetImage(100, 16).CreatePicture(xtpImageNormal) .MainIconHandle = stdPic.Handle End With
A while ago I asked Oleg why I couldn't extract icon like this:
With Me.TaskDialog1
Dim stdPic As Object Set stdPic = ImageManager.Icons.GetImage(100, 16).CreatePicture(xtpImageNormal) .MainIconHandle = stdPic End With He only replied "Do not extract images like this..."
Well, try it yourself
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
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 |