Marc Weustink wrote:
SALVATORE COPPOLA wrote:
Hi people,
about the "message dialog composer" I sent some time ago
(patch[at]lazarus.dommelstein.net):
1. none noticed;
2. lost;
3. trash;
4. under review
I hope 4 (but not by me at the moment) and I forgot a bit.
I reread the description and it is not fully clear to me what is does, if we
should integrate it in lazarus, or that it is a ide plugin. I think it is the
latter.
ATM is an ide plugin, but to me is an useful tool editor, so could be integrate
directly in Lazarus (but for me is the same).
He is a dialog that interactively compose (and test) "message dialogs" from the
Dialogs.pas unit, hence generate and insert the corrispondent pascal code in
the current unit.
Particularly useful is if the message is a boolean expression of a case block,
after insert a message the user must fill just the case options.
I forgot to add a readme file so I send it now.
The "message dialog composer" is a bit incomplete respect my intention because
can't test, before insert, those messages with "array of const" as parameter
(QuestionDlg) but the source code generate is correct. I was unable to do that.
However, thougth incomplete, my intention is to share with the whole
FPC/lazarus people, hence this mails
(Please forgige my english :-[ ).
Salvatore
Hi Lararus people,
this package contain a Lazarus extension that provide an easy way to compose
all kinds of messages dialog platform indipendent (no meesageboxex...)
How to use this dialog:
1. put the cursor in the source where you want the "dialog source" (if select a
text it will be replaced);
2. click on Edit -> Message Composer ... (or ctrl+M);
3. choose the kind of message: the right parameters will be enabled and the
wrong disabled;
4. fill or choose the right parameters (caption, buttons dlgtype ect.);
5. test dialog or insert in source with ok button
moreover you can "wrap" the dialog (if possible) in an
if..then (else) block;
case..of (else) block;
valid result can be retrived in the "if" "RESULT", string RESULT and "case"
RESULT (in the case block will be listed only the checked items)
About QuestionDlg
To setup the dialog buttons you must use the grid
the first column contain the buttons caption, just type in the cells
the second contain the actual modal result, just pick a value
(PickListCellEditor)
Note that: I don't know how implement a test
About ShowMessageFmt
The user message is "scanned" and the parameters contained in the message are
listed in the grid. The user must fill with valid values the column
Note that: I don't know how implement a test
About InputQuery
The value parameter must be already declared in the source
Salvatore