Autor Beitrag
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Mi 19.03.08 10:30 
Hi,

Ich will im Hint einer Scrollbar die Einstellung anzeigen und habe dazu das Anzeigen des Hints bis nach TComponent zurückverfolgt(der Hint wird während des Scrollens dummerweise ausgeblendet...).
Dort habe ich folgende Methode gefunden, verstehe aber leider nichts von Messages:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TControl.CMHintShow(var Message: TMessage);
begin
  if (ActionLink <> nil) and
    not ActionLink.DoShowHint(TCMHintShow(Message).HintInfo^.HintStr) then
    Message.Result := 1;
end;

Die Methode kann ich ja aufrufen, nur wie erstelle ich die Message, die Ich ihr übergeben muss?

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
Hidden Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Do 20.03.08 18:04 
Okay, hat sich erledigt: Intern habe ich zwar auch eine Sache in die Richtung gefunden, aber das hier ist so viel besser, dass ich doch mal einen externen Link nehmen möchte...
Edit: An dieser Stelle möchte ich aber doch mal das Design Des Delphi-Forums loben, was man sonst so sieht ist ja echt unlesbar! [/Edit]

entwickler-forum.de/showthread.php?t=29378

Sollte jemand einen direkten Weg kennen, also ohne THintWindow, bin ich weiterhin für alles offen :wink: (z.B. mit Messages).

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)