Jump to content

alogrep

Members
  • Content Count

    173
  • Joined

  • Last visited

Everything posted by alogrep

  1. Hello Uwe. I am in trouble again. I left my project, after everythig was ok, for a month, and now again have the same problem: the old legacy glyphs with tpngobject do not show the images. The design components show in installed packages, but the unit with tpngobject images do now show the image. I uninstalled the package., I re-installed PngComponentsDesign.dpk from the sydney folder. I also re-named pngcomponents\pngobject to make sure it does not interfere in any way. But the (content of the) images are not shown. Any clue, please?
  2. I went step by step, and I found out than in the splashform creation process, it creates the png button wich in turns create the png image of the button. constructor TPngImage.Create; That is in Vcl.Imaging.PngImage.pas. At that point the alias (tpngobject) is set to tpngimage. Whis is something it could not be done at app start (as you said, an alias cannot be registered). I think that is what happens. But, whatever it is, the trick seems to work.
  3. . There is no Tpngobject word in the DFM. It just has this: object Image1: TImage Left = 0 Top = 0 Width = 1008 Height = 740 Picture.Data = { 0A54504E474F626A65637489504E470D0A1A0A0000000D494844520000078000...... etc. However, that pngcomponet in the splash form seems to do the trick. And I also need to keep the dfm compatile with XRE am my older Delphi for a while.
  4. Hello. I can not answer that question = I do not know the answer. However, the problem has something to do with path or dll delayed loading. I use a splashform in the app. I added a pngcomponet (the button, visible = false) to it and the main form with the png image DOES now show the image. If I remove that png button from the splash form, it does not.
  5. Sorry, I can not answer that question. I had done an update for Tokyo (I think was another pngoject compunets package, not yours) and there it worked fine.. When I put the cursor ofer the Tpngobjec it shows the hint "Tpngimage Defined in <blank> However if I comment out the resizing function and run the App, the image is NOT show, although at design time it IS shown.
  6. Thanks. I do not necessarely want to use the Pngobject. But a) the image picture graphic shows = NIL. What does it mean? (the image IS show) b) I need occasionally to resize the image. any other way to do it? I attach the resizing code in the file. code.txt
  7. I hope I am not becoming a nuissance, but it works ONLY PARTIALLY. The images are shown. But running an app with an image picture(Tpngoject), as shown the objecti Ispector, and trying to resize the image, the picture.graphic is shown as NIL on inspection. . and the resizing function crashes. I use this with image1 do PngSmoothResizeit(Tpngobject(picture.graphic),width-1,height-1); which works fine in oder delphi. (PngSmoothResizeit is takn from the original functions for tpngobject). Why is picture.graphic = NIL, if the image is shown? What is whown, if there is no graphic?
  8. It works fine , tank you!!
  9. Hello Uwe, I hope I am not abusing your patience. I found this behaviour, perheaps you can give me a clue as to what is wrong or at least a hint for a workaround. Start the IDE, open a unit with old png (tpngobject): the images are not shown. I close this unit. I open a dummy unit that has only this component in it: TPngImageCollection. Then I re-open the unit with the old png's and MAGICALLY the iomages are shown. Any idea? Thanks very much.
  10. Could this be related to Windows 10 Home 64-bit (My OS)?
  11. I re-installed the pngcomponents. I build it and Installed. The old pngs show OK. I close the IDE, re-start it, and they do not show at all. What happens when I cose the IDE? What is that "disappears" at closing th e IDE? It is beyond my comprehension. Hese are the files created when instaling the packages: Directory of C:\hmxe\pngcomp\packagessydney\Win32\Release 25/10/2021 04:36 p. m. <DIR> . 25/10/2021 04:36 p. m. <DIR> .. 25/10/2021 04:36 p. m. 15,739 PngBitBtn.dcu 25/10/2021 04:36 p. m. 2,156 PngButtonFunctions.dcu 25/10/2021 04:36 p. m. 10,046 PngCheckListBox.dcu 25/10/2021 04:36 p. m. 14,954 PngComponentEditors.dcu 25/10/2021 04:36 p. m. 1,990 PngComponentsRegister.dcu 25/10/2021 04:36 p. m. 12,207 PngFunctions.dcu 25/10/2021 04:36 p. m. 42,691 PngImageList.dcu 25/10/2021 04:36 p. m. 40,318 PngImageListEditor.dcu 25/10/2021 04:36 p. m. 8,050 PngSpeedButton.dcu Directory of C:\Users\Public\Documents\Embarcadero\Studio\21.0\Bpl 25/10/2021 04:36 p. m. 103,424 PngComponents270.bpl 25/10/2021 04:36 p. m. 121,344 PngComponentsDesign270.bpl 2 File(s) 224,768 bytes Directory of C:\Users\Public\Documents\Embarcadero\Studio\21.0\Bpl\Win64 25/10/2021 04:33 p. m. 147,968 PngComponents270.bpl
  12. HelloUwe. Sorry again. But something weird happens: all works fine, UNTIL I exit Delphi Id and re-start it. At restart the images are not shown anymore. I define RegisterOldPngFormat in both runtime and design packages (in the release configuration). I work on a PC win64. For the runtime package (pngcompnents) I put target platform 64bit.. Build the 2 components creates the bpl's whown in the attached image. What's happening? why it workds if i stay in the IDE, but it does not work anylonger when i re-starte it? I appreciate very much your patient help.
  13. Thanks very much again! That was it (although I did not do it myself the first time around, or at least I do not remember doing it).
  14. alogrep

    Use old glyph with tpngobject in 10.4?

    Hello Uwe. I am in trouble again. I left my project for a couple of months, and now again have the same problem: The design components show in insstalled packages, but the unit with tpngobject images do now show the image. I uninstalled the package., I re-installed PngComponentsDesign.dpk from the sydney folder. I also re-named pngcomponents\pngobject to make sure it does not interfere in any way. But the (content of the) images are not not shown.
  15. alogrep

    Use old glyph with tpngobject in 10.4?

    Sorry, it workds fine!. I think the error was that I had put in the library pngcomponents\PngObject\ (the newly installed package). I removed it and all is ok. Thank you very much
  16. alogrep

    Use old glyph with tpngobject in 10.4?

    Thanks Uwe. But still cannot have the glyph png image shown. I built and installed ok PngComponentsDesign.dpk (it shows in install packages. see attached image). I built PngComponents.dpk. But a form with components using a png image does not show the image (in my older delphi they show ok). Any hint as to what else should I do?
  17. alogrep

    Use old glyph with tpngobject in 10.4?

    Than you Uwe. How do I install it? I dowloaded PackagesSydney and trying to build PngComponentsDesign I get a list of errores Tpngimagelist .... not found. If I try to build PngComponents I get the error "...source\PngSpeedButton not found" not found.
  18. Hello. Delphi Sydney. I have a form,created once at application start. The form contains const UM_ACTIVATED = WM_USER+1; (I also tried WM_APP) .... private procedure UMActivated(var Message: TMessage); message UM_ACTIVATED; ... FormActivate(Sender: Tobject); ... postMessage(Handle, UM_ACTIVATED, 0, 0); procedure UMActivated only sets some variables; When the form is shown modal and then hidden (deactivated?) by Modalresult=MrOk, a subsequent showmessaage() call restarts the FormActivate of the form. If I remove the postmessage(), everything works ok. Any sugestion on how to avoid this? In previous versions (non XE) this did not happen. Thanks in advance
  19. I found out why. I had the showmodal of the second form inside Formactivate of the first form. I used a postmessage() in the Formactivate to open the 2nd form and that eliminated the problem. I guess with the XE Delphi if the form activation was not completed, the screen.activeforms list was not restored to the 1st form because it had not been activated completely yet (the postmessage makes the 2nd form opening happen when the 1st form has completed its activation).
  20. alogrep

    BDE for 10.4?

    Hi Is the BDE avaialble for version 10.4? If yes, where could I download it?
  21. alogrep

    10.4 Could not compile dbgrids

    Hi I get the error in 10.4 (I was not getting in 10.2). I put "Vcl.dbgrids" in Unit scope name, but it did not solve the problem. Anybody knows what else am I missing? Thanks
  22. alogrep

    BDE for 10.4?

    Never mind. I only needed it for some error code constants used with the the nexusdb errror codes. I replaced them with their correspondent numeric values.
  23. alogrep

    10.4 Could not compile dbgrids

    emailx45. ref delete .dproj That seems to work. I did it with a package and it fixed it. Thanks. But now I am stuck with the absence of BDE for 10.4.
  24. alogrep

    10.4 Could not compile dbgrids

    David, yes. But I do have "use compiled dcu's" checked. I have no idea why the the bds is trying to compile that unit
  25. alogrep

    10.4 Could not compile dbgrids

    If I start a fresh vcl app, and add a dbgrid to the unit, it compiles fine. I suppose then it cannot besomething in the Tools-Language-Delphi->Library which is common to all projects. What else could it bewrong in this specific project?
×