Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - CreatePicture and DrawIconEx
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CreatePicture and DrawIconEx

 Post Reply Post Reply
Author
Message
lionello View Drop Down
Groupie
Groupie


Joined: 23 September 2005
Location: Italy
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote lionello Quote  Post ReplyReply Direct Link To This Post Topic: CreatePicture and DrawIconEx
    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)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
lionello View Drop Down
Groupie
Groupie


Joined: 23 September 2005
Location: Italy
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote lionello Quote  Post ReplyReply Direct Link To This Post 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
 
 
Back to Top
lionello View Drop Down
Groupie
Groupie


Joined: 23 September 2005
Location: Italy
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote lionello Quote  Post ReplyReply Direct Link To This Post Posted: 14 November 2007 at 8:08am
Please, you can answer?
Thanks
Back to Top
lionello View Drop Down
Groupie
Groupie


Joined: 23 September 2005
Location: Italy
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote lionello Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2007 at 2:39am
HELLO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Please, you can answer?
Thanks
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.156 seconds.