Autor Beitrag
X-Cape
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win XP Prof.
Delphi 7 PE
BeitragVerfasst: Mi 11.01.06 10:13 
Hi,
ich benutze CoolTrayIcon von Troels Jakobsen, ich habe die CoolTrayIcon.pas eingebunden,
aber der Compiler sagt beim Aufruf
TCoolTrayIcon.ShowBalloonHint('TESCHT','TESCHTTEXT',bitNone,60);
das der Aufruf nur für Klassenmethoden erlaubt ist.
Wer weiss wie man es richtig macht??

Ich habe die Unit unter Interface/Uses eingebunden, kann das damit zusammen hängen??

Vielleicht bringt euch die Fehlermeldung was.
Ich hab mal nen Screenshot hochgeladen.

X-Cape

Moderiert von user profile iconraziel: 3 Beiträge zusammengefasst und Screenshot vom BMP- ins JPEG-Format konvertiert und angehängt.
Einloggen, um Attachments anzusehen!
Danny87
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 688

Windows 10 Pro 64bit
Sprachen: HTML, PHP, JavaScript, Delphi || IDE: RAD Studio 10.1 Berlin Starter, WeBuilder
BeitragVerfasst: Mi 11.01.06 11:05 
versuchs mal ohne das T.#
also so

ausblenden Delphi-Quelltext
1:
CoolTrayIcon.ShowBalloonHint('TESCHT','TESCHTTEXT',bitNone,60);					



ersetze aber cooltrayicon durch den namen, den du ihm gegeben hast ;-)

//Edit. Du musst cooltrayicon natürlich als komponente eingebunden haben


gruss daniel

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
X-Cape Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win XP Prof.
Delphi 7 PE
BeitragVerfasst: Do 12.01.06 13:14 
user profile iconDanny87 hat folgendes geschrieben:

ersetze aber cooltrayicon durch den namen, den du ihm gegeben hast ;-)

Wie genau meinst du das :?:
X-Cape
Danny87
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 688

Windows 10 Pro 64bit
Sprachen: HTML, PHP, JavaScript, Delphi || IDE: RAD Studio 10.1 Berlin Starter, WeBuilder
BeitragVerfasst: Do 12.01.06 13:45 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
...
begin
CoolTrayIcon1.ShowBalloonHint('TESCHT', 'TESCHTEXT', bitNone, 60);
end;
X-Cape Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win XP Prof.
Delphi 7 PE
BeitragVerfasst: Do 12.01.06 14:55 
Hi,
das heisst
ich erstelle

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var
CoolTrayIcon1:TBalloonHint;
{...}
begin
CoolTrayIcon1.ShowBalloonHint('TESCHT', 'TESCHTEXT', bitNone, 60);
end;


oder wie??
X-Cape

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt
Danny87
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 688

Windows 10 Pro 64bit
Sprachen: HTML, PHP, JavaScript, Delphi || IDE: RAD Studio 10.1 Berlin Starter, WeBuilder
BeitragVerfasst: Do 12.01.06 15:22 
???? was machst du denn da ????
hast du das TCoolTrayIcon nicht als Visuelle Komponente integriert??
X-Cape Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win XP Prof.
Delphi 7 PE
BeitragVerfasst: Sa 14.01.06 11:07 
Titel: OK, jetzt hab ich es
Jetzt hab ich das: Ich muss das Icon noch anzeigen lassen, sonst wird natürlich auch kein Balloontipp angezeigt.:idea::x
X-Cape