Jump to content

Attila Kovacs

Members
  • Content Count

    1943
  • Joined

  • Last visited

  • Days Won

    25

Everything posted by Attila Kovacs

  1. Attila Kovacs

    how would you do this? Pass API params from UI into API unit

    in this case you need a wrapper unit with either making a gateway or extending the API with helpers
  2. Attila Kovacs

    Getters & Settters??

    bullshit
  3. Attila Kovacs

    Getters & Settters??

    I would not bother with the constructor just add a method for setup and show: procedure TTracksAddEditForm.ShowForm(const AsMode: string; AiAlbum: integer; const AsTrack: string); begin FsMode := AsMode; FiAlbum := AiAlbum; // or set the controls directly FsTrack := AsTrack; Show; end; use it: TTracksAddEditForm.Create(Self).ShowForm('Insert', blah, buh); or for showmodal function TSomeValueReturningForm.ShowForm(var AVar: string): TModalResult; begin FVar := AVar; Result := ShowModal; AVar := FVar; end; use it: lStringVar := 'Initialvalue'; case TSomeValueReturningForm.Create(Self).ShowForm(lStringVar) of mrOk: DoSomething(lStringVar); else Whatever... end; the variable var TracksAddEditForm : TTracksAddEditForm; is only needed if the forms are created with Application.CreateForm() by the dpr itself. Otherwise it should be deleted immediately.
  4. Attila Kovacs

    Getters & Settters??

    reintroduce is missing
  5. Attila Kovacs

    Getters & Settters??

    are you really using "Show" ?
  6. Attila Kovacs

    Difficulty with component installation

    this is a joker error message from the IDE, it can be anything, path, old binaries in the path, missing dependencies, etc... fire up a process monitor and filter for bds.exe maybe you have luck and you can see it
  7. Attila Kovacs

    SynPdf - wrong colors in PDF export

    can synpdf 1A?
  8. Attila Kovacs

    SynPdf - wrong colors in PDF export

    Those bitmaps are set up diffeently, like pf32bit / pf24bit who knows what else? Could you check them with the same setup?
  9. Attila Kovacs

    Custom component on a VCL frame

    @aehimself I don't get it. I just created a new VCL Form Application plus designed two new frames, then added frame2 to frame1, without creating a custom component. What is the concept behind creating a compound component from a frame? You can also add code to the base frame and override it in the other places. I don't know any Bar Managers except Gunther, but to make a component fill up a given space is normally done with alignment.
  10. Attila Kovacs

    Custom component on a VCL frame

    just being the smart*ss, why are you mixing composite components with frames? can't you just put a frame onto an another frame?
  11. Attila Kovacs

    App is faster in IDE

    you could still put some explicit logging into your application to see where this 14 seconds delay is coming from instead of guessing
  12. Attila Kovacs

    Application.MainForm v Self v Nil??

    you could start here https://docwiki.embarcadero.com/RADStudio/Sydney/en/Components_and_Ownership
  13. Attila Kovacs

    AutoRun.Inf in USB

    I'm not sure if I can talk the english you understand. I'm telling the same. Except, there is no encryption software, it's hardware encrypted. The software only mounts the flash drive's 2nd partition with the entered password's hash. see https://www.verbatim.com/prod/usb-drives/professional-usb-drives/store-n-go-secure-pro/
  14. Attila Kovacs

    AutoRun.Inf in USB

    No, it has nothing on it, they are out of the box, the same as you are describing. Two partitions, one CD, one hardware encrypted. They exists very well nowadays too.
  15. Attila Kovacs

    AutoRun.Inf in USB

    Strange, all encrypted flash drives are autostarting its mounting application, they must be distributing themselves as CD-ROM.
  16. Attila Kovacs

    tedit hint not working

    Your button texts are colorful, that means you have visual styles turned off, but it's needed to show texthint
  17. Attila Kovacs

    tedit hint not working

    then why are you writing hint in the topic if you are such an eagle eye? otherwise no clue. debug the VCL
  18. Attila Kovacs

    tedit hint not working

    it works the opposite way, it's only shown if the edit is not focused
  19. Attila Kovacs

    tedit hint not working

    texthint is not hint, hint is empty and edit is focused so you can't see anything
  20. Attila Kovacs

    How should spaces after a comment be handled by the formatter

    why not? you could name it "The option I didn't want to implement #4223"
  21. Swap the orders, first "b)" then "1." That you can: I. Be sure you can fix something, so it's definitely broken. II. You can make a fix proposal (They will most probably fix it in an other way but it helps them to understand a problem and it's also represents the "expected" result. Such reports are processed faster.
  22. Attila Kovacs

    One large unit vs multiple small units

    The size does not matter. (tm) (dependencies do)
  23. Attila Kovacs

    Stumbled upon serious looking bug report

    @Vandrovnik How get you run that "unit" without touching it?
  24. Attila Kovacs

    Stumbled upon serious looking bug report

    Unit1.pas.20: begin 0041A868 55 push ebp 0041A869 8BEC mov ebp,esp 0041A86B 6A00 push $00 0041A86D 6A00 push $00 0041A86F 6A00 push $00 0041A871 53 push ebx 0041A872 8B5D08 mov ebx,[ebp+$08] 0041A875 8B5B0C mov ebx,[ebx+$0c] ebx is very well initialized
  25. Attila Kovacs

    Delphi Registration

    It's a really cool topic, especially the conversation between DH and KW :DDDD
×