Autor Beitrag
Ronny
Hält's aus hier
Beiträge: 6



BeitragVerfasst: Sa 07.05.05 17:00 
Erstmal Tach zusammen,

ich bin neu hier im Forum und muss erstmal ein dickes Lob aussprechen!!! Ich programmiere
jetzt seid ca 2 Wochen mit Delphi und schlage mich mit Foren Suche und Googeln durch.
Nun stehe ich aber vor einem Problem.

Ich suche einen Syntax um eine Meldung auszugeben. so wie z.B.

ausblenden Delphi-Quelltext
1:
ShowMessage(Edit4.Text + ' Test 123456')					


Aber mit diesem Syntax (ShowMessage) hält ja das Programm an und wartet bis die
Message geschlossen wird. Gibt es denn da keine andere Lösung.


Vielen Dank schon mal
mfg Ronny

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt.
Moderiert von user profile iconChristian S.: Topic aus CLX / Delphi Language (Object-Pascal) verschoben am Sa 07.05.2005 um 18:15
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Sa 07.05.05 17:09 
mir fällt da spontan die Komponente TJvBalloonHint ein. Falls du sie nicht kennst, sie ist in der Komponentensammlung JVCL nter JVCL.Sourceforge.net frei erhältlich. Du könntest auch eine neue Form erstellen, die dann als Meldungsbox fungiert und sie mittels FormX.Show; anzeigen. Gruß!

_________________
Programmers never die, they just GOSUB without RETURN
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 07.05.05 17:13 
erstmal :welcome:

Was für ne Meldung soll das sein? ne Info, oder ne Warnung. Wenns ne info reicht doch auch n Label das sie anzeigt. Wenns ne Warnung is mach wie alias sag. :wink:
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 07.05.05 17:15 
Wenn du einfach eine Nachricht ausgeben möchtest, kannst du dir auch einfach ein Formular zur Laufzeit deklarieren und anzeigen. ;) Dann geht's weiter. ;) Ich mach das mal schnell.
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 07.05.05 17:24 
Was meinst du mit Zurlaufzeit deklarieren. Formular zur Entwicklungszeit erzeugen Memo drach, Farbe anpassen und WordWrap auf true, sollte doch reichen.

Aufruf dann so:

ausblenden Delphi-Quelltext
1:
2:
Formx.show;
Formx.Memo1.text := 'Hallo, mein Meldungstext';
Ronny Threadstarter
Hält's aus hier
Beiträge: 6



BeitragVerfasst: Sa 07.05.05 18:16 
Titel: Alles Bestens
Tach noochmal,

Danke danke für eure Hilfe.
Ich habs jetzt mit nem zweiten Form gemacht. Einfach AutoSize auf True und
dann so.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm2.FormCreate(Sender: TObject);
begin
ini := TIniFile.Create(ExtractFIlePath(Application.ExeName)+'Einstellungen.ini');
Meldung1 := ini.ReadString('EMail','Edit4','Kein Wert');
ini.free;
Label1.Caption := ('        '+ Meldung1 +'     ')
end;


Da hätte ich auch gleich drauf kommen können.

Danke nochmal

mfg Ronny

Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt.
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 07.05.05 18:45 
@Fabi:
Genau das hätte ich alles erst zur Laufzeit erstellt. ;)
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 07.05.05 19:09 
Ich nicht, aber, wieso einfach enn's auch umständlich geht. :wink:
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 07.05.05 19:36 
Nun ja. Mit meiner Methode musst du dann aber grad die procedure in dein nächstes Projekt einfügen und hast den Code wieder. Ansonsten musst du das Formular für jedes Projekt neu erstellen. ;)
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 08.05.05 07:25 
Du hast den Code doch schon geschrieben. Dann post ihn halt mal. Vielleicht kann ich da mitschmarozen :wink: