How to Add hint windows to applications?



How to Add hint windows to applications?..

Answer / Deepshikh Singh

To add hint windows (also known as tooltips) to an application in Delphi, you can use the TToolTip component and set its AutoPopDelay property.n```delphinForm1: TForm1;nbeginn InitForm(Form1);n ToolTip1 := TToolTip.Create(Self);n ToolTip1.AutoPopDelay := 200;nend;nprocedure TForm1.Button1MouseOver(Sender: TObject; var MouseState: TMouseState);nbeginn if (MouseState.Buttons = [mbNoButton]) and (MouseState.Clicks = 0) then ToolTip1.ShowHint(Button1, 'This is a button');nend;n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

What is "Error 113" during installation?

1 Answers  


How to Set the caption of the preview window?

1 Answers  


what are the common Problems with printing, preview and paper size in Quick Reports?

1 Answers  


How to Pass TPrinter handle to GetDeviceCaps() ?

1 Answers  


How to use Access97 drivers with BDE 4.51 ?

1 Answers  


How to create an example of your problem for Borland Developer Support?

1 Answers  


How to retrieve the position of the cursor?

1 Answers  


How to Use Visual Basic arrays in Delphi ?

1 Answers  


'Trying to append data to a non-partial dataset' . what does this error indicates?

1 Answers  


How to detect if the current user is logged in administrator?

1 Answers  


When I use the Glyph property, how do I know which color is transparent?

1 Answers  


How to handle exceptions in Thread objects ?

1 Answers  


Categories