[Customdrawn] Dialog problems. attn Felipe or zeljko

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Mon Sep 3 20:05:43 CEST 2012

On Mon, Sep 3, 2012 at 6:42 PM, Giuliano Colla
<giuliano.colla at fastwebnet.it> wrote:
> It turned out that my implementation wasn't usable at all (I was using a
> pre-built form with an lfm file) and I've been forced to rewrite everything
> from scratch.

I think that it is better to write the dialog in code completely,
without any LFM.

> Now I'm somewhere halfway. I've got a functioning basic LazDialog, but it's
> not really CustomDrawn, because it's actually showing WS BitButtons.

The dialogs should use LCL controls and be usable in any widgetset, so
this is correct.

> Next step would be implementing the minimal CDBitButton functionality
> required for dialog buttons (basically setting the proper Kind, and the
> Modal Result, and maybe implementing AutoSize) starting from CDButton.
> Shall I do it, or there's already work in progress in that direction, and
> I'd be reinventing the wheel?

You can work on that. I think that there is already a partial
implementation. CDButton supports glyph in itself.

> One more question. LazDialogs is compiled in Delphi mode, while what I've
> done (and kept in a separate module for the time being) is compiled in fpc
> mode. Shall I fix that too, or there's a deep reason to keep Delphi mode for
> LazDialogs?

Like you prefer, for me it doesn't matter.

Felipe Monteiro de Carvalho

More information about the Customdrawn mailing list