andersa@ellenshoej.dk Posted May 25, 2011 Posted May 25, 2011 I have an application form that I open from the main form with ShowModal. On the application form I have a TUniImage to which I have assigned a PNG image in the TPicture property. When the form closes I get some errors in web mode: OA3.el.dom is undefined Full error message: EDIT Removed as it contained some data I dont want shown here. If I clear the picture property and assign the url property to point to the image, it works in web mode, but not in Windows mode. If I use a JPG image it works in both web and Windows mode.
Administrators Farshad Mohajeri Posted May 25, 2011 Administrators Posted May 25, 2011 Can you provide steps to reproduce the error? Is it enough to put a TUniImage containing PNG image on Form?
andersa@ellenshoej.dk Posted May 25, 2011 Author Posted May 25, 2011 Can you provide steps to reproduce the error? Is it enough to put a TUniImage containing PNG image on Form? I am at home so can't provide exact steps before tomorrow. It is something like this: New project. Add application form (AppForm). On AppForm put a TUniImage and add a PNG in the picture property. On the AppForm also add a button with event handler: ModalResult := mrOk; On main form add a button which calls AppForm.ShowModal. Run. Press the button to open the AppForm. Then press the button on the appform to close it. You should get an error. (This is in webmode, I should point out.)
andersa@ellenshoej.dk Posted May 25, 2011 Author Posted May 25, 2011 Ok, I have XE Starter at home. I just installed UniGUI to test this. I can not reproduce the error using above steps. I have a hypothesis that it has something to do with at work I also have DevExpress components installed. They come with their own PNG image replacement. When I add a PNG image to the picture property, at work it says (TdxPNGImage). At home it just says (TPNGImage).
Administrators Farshad Mohajeri Posted May 25, 2011 Administrators Posted May 25, 2011 Ok, I have XE Starter at home. I just installed UniGUI to test this. I can not reproduce the error using above steps. I have a hypothesis that it has something to do with at work I also have DevExpress components installed. They come with their own PNG image replacement. When I add a PNG image to the picture property, at work it says (TdxPNGImage). At home it just says (TPNGImage). I see. It seems that DevExpress replaces default PNG handller with its own.
andersa@ellenshoej.dk Posted May 26, 2011 Author Posted May 26, 2011 Rounding this off, I just tried uninstalling the DevExpress components at work, and everything now works as expected.
fiorilli Posted October 17, 2016 Posted October 17, 2016 Hello, for the record, since it is a very old post. after installing DevExpress, comment the policy "{$ DEFINE DXREGISTERPNGIMAGE}" file "dxGDIPlusClasses.pas" and recompile the installation. here I made as follows; 1- normal installation; 2- change the file "<DevExpressInstallatioFolder> \ ExpressGDI + Library \ Sources \ dxGDIPlusClasses.pas" ----------------- unit dxGDIPlusClasses; {$I cxVer.inc} //{$DEFINE DXREGISTERPNGIMAGE} interface uses Windows, Classes, SysUtils, Graphics, ActiveX, Types, dxGDIPlusAPI, dxCore; type TdxPNGImage = class; TdxGPImage = class; ----------------- 3 save the file and run the installer again, this time choose to modify option. (Rebuild mode); 4- load the PNG picture into the TImage.Picture property, As a result, you will see the "TPngImage" class in your Object Inspector. 2
Marlon Nardi Posted November 2, 2017 Posted November 2, 2017 https://www.devexpress.com/Support/Center/Question/Details/T478227/devexpress-and-unigui-incompatibility
DonaldShimoda Posted May 3, 2018 Posted May 3, 2018 Actually, is not a real solution that devexpress offer. I need both functiinalities. Why to resign using this when using Unigui? I doubt devexpress fixes that. Any idea if is possible to fox on unigui side? best regards.
Administrators Farshad Mohajeri Posted May 3, 2018 Administrators Posted May 3, 2018 Actually, is not a real solution that devexpress offer. I need both functiinalities. Why to resign using this when using Unigui? I doubt devexpress fixes that. Any idea if is possible to fox on unigui side? best regards. Can this issue be reproduced using Trial edition of DevExpress?
DonaldShimoda Posted May 3, 2018 Posted May 3, 2018 yes, they also register that class on trial version.
Administrators Farshad Mohajeri Posted May 3, 2018 Administrators Posted May 3, 2018 yes, they also register that class on trial version. I implemented a solution for this issue.
DonaldShimoda Posted May 3, 2018 Posted May 3, 2018 I implemented a solution for this issue. Can please send me the patch?
Administrators Farshad Mohajeri Posted May 3, 2018 Administrators Posted May 3, 2018 It is in core libs. It will be available in next build Sent from my SM-N950F using Tapatalk
Ronald Posted December 11, 2019 Posted December 11, 2019 The same problem occurs (again) in unigui version 1.90.0.1512
Sherzod Posted December 11, 2019 Posted December 11, 2019 1 minute ago, Ronald said: The same problem occurs (again) in unigui version 1.90.0.1512 Sorry, what is the problem? Can you please make a simple testcase?
Ronald Posted December 12, 2019 Posted December 12, 2019 16 hours ago, Sherzod said: Sorry, what is the problem? Can you please make a simple testcase? The same problem as described above. When you have installed the DevExpress components, some IDE design property editors are registered for images and these use the DevExpress Image classes. A testcase need the DevExpress to be installed. Do you?
Recommended Posts