Autor Beitrag
Bomania
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 139

Win XP

BeitragVerfasst: Mo 10.02.03 20:21 
Hallo jetzt hab ich noch ne Newbie-Frage: wie öffnet man ein - sagen wir mal - Infofenster? Das zusätzliche Fenster existiert schon in der Form "info.pas", ich möchte es vom Hauptfenster aus per Buttonklick aufrufen lassen. Es soll nicht in der Taskleiste erscheinen und den Zustand "StayOnTop" haben.

Danke
Shadowdragon
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 143

Win 2000
Delphi 6 Pers., Delphi 7
BeitragVerfasst: Mo 10.02.03 20:22 
Also, wenn es nur Text sein soll, probier es mal mit

ausblenden Quelltext
1:
ShowMessage ("Dein Text hier rein") ;					


Das ruft so ne kleine Box auf, in dem dann der Text steht.

_________________
Ein Programm gleicht dem Prinzip von Jenga:
Viele Bestandteile, wird nach oben hin immer besser, nach unten hin immer instabiler und wenn man was falsch macht klappt der ganze Mist zusammen.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 10.02.03 20:24 
ausblenden Quelltext
1:
Form2.ShowModal;					

Unit2 noch in Unit1 mit aufnehmen.
Bomania Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 139

Win XP

BeitragVerfasst: Mo 10.02.03 20:43 
Luckie hat folgendes geschrieben:
Unit2 noch in Unit1 mit aufnehmen.


:oops: wie?
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mo 10.02.03 20:47 
Hallo,

in der uses-Klausel, wo alle anderen Units auch aufgeführt werden ;-)

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Popov
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mo 10.02.03 21:00 
Es gibt viele Methoden ein zweites Fenster sichtbar zu machen:

ausblenden Quelltext
1:
2:
3:
4:
5:
Form2.ShowModal;

Form2.Show;

Form2.Visible := True;


Wenn du ShowModal eingibst und das Programm startest, dann kommt zuerst eine Fehlermeldung und Frage ob die Unit automatisch eingebunden werden soll. Beim zweiten Start ist dann alles drinn.
Bomania Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 139

Win XP

BeitragVerfasst: Mo 10.02.03 21:07 
Thx euch allen! So macht Delphi-Proggen Spaß :lol:
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Di 11.02.03 08:26 
ausblenden Quelltext
1:
2:
Form2.Showmodal; // Zeigt die Form Modal an d.h., wenn du sie verkleinern willst dann verkleinert sich deine mainFrm auch.
Form2.Show; // genau das umgekehrte


nur mal zur erleuterung :D

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Di 11.02.03 09:56 
foxy hat folgendes geschrieben:
Zeigt die Form Modal an d.h., wenn du sie verkleinern willst dann verkleinert sich deine mainFrm auch.

Wie darf ich das genau verstehen?

Gruß
TINO
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Di 11.02.03 09:58 
wie, wie darfst du das verstehen :D

wenn du auf den minimierButton deiner Modalen Form klickst, dann minimiert sich nicht nur die Form, sondern dein ganzes Prjekt, weil die Form ja Modal ist ;)

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Di 11.02.03 10:12 
Ach so. Verkleinern hört sich für mich so an als ob ich die Größe des Modalen Fensters ändere und gleichzeitig ändert sich auch die Größe des Hauptfensters. Aber gut jetzt weiß ich ja was Du meinst. Obwohl ich noch nie ein Modales Fenster gesehen habe in dem ein Minimier-Button vorhanden ist.

Gruß
TINO
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Di 11.02.03 12:45 
Mit form2.show; ist es am besten!
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 11.02.03 13:30 
Und wenn er es modal haben will? Es kommt ganz darauf an, was er will.
Bomania Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 139

Win XP

BeitragVerfasst: Di 11.02.03 17:27 
Für den aktuellen Zweck (Info-Fenster) finde ich die modale Methode besser.