Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Using ImageManager with taskDialog?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Using ImageManager with taskDialog?

 Post Reply Post Reply
Author
Message
Muricy View Drop Down
Newbie
Newbie


Joined: 25 June 2010
Location: Brazil
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Muricy Quote  Post ReplyReply Direct Link To This Post Topic: Using ImageManager with taskDialog?
    Posted: 25 June 2010 at 6:50pm
How can I use imagemanager with TaskDialog to display images on FooterIcon and MainIcon?
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2010 at 10:51am
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....
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.141 seconds.