1) an edit control and
2) a ToolTipManager.
By properly adding and configuring a ToolTipItem for the edit box, the tool tip appears correctly on the embedded frame at run-time.
However if I create the frame at run-time like this:
- Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
var
frame1: TFrame1;
begin
frame1 := TFrame1.Create(Self);
frame1.Name := 'Frame1';
frame1.Parent := Self;
end;
The frame appears on the form ok, but the tool tip does not appear to work.
Am I doing this correctly?
I don't get why the tool tip works ok when the frame is embedded at design-time, but not if it is embedded at run-time.
Thanks.
Ian