Autor Beitrag
Melcho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Mi 23.03.05 08:39 
Moin ich hab da ein Programm da kann man mehrere Notizen machen wenn man sein Text geschrieben hat drückt man OK und dann soll der Text auf einer Form auf dem Desktop liegen hat einer ein Plan wie ich das hin bekomme :flehan:
Danke an alle

_________________
PCP saved my life
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: Mi 23.03.05 09:46 
Also mit...
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure Blabla;
var
Fenster: TForm;
begin
Fenster := TForm.Create(Application);
Fenster.Show;               //bin mir nicht sicher
Fenster.Visible := True;    //was von beidem stimmt
end;

...solltest du eigentlich ein neues Formular erstellen können. ;) Dann noch n Label drauf...
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure Blabla2;
var
Text: TLabel;
begin
Text := TLabel.Create(Fenster);
Text.Visible := True;    //schadet nicht ;)
end;

...und dann mal sehen... ;)
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 23.03.05 10:08 
WEnn du kein Label erstellen möchtest mach es doch einach mit Form.Canvas :wink:
Melcho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Mi 23.03.05 10:08 
Danke das mit dem Fenster funktoiniert perfekt aber wie spreche ich das Label dann an das kennt er dann auf der erzeugten form nicht ?

_________________
PCP saved my life


Zuletzt bearbeitet von Melcho am Mi 23.03.05 10:12, insgesamt 1-mal bearbeitet
wdbee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 628
Erhaltene Danke: 1



BeitragVerfasst: Mi 23.03.05 10:11 
Welchen Text hat denn dein Label? Kein Text?
Melcho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Mi 23.03.05 10:13 
Doch das Label soll den Text einer Memo Box nehmen.

_________________
PCP saved my life
wdbee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 628
Erhaltene Danke: 1



BeitragVerfasst: Mi 23.03.05 10:21 
Der Owner ist per Create da, der Parent fehlt dennoch:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
var
  Text: TLabel;
begin
  Text := TLabel.Create(Form1);
  Text.Parent := Form1;           // Wichtig, wenn von Windows dargestellt werden soll
  Text.Left := 100;               
  Text.Top := 100;
//  Text.Caption Der Own:= 'Mein Text'; // Copy/Paste-Fehler
  Text.Caption := 'Mein Text';
end;


Zuletzt bearbeitet von wdbee am Mi 23.03.05 11:47, insgesamt 1-mal bearbeitet
Melcho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Mi 23.03.05 10:33 
DDDDDDDAAAAAAAAAAAAANNNNNNNNNNNNNKKKKKKKKKKKKKEEEEEEEEEEEE geht alles ihr seid die BESTEN :flehan:

_________________
PCP saved my life
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: Mi 23.03.05 10:38 
user profile iconwdbee hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
var
  Text: TLabel;
begin
  Text := TLabel.Create(Form1);
  Text.Parent := Form1;           // Wichtig, wenn von Windows dargestellt werden soll
  Text.Left := 100;               
  Text.Top := 100;
  Text.Caption Der Own:= 'Mein Text';
end;

Was ist denn das?? :shock: :gruebel:
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 23.03.05 10:51 
Das würde mich auch interresieren :roll: !
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: Fr 01.04.05 20:00 
wdbee??
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Fr 01.04.05 20:02 
Er hat editiert...
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: Fr 01.04.05 20:03 
Ooooops... :oops:

Sorry. ;)