Print Page | Close Window

[SOLVED] Popup Control with ImageManager

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=15317
Printed Date: 23 November 2024 at 2:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Popup Control with ImageManager
Posted By: chrisABC
Subject: [SOLVED] Popup Control with ImageManager
Date Posted: 07 October 2009 at 7:31am
I have a form with an ImageManager control containing icons,
and a Popup Control.

How can I use an icon from the ImageManager for an Item in the Popup control?




-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



Replies:
Posted By: Peter59
Date Posted: 07 October 2009 at 12:41pm
Try this

Dim Item As XtremeSuiteControls.PopupControlItem

With PopupCtrl
.Icons = ImageManager.Icons

Set Item = .AddItem(Left, Top, Right, Bottom, Caption)
Item.IconIndex = [Index of Icon in ImageManager]
.Show
End With





-------------
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows 7 64 Bit
Language: Visual Basic 6.0 SP6


Posted By: chrisABC
Date Posted: 07 October 2009 at 12:51pm
Thank you

That works fine.


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6


Posted By: Peter59
Date Posted: 07 October 2009 at 2:58pm
Hi Chris,

works fine for me too, see attached sample.

Peter

uploads/20091007_145659_Popup.zip - uploads/20091007_145659_Popup.zip


-------------
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows 7 64 Bit
Language: Visual Basic 6.0 SP6



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