Print Page | Close Window

ImageManagerIcon.handle

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8963
Printed Date: 01 February 2025 at 3:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ImageManagerIcon.handle
Posted By: wakerunner
Subject: ImageManagerIcon.handle
Date 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



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



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