[Customdrawn] Dialog problems. attn Felipe or zeljko

Giuliano Colla giuliano.colla at fastwebnet.it
Mon Sep 3 18:42:14 CEST 2012

Felipe Monteiro de Carvalho ha scritto:
> Ops, sorry, I forgot to answer this one =)
> On Fri, May 4, 2012 at 5:51 PM, Giuliano Colla
> <giuliano.colla at fastwebnet.it> wrote:
>> 1) My plan would be to follow exactly the way of the standard LCL Dialog
>> unit: it provides a MessageDlg function, overloaded in a number of versions
>> to offer different options, plus some other functions like MessageBox, etc.
>> So I would provide our corresponding number of overloaded LazMessageDlg
>> functions, a LazMessageBox etc. Is that Ok or the plan was somewhat
>> different?
> I think it is a good idea.
>> 2) Dialog unit contains only the Interface section, while implementation is
>> a number of includes. Wold you prefer to follow the same line from the
>> beginning, or better keep everything in the main unit while the size is
>> manegeable?
> I'd keep in the same file for now. We can split later if necessary.
>> 3) Message dialogs offer among the possible buttons also a Help button, and
>> there is a HelpContext parameter, for a Help dialog. I've never used this
>> feature and I have no idea of how it works. Do you have some knowledge on
>> that line, can you point me to a wiki page which explains everything, or we
>> will just leave it unimplemented, waiting for future upgrade?
> I don't remember ever seeing where this is implemented in the LCL, I
> don't know much about this part.

I've been silent for a long time, because I've been quite busy. But I 
squeezed in some work for CustomDrawn Dialogs.

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.

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.

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?

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?


Giuliano Colla

Before activating the tongue, make sure that the brain is connected 

More information about the Customdrawn mailing list