Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - PopupControl Icon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PopupControl Icon

 Post Reply Post Reply
Author
Message Reverse Sort Order
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: PopupControl Icon
    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

Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2008 at 4:36am
Hi,
 
Yes I do
 
 
 
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....
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post 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
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.172 seconds.