Print Page | Close Window

[solved] Serious Bug in PushButton version 18.3

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=23565
Printed Date: 19 April 2024 at 5:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] Serious Bug in PushButton version 18.3
Posted By: Vycheslav
Subject: [solved] Serious Bug in PushButton version 18.3
Date Posted: 13 February 2018 at 3:33am
Visual Studio 6 and Visual Studio 2017 CodeJock version 18.3.0.

Code:

Set btnLogRefresh.Icon = CjMainMenu.Icons.GetImage(1020, 16)
(btnLogRefresh.Icon = CjMainMenu.Icons.GetImage(1020, 16))
Where:
btnLogRefresh - CodeJock.PushButton;
CjMainMenu - Codejock.CommandBars.

Version 18.2 work fine.
Version 18.3 does not work.
Error is not raised, property Icon is still Nothing



Replies:
Posted By: olebed
Date Posted: 13 February 2018 at 9:02am
Hello Vycheslav,

I have checked this with our sample   Samples\CommandBars\VB.NET\IconSample\frmProperties.vb
Added Button1 As AxXtremeSuiteControls.AxPushButton

        Private Sub picSample_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles picSample.Paint
            Dim sampleIcon As XtremeCommandBars.ImageManagerIcon
            sampleIcon = frmMain.Instance.CommandBars.Icons.GetImage(ID.FILE_NEW, 16)

            If Not sampleIcon Is Nothing Then
                Me.Button1.Icon() = sampleIcon

This works as expected.
Check loading icons into CjMainMenu.Icons  and hardcoded ID "1020".

Regards,
 Oleksandr Lebed


Posted By: Vycheslav
Date Posted: 13 February 2018 at 9:47am
This icon exists and valid. Uninstall version 18.3 and instal version 18.2. This code is work fine. Before execute code property Button.Icon = Nothing, after execute = Object. Uninstall 18.2 and install 18.3. Before execute code property Button.Icon = Nothing, after execute = Nothing. Application (applications) does not changing.


Posted By: olebed
Date Posted: 13 February 2018 at 9:57am
Please give me sample where I can reproduce this issue.


Posted By: Vycheslav
Date Posted: 14 February 2018 at 3:55am
In this file wery simple projects (VB6) for 18.3 and 18.2 version CodeJock. Both project is identical, but linked with different version CJ. uploads/4333/Bug_18_3_projects.zip" rel="nofollow - Bug_18_3_projects.zip

Screnshot version 18.3



Screnshot version 18.2



Posted By: olebed
Date Posted: 14 February 2018 at 7:55am
Thanks for sample.
I found that problem can be reproduced only from installed version of SuitePro v18.3. But can't be reproduced from my working release and debug version. Continue to investigate...


Posted By: TomasS
Date Posted: 19 February 2018 at 10:11am
I also noticed my pushbutton icons were gone after upgrading to 18.3 (from 17.3). In 17.3 I set them directly from an Imagemanager object. 17.3 had some scaling issues so I wanted to try in 18.3. After the upgrade: No icons and no error. I changed it to load the icons the same way but from the built in "SuiteControlsGlobalSettings.Icons" after settings that one to my original ImageManager.icons. Now I got icons in 18.3 and scaled properly. I find it strange that I had to do like that. Is it intentional?

-------------
Xtreme SuitePro (ActiveX) version 17.3.0, 16.3.1
Windows 10 64-bit
Visual Basic 6.0


Posted By: olebed
Date Posted: 19 February 2018 at 10:42am
Hello TomasS,

I found the same on investigation. Unfortunately I can't reproduce this with code from repository :-(
I think there are some problems with ImageManager of CommandBars.  PushButton.Icon works fine.
Continue to investigate...


Posted By: Vycheslav
Date Posted: 26 February 2018 at 5:21am
This is extended simple projects.
uploads/4333/Bug_18_3_projects_extended.zip" rel="nofollow - Bug_18_3_projects_extended.zip
CommandBars and DockingPanes used.
Only method [Set PushButton1.Icon = Object.Icons.GetImage(1020, 16)] not working in 18.3.


Posted By: Vycheslav
Date Posted: 15 March 2018 at 8:42am
Is there anybody here? A month has passed, but a gross bug has not been corrected so.


Posted By: itsmg
Date Posted: 19 April 2018 at 12:04pm
We are planning the upgrade to 18.3. We have the same problem as Vycheslav.

When can we expect a solution?


-------------
Product: Xtreme SuitePro (ActiveX) version 20.1.0 (unicode)

Platform: Windows 11 (64bit)

Language: Visual Basic 6.0


Posted By: olebed
Date Posted: 19 April 2018 at 2:45pm
Hello,

We deside that this bug depend on configuration of build machine. We will check this on building next version at the end of April.

Regards,
Oleksaandr Lebed



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