Jump to content

uligerhardt

Members
  • Content Count

    83
  • Joined

  • Last visited

Everything posted by uligerhardt

  1. uligerhardt

    Updating Table of Contents in docx with OOXML

    I'd compare your original docx before and the one after the user pressed "Yes". Maybe you can see what you have to change in the differences.
  2. uligerhardt

    Found and remove unused uses units

    That's only true for the uses-clause entries that the form designer manages. (Which is a tiny fraction in my development.)
  3. uligerhardt

    10.4.1+ Custom Managed Records usable?

    If I'm not missing anything, Oxygene didn't "reverse" it, but kept it consistent with Pascal.
  4. There is http://docwiki.embarcadero.com/RADStudio/Sydney/en/Writeable_typed_constants_(Delphi). It's just off per default for some years now.
  5. uligerhardt

    win32metadata

    https://blogs.windows.com/windowsdeveloper/2021/01/21/making-win32-apis-more-accessible-to-more-languages/ Sounds very interesting.
  6. uligerhardt

    win32metadata

    Ok, then I misunderstood you. 😎
  7. uligerhardt

    win32metadata

    This is about generating wrappers for classic Win32 API, Not some WinRT stuff. Autogenerate Windows.pas! 😎
  8. uligerhardt

    List&Label - HWND of preview form

    Hello! I want to show a MessageBox from inside a TL21_.OnViewerButtonClicked event handler and need the window handle of the preview form for that. Any idea how to get there?
  9. uligerhardt

    List&Label - HWND of preview form

    I tried it just now, and it works AFAICT - I used GetWindowText(gPrintReportWnd, ...) to verify. Thanks a lot.
  10. uligerhardt

    List&Label - HWND of preview form

    Here is the relevant code, a bit condensed: type TPrintLLReportEventHandler = class public procedure OnViewerButtonClicked(Sender: TObject; Button: TViewerButton; var PerformDefaultAction: Boolean); end; { TPrintLLReportEventHandler } procedure TPrintLLReportEventHandler.OnViewerButtonClicked(Sender: TObject; Button: TViewerButton; var PerformDefaultAction: Boolean); begin if Button = vbExit then begin MessageBox(AWnd, .....); // <= I'd like to get the preview form's window handle here for AWnd end; end; var evh: TPrintLLReportEventHandler; evh := TPrintLLReportEventHandler.Create; try MyLLReportInstance.OnViewerButtonClicked := evh.OnViewerButtonClicked; // Show preview here (using LL_PRINT_PREVIEW) finally evh.Free; end;
  11. uligerhardt

    List&Label - HWND of preview form

    Sorry, forgot to mention it in the message body. It's the List&Label report component.
  12. uligerhardt

    TdxfOutlookBar for Delphi 5

    Yes. I guess DevEx wouldn't like us to pass links around, however outdated the components may be.
  13. Very good. 🙂
  14. uligerhardt

    how to get a pseudo-design mode at run-time

    No, that's "original content" that I just created just for this thread. 😄
  15. uligerhardt

    how to get a pseudo-design mode at run-time

    Maybe using TApplicationEvents.OnMessage like in the attached project. RerouteMouseDown.zip
  16. uligerhardt

    looking for a lo-fi Delphi Style

    There is Visual Forms (http://www.jed-software.com/vf.htm). Never tested it.
  17. uligerhardt

    Label Style and Color in DFM

    That's how TFont is streamed, at least in VCL: Either you leave ParentFont at True or the complete TFont properties are stored. I hate that too.
  18. uligerhardt

    IDE adds {$R} between units

    I'd check the *.dproj for spurious entries.
  19. uligerhardt

    Report components: good, bad, ugly

    Regarding dynamic construction: I only know FastReport and List&Label. Both have DOM-like APIs. And FastReport has scripting.
  20. uligerhardt

    Motif: easy pattern matching toolbox

    Um - the name Motif is already taken: https://en.wikipedia.org/wiki/Motif_(software).
  21. uligerhardt

    Funny Code in System.Types

    I wasn't clear enough... Why would you rely on this even if it worked?
  22. uligerhardt

    Funny Code in System.Types

    Why would you rely on this? Without the tiniest comment?
  23. Thanks! I missed that feature on every Delphi upgrade. Re: clipboard format: Can't you just hand over the text? You can probably even put into a TMemIniFile for reading.
  24. uligerhardt

    converting a C enum to Delphi

    Couldn't you use a normal Delphi enum (i.e. without assignments) for the "main" values and define the extraneous ones as untyped constants?
  25. uligerhardt

    Anon methods passed as event handlers?

    No, that's why I'm talking about class methods. You can use them like this: type TMyEventHandler = class public class procedure OnError(const AMessage: string); end; Something.OnError := TMyEventHandler.OnError; The method has to be non-static to provide the needed Self parameter.
×