hammadmajeed
asked on
Turning off the hint for a tree node
Hi,
Can anyone tell me how i can turn off the hint that pops up everytime my mouse moves on the tree node of a tree view (provided that it is cut). I want to suppress that. Is there anyway i can accomplish that.
Note: it has nothing to do with Showhint property.
Thanx in advance.
Hammad
Can anyone tell me how i can turn off the hint that pops up everytime my mouse moves on the tree node of a tree view (provided that it is cut). I want to suppress that. Is there anyway i can accomplish that.
Note: it has nothing to do with Showhint property.
Thanx in advance.
Hammad
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Depends on Delphi version.
Havent tried it but its what Ive ot listed as doing the job... worth a try.
regards
Smurff
procedure TForm1.FormCreate(Sender: TObject);
begin
SetWindowLong(TreeView1.Ha ndle,
GWL_STYLE,
GetWindowLong(TreeView1.Ha ndle,GWL_S TYLE) or $80);
end;
regards
Smurff
procedure TForm1.FormCreate(Sender: TObject);
begin
SetWindowLong(TreeView1.Ha
GWL_STYLE,
GetWindowLong(TreeView1.Ha
end;
Well, I admit, I was overkilling. Version 4.70 and above of commctrl (I think IE 3.0 and above) support the TVS_NOTOOLTIPS which is $80 and unless you are using a very old version of the library smurff is right.
F.
F.
And it works, too. Nice to learn new things.
ASKER
the codes u ppl wrote only work in win2k, if u try that code in win95/98, it still is displaying tooltip. i think it is coz of older version of commctrl, is it right?
Hammad
Hammad
Installing a newer Internet Explorer (e.g. 5.0 or later) _will_ fix it even on 95/98.
F.
F.
ASKER
cant it is possible with the default version that is installed with 95/98(without any kind of upgradation).
Hammad
Hammad
I guess not. If the functions not in the .dll then you`ll have to upgrade if you want this functionality. If I were you put something in your app. that will check the version number and if its the wrong one then automatically run the upgrade.
regards
Smurff
regards
Smurff
Thank you Hammad for accepting my comment as answer. It's a nice thing to get points while learning new tricks, too :)
F.
F.
in object inspector set tooltips to false.
or on a mouse event
treeview1.tooltips := false;