Hi friends,
I am trying to do the following, nothing weird I believe. Just a unit with personalized/themed message and dialog boxes all within. I want to generate different kind of dialogs with different icons, buttons, input boxes, for instance a message box, a password input dialog,a yes/no message, etc. So I can make them all have a similar look in accordance to my needs and the rest of the program. If it's a normal monitor they will look in a way, if it is a touch panel buttons will
be larger, etc. If it's Windows they'll look in a way, if it's Gtk/Qt in another....
I think that the solution would be to pass parameters to the constructor o maybe overloading it. I have'nt figured out how to make my own constructors and how to overload. I allready know how to manage the modal results from the dialogs, but I need the rest.
Please, check out the following code. Is the part that calls the dialogForm:
begin
case dialogForm.ShowModal of // how I create my own constructors? or maybe just a set of parameters?
mrOk : begin
// do whatever...
end;
mrCancel : begin
// do anything else...
end;
end;
Thanks