I download this assistant
When I open it, I'd like it to show in the center of a specific panel.
But I don't know how to give the location where is my panel on my form,
I have this code from the assistent example, maybe it can give an idea how to.
Assistant.ActorLibrary := '';
Assistant.OnGuideOptionsClick := nil; // To prevent re-entrance
//OpenDialog.FileName := Assistant.ActorLibrary;
if OpenDialog.Execute and (Assistant.ActorLibrary <> OpenDialog.FileName) then
OldSize.CX := Assistant.Width;
OldSize.CY := Assistant.Height;
Pos := Assistant.BoundsRect.TopLeft;
Assistant.ActorLibrary := OpenDialog.FileName;
Inc(Pos.X, (OldSize.CX - Assistant.Width) div 2);
Inc(Pos.Y, (OldSize.CY - Assistant.Height) div 2);
Assistant.Visible := True;
// Assistant.OnGuideOptionsClick := SelectButtonClick;
As you can see, it has the SetPosition but I don't know how to get the x and y from my panel in my form.