I have a little newbie problem: I have an application that contains a
main form and multiple secondary forms. Those 'secondary forms'
contain TColorDialogs. THe problem is, whenever a user clicks the
button to open the TColorDialog, It brings up the main form and opens
the dialog there, instead of opening it by the secondary form that
I haven't found any setting that would allow me to specify the
'parent' for the ColorDialog. Could anyone point out to me how to do
it or where to look?
The colordialog has it's own "form" so part of what you're asking
doesn't make sense.
Provide your code if the example below doesn't help.
You should have something like this on each form to do what you're
trying to do.
procedure TForm2.BitBtn1Click(Sender: TObject);
if Colordialog1.Execute then
form2.color := colordiaglog2.color;