Print Page | Close Window

CreatePicture Method

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4935
Printed Date: 20 June 2025 at 3:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CreatePicture Method
Posted By: Caldarola
Subject: CreatePicture Method
Date 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
 



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






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