Jump to content

Attila Kovacs

Members
  • Content Count

    1977
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by Attila Kovacs

  1. Attila Kovacs

    How to manage defined list values

    You could associate the loaded values with enums, but which of the above mentioned versions showing you the constant values with codeinsight?
  2. Attila Kovacs

    How to manage defined list values

    Or you could convert a JSON on the fly to any record or class, thus the multi-language support you mentioned would be solved too. The question is, do you really need this amount of data linked to every single project?
  3. Attila Kovacs

    New TForm - Defaults

    Create a form you like, right click on it, add to repository....
  4. Attila Kovacs

    FastMM Full Debug Mode and JCL problem

    Not using goole 😛 https://issuetracker.delphi-jedi.org/view.php?id=6560
  5. Attila Kovacs

    ShellExecute and passing of password

    If you can alter both apps I would create an encrypted file and pass it to the other as parameter.
  6. Attila Kovacs

    Creating a Shell-Link with hotkey property

    I'm not sure if you missed the second line in the code "shortcut creation object". I did not know that you want to edit existing shortcuts, sorry. I'm wasting here my time. Confirmed.
  7. Attila Kovacs

    Creating a Shell-Link with hotkey property

    This is how I'm using it. SCut := TWin32ShortCut.Create; try SCut.Location := ciDesktop; SCut.FileName := sp[0]; SCut.AppPath := ResolvePath(sp[1]); SCut.WorkDir := ResolvePath(sp[2]); SCut.IconPath := ResolvePath(sp[3]); if l > 4 then if TryStrToInt(sp[4], i) then SCut.IconIndex := i; SCut.SaveShortCut; finally SCut.Free; end; function ResolvePath(const Path: string): string; var sp: TArray<string>; i: Integer; begin sp := Path.Split(['%']); Result := ''; for i := 0 to High(sp) do case i mod 2 of 0: Result := Result + sp[i]; 1: Result := Result + GetEnvironmentVariable(sp[i]); end; end;
  8. Attila Kovacs

    Creating a Shell-Link with hotkey property

    And? Change Published to Public and TWin32FindDataA to TWin32FindDataW or TWin32FindData, Dummy: Longint to Dummy: Cardinal
  9. Attila Kovacs

    Creating a Shell-Link with hotkey property

    https://web.archive.org/web/20171110112441/https://www.tek-tips.com/faqs.cfm?fid=7526
  10. Attila Kovacs

    Creating a Shell-Link with hotkey property

    They killed Kenny! Strange, I just opened it 5 minutes ago 😄 Try it later again, its a thin unit to do the same. (As I understand your needs)
  11. Attila Kovacs

    Creating a Shell-Link with hotkey property

    https://www.tek-tips.com/faqs.cfm?fid=7526 ?
  12. Attila Kovacs

    Memo scrolling to the bottom ... sometimes

    Why is this thread in RTL and DOP?
  13. Attila Kovacs

    TJson - Strip TDateTime property where value is 0?

    @Lars Fosdal Thx for the input, I wanted to create something generic with the less effort, I'll go with Uwe's example above and decorate the fields for this PHP API for now. Strange, that I'm the only one who facing this, but the DecodeISO8601Time() conversion in System.DateUtils is not ISO8601.
  14. Attila Kovacs

    TJson - Strip TDateTime property where value is 0?

    Barely passed 6 months and I'm sitting here with dates like "2019-10-27T22:48:20+0100" from a php API, which are ISO8601 dates, but Delphi can't handle it because of the missing colon in the time zone offset...... I've tried everything I can think of to hook the conversion to TDateTime, globally (not on field basis) but I failed. The corresponding methods are not virtual, Reverter can be regged only on classes, interceptors only on field basis. Maybe it's too late and I'm missing something, @Uwe Raabe, how can I register a reverter for TDateTime? (Creating the marshal objects is not a problem at all, I'm already doing it for other reasons.)
  15. Attila Kovacs

    Delphi 2007 to 10.3 and Windows 10 taskbar issue

    and what if the db changes in the meantime?
  16. Attila Kovacs

    Extremely slow Link phase

    You have to disable every skinning as the whole dialog will be repainted on every compiled line. I'm also stuck on 10.1 but this seems to be the right decision for now.
  17. Attila Kovacs

    Uses Clause Manager in Tree in r2809

    I'm so upset I wrote this comment.
  18. Attila Kovacs

    Ignoring topics

    Hi, If I ignore a topic, I'm getting punished by the activity stream notification as it keeps yielding me unread content on the top even if I click it away. Any workaround?
  19. Attila Kovacs

    jpg validation

    are those jpg's recoded by the forum? It has "CREATOR: gd-jpeg v1.0 (using IJG JPEG v62)" in the header.
  20. It's not valid for the latest ICO format. As I already mentioned, we don't care Windows XP and co. anymore.
  21. From 1995. Did you read the disclaimer?
  22. Windows 10 explorer displays the png compressed 32x32 icon preview so I assume it's a standard now but it's not documented anywhere. Which I also understand as the whole thing is just a crap and could have been only saved by this png hack. But sooner or later they have to dump it or redesign it.
  23. He wrote that ico supports bmp, png, svg... 😉 I didn't believe it so I tested it.
×