[Lazarus] Multi-Device Designer

Kostas Michalopoulos badsectoracula at gmail.com
Wed Feb 25 15:05:05 CET 2015

Well, a feature like this is something i suggested some years ago
already... although not for supporting mobile devices (IIRC iStuff wasn't
much of a thing then) but to properly support alternative layouts for
different OSes. Even if Lazarus sticks to desktop only stuff, Windows,
Linux and OS X (...especially OS X) have different conventions when it
comes to layout, icons, spacing, etc and at the moment the only solution is
either ignore them (and have your program look awful under OS X) or do
manual modifications via code inside {$IFDEF} blocks to adjust things
(which is painful, error prone and even that quite limiting - button order
or using a different set of icons is impossible, unless you position the
buttons manually and load the icons from the disk).

The form is already a separate file from the code and the IDE has
functionality to unload and reload it, how hard would it be to switch
between different form files? The hardest part would be to make sure all
forms provide the same components (especially when adding a new component
that might be under a different parent) but that could be left up to the
programmer (since the IDE already does a check to see if the code matches
the form so it can remove stuff like events or missing components, if you
try to launch a program with a form file that doesn't match, the IDE might
not allow you to run the program unless you add the missing components).

On Wed, Feb 25, 2015 at 2:22 PM, Sven Barth <pascaldragon at googlemail.com>

> Am 25.02.2015 12:02 schrieb "Graeme Geldenhuys" <
> mailinglists at geldenhuys.co.uk>:
> >
> > On 2015-02-25 10:46, Sven Barth wrote:
> > > we don't
> > > need FM and can instead improve the LCL to handle this better including
> > > native look and feel.
> >
> > Okay, so does that mean currently LCL can't target Android or iOS, but
> > the possibility could exist in the future?  The reason I say this is
> > because to date there is no LCL-iOS or LCL-Android widgetset to choose
> > as a target.
> You cam do this with the CustomDrawn target. Please note that the
> widgetset for iOS is simply Cocoa and not "iOS" (though I don't know what's
> more usable: the Cocoa widgetset or the CustomDrawn-Cocoa widgets; I'd need
> to experiment with that on my Mac ^^ )
> > I haven't really tracked the progress of LCL over the last couple of
> > years. So I'm just trying to compare Delphi and Lazarus to see how they
> > compare for multi-platform and multi-device development. I'm trying to
> > see if Lazarus is a viable option for a future project, or am I better
> > off spending the small fortune and buy a copy of Delphi XE7 (or
> > AppMethod). Maybe alternatives like Xamarin is an option too, but I
> > would like to keep to the Object Pascal language if possible.
> You could also try Oxygene which supports both iOS and Android, but you'll
> have to write platform and framework specific code for both... (so no
> abstraction like the LCL does for example)
> Regards,
> Sven
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150225/f8c08415/attachment-0003.html>

More information about the Lazarus mailing list