Print Page | Close Window

Using ImageManager with taskDialog?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=16878
Printed Date: 05 May 2024 at 1:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using ImageManager with taskDialog?
Posted By: Muricy
Subject: Using ImageManager with taskDialog?
Date Posted: 25 June 2010 at 6:50pm
How can I use imagemanager with TaskDialog to display images on FooterIcon and MainIcon?



Replies:
Posted By: Aaron
Date 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....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net