Print Page | Close Window

Is Icon-copy possible with upcoming V19?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=23872
Printed Date: 21 November 2024 at 11:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Is Icon-copy possible with upcoming V19?
Posted By: Jebo
Subject: Is Icon-copy possible with upcoming V19?
Date Posted: 05 July 2019 at 9:48am
Hi,

I want only to add an alpha-color-Icon at runtime to an already exist CommandBar.

But it doesn't work with 18.6

I already tried ...

"MyCmdBar.Icons.AddBitmap MyImageManager.GetImage(200, 32).CreatePicture(xtpImageNormal).Handle, 200, xtpImageNormal, True"

"MyCmdBar.Icons.AddIcon MyImageManager.GetImage(200, 32).CreatePicture(xtpImageNormal).Handle, 200, xtpImageNormal"

"MyCmdBar.AddIconHandle MyImageManager.GetImage(200, 32).CreatePicture(xtpImageNormal).Handle, 200, xtpImageNormal, True"

...all these tries results in distorted Icons.

So, Is there any new function to do this with the new version 19?

I can't understand why imageManager-Items are not copyable to another one. The only think that works, is copy a imageManager-Item to a PushButton.

So this code works, but not possible for CommandBar-Icons:   "Set PushButton1.Icon = MyImageManager.Icons.GetImage(200, 32)"

But I need the same feature for CommandBars! Or I'm wrong and it is already possible, but how?



-------------
[Sig removed by Admin: Signature can't exceed 40GB]



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