Jump to content


Popular Content

Showing content with the highest reputation on 01/30/21 in all areas

  1. Anders Melander

    Hashing Street Addresses ?

    I solve most of my problems in the shower. Eureka!
  2. David Heffernan

    32bit bitmap

    Really? I mean true for bmp files but Windows API supports 32 bit bitmaps fine so far as I know.
  3. Remy Lebeau

    working with new APIs

    You could use the library version of curl, libcurl, directly in your code. There is a Delphi language binding available for it. Or, you could simply convert the curl examples to equivalent HTTP/REST commands and then use whatever HTTP/REST client you want (ICS, Indy, TRESTClient, etc). Swagger is just a user-friendly HTML frontend for invoking REST commands. Any REST command the user can invoke on a Swagger page, an HTTP/REST client can also perform in code. Swagger is primarily meant for humans to use, not programs.
  4. Darian Miller

    Hashing Street Addresses ?

    Rubber Duck Debugging: https://en.wikipedia.org/wiki/Rubber_duck_debugging
  5. Darian Miller

    Hashing Street Addresses ?

    LOL. Feed that dog an extra snack.
  6. david_navigator

    Hashing Street Addresses ?

    Thanks for all the replies and suggestions. Just went for a walk with the dog and realised that I don't need the address info at all, I can index the other data fields (5 x integers) to find the record I need 🙂 Amazing how doing something different often brings alternative solutions to the forefront.
  7. Remy Lebeau

    TaskMessageDlg('.... behind form?

    Yes - if the dialog was not being assigned that Form's HWND as its owner window (in Win32 API terms, not VCL terms). A dialog can never appear behind its owner window, it stays on top of the owner. By default, VCL dialog components typically use the HWND of the currently active TForm that has focus, otherwise they may use the MainForm's HWND, or even the TApplication's hidden HWND. So, if the owner of the dialog is not the Form you are expecting, that would cause the symptom you describe. The main thing to know about TaskMessageDlg() is that it is just a wrapper. Internally, it performs a few system checks to decide whether to use the Win32 TaskDialogIndirect() function vs the VCL's own TMessageForm class. So, for instance, if you wanted to work around this issue, and you knew your app was always running on systems that support TaskDialogs, you could use the VCL's TTaskDialog component (or even TaskDialogIndirect() directly), explicitly passing it your intended Form's HWND as the dialog owner, eg: procedure TMyForm.DoSomething; begin // TaskMessageDlg(...); TaskDialog1.Title := ...; TaskDialog1.Text := ...; ... TaskDialog1.Execute(Self.Handle); end; procedure TMyForm.DoSomething; var config: TASKDIALOGCONFIG; begin // TaskMessageDlg(...); config.cbSize := sizeof(config); config.hwndParent := Self.Handle; config.pszWindowTitle := ...; config.pszMainInstruction := ...; config.pszContent := ...; ... TaskDialogIndirect(config, ...); end;
  8. Hans♫

    Who has tested on M1 already, how does it work ?

    I have a Mac Mini with M1 CPU. You can run PAServer on it and deploy Delphi MacOS apps on it, but you cannot debug. So as long as you choose "Run without debugging", then it works fine. See also this post:
  9. Came across TCodeEdit, which seems to be an independently developed syntax highlight editor.
  10. Angus Robertson

    Best components for creating windows service apps

    Thanks, I'll update the DllSuffixes for the next release of Delphi. I added support for DDService in Delphi 10.4 last summer. Angus