Jump to content

Recommended Posts

Posted

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.

Posted

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.)

Posted

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
Posted

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.

  • 5 years later...
Posted
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.

  • Upvote 2
  • 1 year later...
  • 6 months later...
Posted

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
Posted

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?

  • 1 year later...
Posted
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?

Posted
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?

×
×
  • Create New...