Print Page | Close Window

PopupControl Icon

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=10870
Printed Date: 04 December 2024 at 2:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PopupControl Icon
Posted By: McKloony
Subject: PopupControl Icon
Date Posted: 02 June 2008 at 1:42pm

how can i use an ImageManager Icon in the PopupControl ?



-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



Replies:
Posted By: Aaron
Date Posted: 02 June 2008 at 3:40pm
Hi,
 
You have 2 options:
  1. PopupControl.Icons.AddIcons ImageManager.Icons
  2. PopupControl.Icons.AddIcon ImageManager.Icons.GetImage(ID_ICON_IN_IMAGEMANAGER, 16).CreatePicture(xtpImageNormal), ID_ICON_IN_POPUPCONTROL, xtpImageNormal
       
    Set Item = PopupControl.AddItem(0, 0, 0, 0, "")
           Item.CalculateHeight
           Item.CalculateWidth

 

  1. Item.IconIndex = ID_ICON_IN_IMAGEMANAGER
  2. Item.IconIndex = ID_ICON_IN_POPUPCONTROL
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: McKloony
Date Posted: 03 June 2008 at 4:05am
Thank you. Do you have also a solution to use the ImmageManager Icons together with the TaskDialog?

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6


Posted By: Aaron
Date Posted: 03 June 2008 at 4:36am
Hi,
 
Yes I do
 
See post: http://forum.codejock.com/forum_posts.asp?TID=9492 - http://forum.codejock.com/forum_posts.asp?TID=9492
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: jpbro
Date Posted: 07 June 2008 at 9:07pm
I have a technical question about the 2 techniques (and a 3rd) -

For #1 (.AddIcons) - Does the PopupControl make a separate copy of all of the ImageManager icons? That is, does using this method use 2x the memory?

For #2 (.AddIcon/.CreatePicture) - It seems that this method doesn't support the alpha channel (I assume this is because CreatePicture returns a StdPicture object). Is there a way to get alpha channel support?

I've also successfully used:

Set Me.PopupControl1.Icons = Me.ImageManager1.Icons

Does this mehotd use 2x the memory (that is, is a copy of each icon made), or does using this method just set a reference to the icons in the ImageManager.

Basically, I only want to use a couple of images from my ImageManager (with lots of icons) with my PopupControl (with alpha channel), so I would like to use the most memory efficient method possible.

Thanks a lot.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

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