Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - CreatePicture Method
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CreatePicture Method

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


Joined: 29 August 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Caldarola Quote  Post ReplyReply Direct Link To This Post Topic: CreatePicture Method
    Posted: 31 August 2006 at 9:51am
I am using CommandBars v10.3 and notice that the CreatePicture method of the ImageManagerIcon object does not return a StdPicture object as documented.

Any ideas what is wrong?

Example:

Private Sub Example1()

    Dim i As ImageManagerIcon
    Dim p As StdPicture
   
    Set i = ImageManager1.Icons.GetImage(101, 16)
   
    ' the value returned is nothing!
    Set p = i.CreatePicture(xtpImageNormal)

    ' ... so no picture
    Picture1.Picture = p
  
End Sub
 
Back to Top
Caldarola View Drop Down
Newbie
Newbie


Joined: 29 August 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Caldarola Quote  Post ReplyReply Direct Link To This Post Posted: 31 August 2006 at 1:43pm
Update...

CreatePicture must not like when alpha icons are used.

I just switched to a non-alpha icon with same code and all is well.

I wonder if this is a bug, a limitation, or something else?

Thanks.



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.047 seconds.