Recent

Author Topic: Class implementation in GUI-Designer  (Read 2143 times)

braindaddy73

  • Newbie
  • Posts: 2
Class implementation in GUI-Designer
« on: November 18, 2021, 03:31:19 pm »
Hello,

sorry, I am new here. I have a question due to *.lfm and corresponding unit. I'm coming from wxwidgets / c++.

The *.pas only has the class declaration and the implementation of the events. There is no constructor, which builds the frame.

Do I understand right, that the {$R *.lfm}  resource include implements these on compile-time?

Thx
Heiko

braindaddy73

  • Newbie
  • Posts: 2
Re: Class implementation in GUI-Designer
« Reply #1 on: November 18, 2021, 03:46:40 pm »
Ok, sorry, found via delphi.

The lfm file is build in the app and loaded at runtime.


marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Class implementation in GUI-Designer
« Reply #2 on: November 18, 2021, 04:12:49 pm »
Yes, it is stored in a resource. On Windows EXEs these resource sections can be edited, and overlaid with translated resource dlls. (not with lazarus yet though)

 

TinyPortal © 2005-2018