Print Page | Close Window

Add AxImageManager icons to AxListview fails v17.0

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=22866
Printed Date: 28 March 2024 at 6:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add AxImageManager icons to AxListview fails v17.0
Posted By: iamgtd
Subject: Add AxImageManager icons to AxListview fails v17.0
Date Posted: 26 January 2016 at 4:05am
In a C#-solution we use the AxImageManager to manage icons for the commandbar and also for controls like AxListView. The approach is that we first load the icons and bitmaps to the AxImageManager control. And then we add the icons from the AxImagemanager to the Icons property of the AxListview.

// Load icons, bitmaps
cjImageManager.Icons.LoadIcon(IconsPath() + "CjSample.ico", 1, XtremeCommandBars.XTPImageState.xtpImageNormal);
cjImageManager.Icons.LoadBitmap(IconsPath() + "AlphaFind.bmp", 2, XtremeCommandBars.XTPImageState.xtpImageNormal);

// Add icons to listview
cjListView.Icons = (XtremeSuiteControls.ImageManagerIcons)cjImageManager.Icons;


This worked with all previous Codejock versions. With Codejock version 17.0 the following error occurs:

System.ArgumentException: Der Wert liegt außerhalb des erwarteten Bereichs. (The value is outside the expected range.)
   bei System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
   bei XtremeSuiteControls._DListView.set_Icons(ImageManagerIcons )
   bei AxXtremeSuiteControls.AxListView.set_Icons(ImageManagerIcons value)
   bei TestCodeJockImageManager.Form1.Form1_Load(Object sender, EventArgs e) in C:\Projects\Testprojekte\TestCodeJockImageManager\TestCodeJockImageManager\Form1.cs:Zeile 25.



-------------
---------

OS: Win 10 64 bit

Codejock Version 22.1 ActiveX

MS Visual Studio 2022 - C#

---------



Replies:
Posted By: rmeling
Date Posted: 13 October 2016 at 3:58am
Same problem here (this was ok until at least version 16.3.1). 

Same error with TreeView control. CommandBars control is working with ImageManager Icons

Any solutions for this problem?

Thx and best regards
Robin

CodeJock 17.2.0 ActiveX
Progress OpenEdge 11.3.3
Microsoft Windows Server 2012 R2


Posted By: derekl
Date Posted: 29 November 2016 at 2:44pm
I have the same issue.
Seems to be with the 64 bit controls (ActiveX 17.2).

I reported it 5 days ago as a support issue but have still had no response from support.

Very frustrating.


Posted By: astoyan
Date Posted: 05 December 2016 at 1:58am
Hello,

I'm glad to inform you the issue has been fixed for 18.0. Please wait for the update and once it's out please test the fix and let us know if anything doesn't work as expected.

Regards,
  Alexander



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