Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - ImageManager / Image control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ImageManager / Image control

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


Joined: 21 September 2007
Location: India
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote indices Quote  Post ReplyReply Direct Link To This Post Topic: ImageManager / Image control
    Posted: 10 October 2007 at 10:14pm
How can I display an image, which is stored in the ImageManager control, in a VB6 image control or picture control?
 
I tried:
Set imgPlay.Picture = Me.ImageManagerPanel.Icons.GetImage(3003, 20).CreatePicture(xtpImageNormal)
 
That does not work. Can this be done? 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: 11 October 2007 at 12:41am
You can draw it directly:
 
Private Sub picSample_Paint()
    Dim Icon As ImageManagerIcon
    Set Icon = frmMain.CommandBars.Icons.GetImage(100, 16)
   
    If Not Icon Is Nothing Then
        Icon.Draw picSample.hDC, 0, 0, Icon.Width, Icon.Height, xtpImageNormal
    End If
End Sub
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
indices View Drop Down
Groupie
Groupie


Joined: 21 September 2007
Location: India
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote indices Quote  Post ReplyReply Direct Link To This Post Posted: 11 October 2007 at 1:02pm
Hi Oleg,
Thank you for responding.
 
That approach works for picture boxes it doesn't work for image object which does not have an HDc.
 
I want to transfer the imagemanger picture directly to an image object since it has transparency. I could get it to work by copying it to a picture box and then copying it from there to the image object but that loses transparency.
 
Is it possible to copy it to the image object without losing transparency.
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: 12 October 2007 at 8:37am
Hi,
 
If you have 11.2 version you can use our Label control to draw Icon. just sset its Icon property.
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.049 seconds.