Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to change the hint display delay Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
05-Mar-03
Category
Others
Language
Delphi 5.x
Views
115
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			Author: Lou Adler

How to change the hint display delay

Answer:

Solve 1:

I usually use a procedure like this, so itīll calculate the needed time to display 
any hint:
1   
2   procedure TDM.DoShowHint(var HintStr: string; var CanShow: Boolean; var HintInfo:
3     THintInfo);
4   begin
5     CanShow := not ExibirHints;
6       {Global variable the user configured to display the hint or not}
7     HintInfo.HideTimeout := Length(HintStr) * 50;
8       {Calculate the size of the string to wait a certain time}
9   end;



Solve 2:

Put a TApplicationEvents component and play with the OnShowHint event handler:
10  
11  procedure TForm1.ApplicationEvents1ShowHint(var HintStr: string; var CanShow: 
12  Boolean;
13    var HintInfo: THintInfo);
14  begin
15    {Check here the HintInfo class, eg.
16    if HintInfo.HintControl = MyControl then
17      HintInfo.ReshowTimeout := ...
18      HintInfo.HideTimeout := ... }
19  end;


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC