Jump to content

Attila Kovacs

  • Content Count

  • Joined

  • Last visited

  • Days Won


Attila Kovacs last won the day on March 8

Attila Kovacs had the most liked content!

Community Reputation

61 Excellent

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Attila Kovacs

    IDE can not create ancestor TFrame

    I'm wondering if I'm the only one who gave up many years ago using frames because of the buggy IDE.
  2. Attila Kovacs

    PlayEnhMetaFile on non visible area

    It has nothing to do with the "component", nor with SetViewportExtEx. It's the same problem as described here: https://stackoverflow.com/questions/30386615/copying-a-graphic-to-a-tmetafilecanvas-outside-the-screen-dimensions For me it looks like a windows bug.
  3. Attila Kovacs

    Future of Konopka Signature VCL Controls?

    The latter.
  4. Attila Kovacs

    PlayEnhMetaFile on non visible area

    Indeed, but I can't just pass any random printer DC as reference, what if there is no printer installed at all. (Not to mention the DPI difference between printer dc and 72 DPI PDF) I was passing SynPDF's VCLCanvas as reference, but it's the same as I would pass 0, as in SynPDF.pas: // retrieve the current reference GDI parameters FDC := CreateCompatibleDC(0); If I replace this with CreateDC(one of my printer) I can indeed print to the bottom of the page, but as I mention, this results in a 600DPI PDF and I can't just pick a random printer.
  5. Attila Kovacs

    PlayEnhMetaFile on non visible area

    I'm trying to draw metafiles with "PlayEnhMetaFile" on SynPDF's VCLCanvas (which is a TMetafileCanvas) and somehow the images in my metafile are not drawn if they are vertically below the displays Y resolution. For example, the A4 page has at 96 DPI a height of 1124, the display has a height of 768 or 800 pixels, the metafile should be played at 770 in a height of 120, the images are missing from the result. Textst are drawn but "EMR_STRETCHDIBITS" wont be called in the GDI Enum. Any help/hint would be greatly appreciated. This drives me crazy. Ps: On Printer Canvas no problems, on bigger display with bigger resolution the same code is working.
  6. Attila Kovacs

    Login Form - 3 tries.

    How do you exit the application if login fails?
  7. Attila Kovacs

    Login Form - 3 tries.

    if DoLogin then ModalResult := mrOk else Inc(failcnt); if failcnt = X then ModalResult := mrCancel; eventually.. maybe you should set up the connection to the db somewhere else.. and you don't need to free the form if action is caFree or vice versa.
  8. I have read that post 3 times but it just translates to "we need your money". Ah yes, and it's all the industries fault.
  9. Attila Kovacs

    Best site/source for SQL Server questions?

    @Lars Fosdal Did you solve it? I've similar problems now 😉
  10. Attila Kovacs

    Is editing posts disabled?

    @Tommi Prami How would you moderate a forum where everybody could change everything back to BC?
  11. No, the opposite. This is a big no-no. I also had such swiss-knife forms and dozens of frames, man was I lucky when I got rid of them. But, you know what, do you know templates in the IDE? You can make some form templates and use them when you create a new one. Then you have the half of the junk work behind you.
  12. @Mike Torrettinni There is a saying "it must be done only once". So what.
  13. @Mike Torrettinni If you don't care about GUI, or you are drowning in those forms, devexpress has a grid where you can put controls into the rows (I believe dynamically (too)). It's ugly (for me) but who knows. Just telling. I'd never use it.
  14. Attila Kovacs

    TFDBatchMove delete records

    Are you using Keyfields or just let it use upwhereall?
  15. Attila Kovacs

    10.3 vers 10.2 Linux

    @Esteban Pacheco TBH Both of them are nerving in some degree but in this case DH has a point, this was like an IRC like self-conversation leading to nowhere.