Incompatibility with DevExpress

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
DeskCenter
Newbie
Newbie
Posts: 9
Joined: Fri Dec 21, 2012 12:00 am

Incompatibility with DevExpress

Post by DeskCenter » Thu Mar 06, 2014 9:59 am

Hello.

We are using Delphi 7 with DevExpress VCL v2013 vol 2.3 (most recent version).

After updating from TeeChart Pro 7.06 to TeeChart Pro 2014, newly assigned glyphs to their bar buttons look horrible.
I went back in a testing VMware to a snapshot that was created right before updating TeeChart and everything was still fine there.
(check attachment image)

I checked the dfm-file part of the same image, and it differs between TeeChart 7 and TeeChart 2014.

I already asked DevExpress and they believe the issue is in TeeChart Pro 2014.
Here is the link to my bug report there including their response: https://www.devexpress.com/Support/Cent ... ls/Q576315

Regards
Attachments
cxUglyButtons.png
cxUglyButtons.png (13.25 KiB) Viewed 11638 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Incompatibility with DevExpress

Post by Yeray » Thu Mar 06, 2014 3:23 pm

Hello,

Can you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.

Instructions - HowTo post in this forum
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

DeskCenter
Newbie
Newbie
Posts: 9
Joined: Fri Dec 21, 2012 12:00 am

Re: Incompatibility with DevExpress

Post by DeskCenter » Fri Mar 07, 2014 9:20 am

Hello Yeray,

I didn't expect an example was needed, because all you have to do is to drag a dxBarManager on top of the form, add a dxBarButton and assign a png image to the button's glyph property.
It is screwed up in design mode already.

However, attached is a sample project.

Regards.
Attachments
TcDxBarGlyphBug.rar
(8.14 KiB) Downloaded 495 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Incompatibility with DevExpress

Post by Yeray » Mon Mar 10, 2014 10:02 am

Hello,

I had TeeChart v2014.10 in Delphi 7 here. I installed DevExpress trial from here.
Then I could open the project you attached without errors claiming for uninstalled components.
This is how it looks, always at design time:
2014-03-10_1054.png
2014-03-10_1054.png (8.69 KiB) Viewed 11468 times
I see the bitmap at the bottom-left looks different than the bitmap at the right.
I've changed the bitmap to the following through the glyph property as indicated:
Button-Reload-icon.png
Button-Reload-icon.png (903 Bytes) Viewed 11529 times
I've also changed the TcxImage in the right to use png above too, and added a TChart.
Everything looks fine for me here:
2014-03-10_1059.png
2014-03-10_1059.png (11.51 KiB) Viewed 11456 times
Check out the modified project here:
TcDxBarGlyphBug.zip
(4.58 KiB) Downloaded 466 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

DeskCenter
Newbie
Newbie
Posts: 9
Joined: Fri Dec 21, 2012 12:00 am

Re: Incompatibility with DevExpress

Post by DeskCenter » Mon Mar 10, 2014 2:05 pm

Hello Yeray,

Thanks for having a look into it.

I downloaded your demo and opened it in Delphi 7. The button you changed looks fine for me.
However, I downloaded the PNG file that was attached in your posting and changed the picture through the glyph again to that image.
This is the result:
screenshot.PNG
screenshot.PNG (43.11 KiB) Viewed 11450 times
The difference here is, that I installed DevExpress prior to updating TeeChart to v2014.10. But I already tried reinstalling DevExpress from scratch, and the picture was still screwed up.
Also, I am not using the trial version of DevExpress.

I'll try to track it down with the trial version of DevExpress in a VMware.
I'll post my results here.

Regards.

DeskCenter
Newbie
Newbie
Posts: 9
Joined: Fri Dec 21, 2012 12:00 am

Re: Incompatibility with DevExpress

Post by DeskCenter » Mon Mar 10, 2014 3:57 pm

Hello Yeray.

I could track it down a bit.

In a VMware I first installed the DevExpress Trial and then TeeChart Pro v2014.10.
The same problem as described in my first posting showed up again. The PNG images attached to the bar buttons glyph property were not correctly drawn.


Then I tried it the other way round:
First installing TeeChart Pro, then the DevExpress trial.
This time all the images were correctly drawn.

After that I recompiled and reregistered TeeChart using the TeeRecompile.exe utility.
Newly assigned images to the bar buttons glyph property were screwed up again.

I then ran the DevExpress setup again and chose "repair".
After that everything was fine again.

So it seems like chosing the "Repair" option in the DevExpress setup fixes the problems.
Unfortunately, for whatever reason the "Repair" option does not help in the full version of the DevExpress setup :-(

However, I do not know if this screws up some TeeChart drawing routines, because to me it seems like both the DevExpress and the TeeChart setup overwrite some graphic routines for PNG files.


Regards.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Incompatibility with DevExpress

Post by Yeray » Mon Mar 17, 2014 10:17 am

Hello,

I'm sorry for the late reply here. I've been doing some tests but I'm still not sure to have found the origin of the problem.
We'll continue investigating and we'll be back to you here asap.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Incompatibility with DevExpress

Post by Yeray » Tue Mar 25, 2014 11:20 am

Hello again,

I'm afraid we haven't found the root of the problem yet but found some workaround that could be useful for you.
In the project above, after installing the latest TeeChart version, if I reload the glyph, I get an uncorrect image drawn in the TdxBarButton. Here, if I do this:
- Close the project
- Open the Packages list (Component->Install Packages).
- Unselect the DevExpress components.
- Select the DevExpress components again (I only have to select "ExpressBars cxEditor item..." and "ExpressBars DBNavigator...")
Now I can load the project and when I reload the glyph, the image drawn in the TdxBarButton looks correct.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

DeskCenter
Newbie
Newbie
Posts: 9
Joined: Fri Dec 21, 2012 12:00 am

Re: Incompatibility with DevExpress

Post by DeskCenter » Wed Mar 26, 2014 11:47 am

Hello Yeray,

Thank you for the info and the workaround.

Unfortunately, this only seems to work in the trial version of DevExpress :(

Regards.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Incompatibility with DevExpress

Post by Yeray » Thu Mar 27, 2014 2:27 pm

Hello,

Strange, but I can't know what differences are between the evaluation and the registered version of this component.
I'll open a ticket at our bug tracking system to further investigate this problem:
http://bugs.teechart.net/show_bug.cgi?id=670
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

DeskCenter
Newbie
Newbie
Posts: 9
Joined: Fri Dec 21, 2012 12:00 am

Re: Incompatibility with DevExpress

Post by DeskCenter » Fri Mar 28, 2014 10:04 am

Hello Yeray.

Thanks for putting so much time into investigating the issue.
I asked DevExpress why the "repair" option (which is pretty much the same as reinstalling a single component) won't work in the registered version.

This is their response:
The main difference between our full and Trial versions is that the full version contains sources and as a result it compiles all our packages using both the source code of your IDE and our units. The Trial version already have precompiled packages (which were compiled with our IDE sources without TeeChart changes) so it just installs them into your IDE. I believe, this is the cause of the difference in "Repair" mechanism.

Post Reply