News for hackers. Stuff that matters.
Re:Lazarus 2.0 RC3 – Delphi-compatible cross-platform IDE by tabtab on Tuesday January 08, 2019 @01:42PM (#18858160)
Hmmm, can Lazarus be used to build a "GUI browser"? For example, can one send a "create button" command or tag to it and have it draw one dynamically? What about new panels and forms? How "meta" can its GUI engine be at run-time.
Re:Lazarus 2.0 RC3 – Delphi-compatible cross-platform IDE by vram22 on Tuesday January 08, 2019 @03:46PM (#18859506)
Yes, it may be able to. At least, Delphi, the idea (and language) of which Lazarus is based on, was written in itself, at least for v1, I've read. Probably for later versions too, because Object Pascal (although IIRC the language is now called Delphi, like the product), is a powerful general-purpose programming language, with OOP support, module (units) support, and even some sort of generics (IIRC) in later versions.
Re:Lazarus 2.0 RC3 – Delphi-compatible cross-platform IDE by lmz on Tuesday January 08, 2019 @01:56PM (#18858362)
Yes it can do that. That's how the IDE works and displays the GUI designer.
Re:Lazarus 2.0 RC3 – Delphi-compatible cross-platform IDE by tabtab on Tuesday January 08, 2019 @02:27PM (#18858717)
Can you recommend any documentation on the "meta" angle? Most documentation I find assumes the creation of "static" widgets that are activated or hidden at run-time (or at least act that way).
Re:Lazarus 2.0 RC3 – Delphi-compatible cross-platform IDE by lmz on Wednesday January 09, 2019 @05:52AM (#18863806)
This is for Delphi however it should be very similar for Lazarus: https://stackoverflow.com/questions/1005373/creating-compone...

Nothing magic. Create it, set properties.

Re:Lazarus 2.0 RC3 – Delphi-compatible cross-platform IDE by tabtab on Wednesday January 09, 2019 @12:34PM (#18866717)
Thanks!