Autor Beitrag
Fädas
ontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 73

Win XP
Delphi 5
BeitragVerfasst: Do 09.02.06 19:08 
Hallo erstmal.
Ich habe ein kleines prog geschrieben, das bei klick auf einen Button 50 andere Fenster öffnet. Danach habe Form1.borderstyle auf bsNone gestellt, damit man die Fenster nicht verschieben kann. Damit ist aber auch der "Schliessen-Button" oben rechts verschwunden. Jetzt möchte ich mit Hilfe eines Buttons das jeweilige Fenster schliessen. Das problem dabei ist, dass ich kein Ereigniss damit bewirke. :gruebel:

Frage: Wie kann ich das jeweilige Fenster durch einen TButton schliessen.

Danke


Moderiert von user profile iconChristian S.: Topic aus VisualCLX (Component Library for Cross Platform) verschoben am Do 09.02.2006 um 19:10
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 09.02.06 19:10 
Erstellst du den Button zur Entwurfs- oder zur Laufzeit?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Fädas Threadstarter
ontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 73

Win XP
Delphi 5
BeitragVerfasst: Do 09.02.06 19:11 
Titel: Laufzeit
ausblenden Delphi-Quelltext
1:
2:
button:=tbutton.create(self);
button.parent:=fenster;


Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Do 09.02.06 23:22 
ausblenden Delphi-Quelltext
1:
Button1.OnClick := Button1Click;					

Hilft das?
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Do 09.02.06 23:31 
Was soll der Quatch überhaupt ? Und vieleicht hilft Dir ja schon Coder seine Antwort.