Jump to content

Attila Kovacs

Members
  • Content Count

    2067
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by Attila Kovacs

  1. Attila Kovacs

    Issue with TVirtualStringTree OnNodeDblClick

    because the mouseup event will be swallowed by the modal window (showmessage)
  2. Attila Kovacs

    Why is ShowMesssage blocking all visible forms?

    because showmessage pops up a form in modal mode?
  3. Ok. Try to restructure your units until TINIComparer and TCompareType are in the same unit, and don't be shy creating 2-3 more units if needed. Unseen, i would say, your structure is done when "uINIComparerStructure" becomes empty.
  4. First you said it's in a different unit, now you are telling me, you want to hide it. I'm not sure what your goal is, why would you have it in a different unit or why would you want to hide it? There is something else you are not telling or you are not sure about. Lay your cards on the table.
  5. constructor Create(const AIniFileName1, AIniFileName1: string; AOptions: TCompareOptions = []); Where else would you declare TCompareOptions as in the same unit as this class is?
  6. @Mike Torrettinni It's completely fine, I'm just against "Indian Naming". What if your class gets 2 more options, how would you name the constructors?
  7. as long as nobody else have to use this class and you have memories like an elephant, it should be fine..
  8. Attila Kovacs

    Generic class

    @Stefan Glienke yes, you are right, I wasn't paying too much attention, and I also wasn't following any compiler hint, I saw this and just added "new" without thinking.
  9. Attila Kovacs

    Generic class

    @Stefan Glienke Thx a lot! I just followed the compiler hints 😉
  10. Attila Kovacs

    Generic class

    @Stefan Glienke I've tried, without success. "public virtual void Test()" in TTest1 and "public new void Test() {" in TTest2. That's why I'm asking, but really don't want to convert this conversation into a c# for dummies (me).
  11. Attila Kovacs

    Generic class

    I have never seen c# before. And we were living in a small shoebox in the middle of the road. Now, hijacking the topic for a small moment, how do you make this c# snipplet to print "TTest2.Test"?
  12. Attila Kovacs

    Generic class

    You mix static and non static? Remove 'static' and new TTest<TTest2>().TestIt(); prints "TTest1.Test" https://dotnetfiddle.net/S3DAGW
  13. Attila Kovacs

    FireDAC Postgresql performance vs ADO SQL/Server performance

    I have no idea how should both work at the same time. Does the grid filters per sql and refetch? What "fetchmode" setting will be used? Are there keyfields in the tables? (primary key) Can you monitor the traffic to find bottlenecks? (TFDMonitor? I don't know it's name)
  14. Attila Kovacs

    Array size increase with generics

    @Dmitriy M Yes, but if I would touch the RTL I would rather make some of the methods virtual and get is solved without any attribute decoration if possible. Or adding an OnCreateObject event for the case it's not able to create the object from the RTTI information (which I'm still not getting why isn't it able to do so). Maybe I should make these changes and present a working version instead of speculating. I wish I had time for that (too).
  15. Attila Kovacs

    Array size increase with generics

    "Note that we need at least one type keyword between the alias and its use inside the attribute." As If Millions Of Voices Suddenly Cried Out Didn't know this 😮 Then this "type"-ing could also impact compile speed in some units. Unfortunately this will barely work for example in Berlin U2 (or prior) as it was released meanwhile a coffee break and my "REST.JsonReflect.pas" has things like raise Exception.Create('NOT IMPLEMENTED'); or "revAttr.ObjectsReverter(Data, FieldName, GetArgObjects(revEv.FFieldClassType," where revEv is not setted in the 3rd case of the if, and it's either nil or points to garbage. I gave up pursuing TObjectList and JSON. A single "virtual;" on any random method of any random JSON handler class would make it 1000% more usable. I ended up with a base class where I'm managing the objects through RTTI, and storing them in arrays. Drawback is, every object must inherit from this base class or handle its objects himself. I don't like it either.
  16. Attila Kovacs

    Biometric Template type

    google found this on the first place: https://templates.machinezoo.com/ansi378-2004 first 26+ bytes are "ANSI INCITS 378-2004 template", don't ask me what is it, but this lead to this site: https://www.nist.gov/itl/iad/image-group/resources/incits-standardized-biometric-data and this dl link "INCITS 378 index finger minutiae templates - 233K. Last updated Oct 3 13:24" where are .frmpiv files in it, which contain 0000000050: 00 00 00 00 00 00 00 00 │ 46 4D 52 00 20 32 30 00 FMR 20 0000000060: 04 40 FF FF FF FF 80 01 │ 01 D0 02 20 00 C5 00 C5 @ÿÿÿÿ€Ð Å Å there is your header magic, 46 4D 52 = FMR
  17. Attila Kovacs

    10.4 Beta with Update Subscription

    Rather later than a monday version again.
  18. Attila Kovacs

    Array size increase with generics

    I'd prefer Lines.Add(Data);
  19. Attila Kovacs

    Debug visualizers

    @dummzeuch how do you return the date without the apostrophes? Just cutting them off by yourself? Edit: hmmm no, because you have the double value at the bottom. "Also, for now, I won’t provide source code for them. I haven’t yet decided whether I want to make them yet another open source project or maybe a commercial product." Did you decide in the last ~3 years? 😉
  20. Attila Kovacs

    Capture a signature and store in DB

    Thx Ian. I'm afraid it's rather the lack of a touchmanager in VCL. At least I could not find any info how to fire it up, if it even possible. Maybe somebody has an idea.
  21. Attila Kovacs

    Capture a signature and store in DB

    You have to declare OnChangeSigNo first, but from now you have to do some work too 😉 OnChangeSigNo = TNotifyEvent which means you add a procedure to your form like: procedure TForm1.OnChangeSigNo (Sender: TObject); begin end; Please let me know if it works over Thinfinity. @Sherlock could you rename the topic that others can find it too?
  22. Attila Kovacs

    Capture a signature and store in DB

    You should forget imgSigno and pass "Image1" in the Create(). imgSigno is not instantiated, its just declared. Delete it. fSigno := TSigno.Create(Image1);
  23. Attila Kovacs

    Capture a signature and store in DB

    Just created a new app and works fine for me. You have to debug. Is it a VCL app? The TImage is on the Form not just declared somewhere?
  24. Attila Kovacs

    Capture a signature and store in DB

    Hi Ian, I'm not sure if it helps as I don't know Thinfinity, but this is the unit I made for capturing signatures. Just create the class with a TImage in the construcor parameter: imgSigno: TImage; .... FSigno := TSigno.Create(imgSigno); FSigno.OnChange := OnChangeSigno; On the OnChange you can do some validation or GUI events like enabling a button OK. You can set the FSigno.PenWidth to fine tune the signature quality. On SaveAs* the image will be cropped to the actual signature to minimize the image size. You can use it as you want if it works or helps. Signature.pas
  25. I must have misunderstood the topic title. My apologies.
×