Print Page | Close Window

CreatePicture and DrawIconEx

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8699
Printed Date: 16 November 2024 at 2:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CreatePicture and DrawIconEx
Posted By: lionello
Subject: CreatePicture and DrawIconEx
Date Posted: 07 November 2007 at 3:22am
This code don't work with 11.2.1.
With the 11.2.0 it worked.
Why?
 
Best regards
Thanks
 
-------------------------------------------------------------------------------------------
Dim PicSource As StdPicture
 
Set PicSource = oCommandBarsImageList.Icons.GetImage(12345).CreatePicture(xtpImageNormal)

Call DrawIconEx(hdcDest, xDest, yDest, PicSource.Handle, Width, Height, 0, 0, 3)



Replies:
Posted By: Oleg
Date Posted: 07 November 2007 at 4:12am
Hello,
 
We very recommend use Draw method of ImageIcon instead.
 
oCommandBarsImageList.Icons.GetImage(12345).Draw(hdcDest, xDest, yDest, Width, Height, xtpImageNormal);
 
as you can see release notes we reworked ImageManager class.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: lionello
Date Posted: 08 November 2007 at 2:18am
We cannot use the method draw why the rendering it comes made from an other generic ruotine that receives a StdPicture parameter.
 
But the method "oCommandBarsImageList.Icons.GetImage(Val(sPathName), 16).CreatePicture(xtpImageNormal)" does not create a standard StdPicture that can be used with DrawIconEx?...like 11.2.0?
 
Thanks
 
 


Posted By: lionello
Date Posted: 14 November 2007 at 8:08am
Please, you can answer?
Thanks


Posted By: lionello
Date Posted: 28 November 2007 at 2:39am
HELLO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Please, you can answer?
Thanks


Posted By: Oleg
Date Posted: 28 November 2007 at 2:45am
Hi,
 
Sorry, we agree this problem and prepare 11.2.2 with the fix. If you need it right now, please open ticket, I will attach fixed file.
 
Thank you


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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