Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - ImageManagerIcon.handle
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ImageManagerIcon.handle

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


Joined: 29 September 2007
Status: Offline
Points: 85
Post Options Post Options   Thanks (0) Thanks(0)   Quote wakerunner Quote  Post ReplyReply Direct Link To This Post Topic: ImageManagerIcon.handle
    Posted: 30 November 2007 at 12:57am
The code below worked in 11.2.0, but the ImagemanagerIcon.handle has been eliminated in 11.2.1.
 
How can you get an image from a imagemanager control for use in a popupcontrol? Could you supply sample code, the only sample in help file shows how to load an image from disk. I want to get images from the imagemanager.
 
 
Dim IMG As ImageManagerIcon
Dim PopItem As PopupControlItem
        
    Set PopItem = PopupControl.AddItem(151, 6, 164, 19, "")
    Set IMG = ImageManager.Icons.GetImage(103, 13)
    PopItem.SetIcon IMG.Handle, xtpPopupItemIconNormal
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: 30 November 2007 at 1:19am
Hello,
 
Better assign whole imagemanager to popupcontrol and set iconindex for items:
 
Set PopupControl.Icons = ImageManager.Icons
 
Set PopItem = PopupControl.AddItem(151, 6, 164, 19, "")
PopItem.IconIndex = 103
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.143 seconds.