Autor Beitrag
PhilGo
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 315

Win 98, Win Longhorn ;-)

BeitragVerfasst: So 21.09.03 13:31 
Hi,

ich hab ein Programm gemacht(mit runden Ecken) bei dem ich die Titel-Leiste wegmachen musste, damit die Ecken wirken.

Und jetzt meine Frage: Wie kann ich die Funktionen Minimieren, Maximieren an eigenen Buttons aufrufen? :nixweiss:

Mfg PhilGo

Moderiert von user profile iconUGrohne: Absätze entfernt

_________________
Sie werden dich finden und töten... Söhne der großen Bärin!
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: So 21.09.03 14:01 
hallo,

minimieren wird mittels form.minimize; und maximieren mittels form.maximize; aufgerufen.


Gruß
Ken

_________________
Eine Klasse beschreibt die Struktur und das Verhalten einer Menge gleichartiger Objekte.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: So 21.09.03 21:34 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
var
  aPoint: TPoint;

GetCursorPos(aPoint);
Perform(WM_SYSCOMMAND, SC_MINIMIZE, MakeLong(aPoint.X, aPoint.Y)); // Minimieren
Perform(WM_SYSCOMMAND, SC_MAXIMIZE, MakeLong(aPoint.X, aPoint.Y)); // Maximieren
Perform(WM_SYSCOMMAND, SC_RESTORE, MakeLong(aPoint.X, aPoint.Y)); // Restoren
Perform(WM_SYSCOMMAND, SC_CLOSE, MakeLong(aPoint.X, aPoint.Y)); // Schließen
Perform(WM_SYSCOMMAND, SC_CONTEXTHELP, MakeLong(aPoint.X, aPoint.Y)); // Kontexthelp

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
PhilGo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 315

Win 98, Win Longhorn ;-)

BeitragVerfasst: Mo 22.09.03 07:15 
Danke schön, mein Problem ist gelöst. :D

Mfg PhilGo

Moderiert von user profile iconUGrohne: Absätze entfernt

_________________
Sie werden dich finden und töten... Söhne der großen Bärin!