Autor Beitrag
blackbirdXXX

ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1077
Erhaltene Danke: 1

Ubuntu Dapper

BeitragVerfasst: Fr 01.08.03 21:37 
Wie kann ich das machen das sich mein Fenster bei BorderStyle := bsNone vergrößern und verkleinen kann so wie bei einem bsSizeable?
Gibt es da so etwas wie beim verschieben?


Etwas wie das:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
if ssLeft in Shift then
begin
  ReleaseCapture;
  Self.Perform(WM_NCLBUTTONDOWN, HTCAPTION, varEmpty);
end;

_________________
Klein, schwarz und ärgert Techniker? Jumper!
Terra23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 872

Win 8
Delphi 7
BeitragVerfasst: Fr 01.08.03 22:42 
So?

ausblenden Delphi-Quelltext
1:
2:
Form1.Height:=Integerwert;
Form1.Width:=Integerwert;


:?: :!: :?:

_________________
Hasta La Victoria Siempre
blackbirdXXX Threadstarter

ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1077
Erhaltene Danke: 1

Ubuntu Dapper

BeitragVerfasst: Sa 02.08.03 06:39 
nein, nein.
Ich meine das so das ich das mit der Maus vergrößern und verkleinern kann.

_________________
Klein, schwarz und ärgert Techniker? Jumper!
kasi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

Win XP
D5 Ent
BeitragVerfasst: Mo 04.08.03 21:07 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
  private
    { Private-Deklarationen }
    procedure WMNCHitTest(var msg: TWMNCHitTest); message WM_NCHITTEST; 
  public
  .........

procedure TForm1.WMNCHitTest(var msg: TWMNCHitTest);
var
  ClientPoint: TPoint;
  ScreenPoint : TPoint;
begin
  inherited;
  ScreenPoint.x := msg.XPos;
  ScreenPoint.y := msg.YPos;
  ClientPoint := ScreenToClient(ScreenPoint);
  label1.Caption := IntToStr(ClientPoint.x);
  label2.Caption := IntToStr(ClientPoint.y);
  if (ClientPoint.x > Width-10) and (ClientPoint.y > Height-10) then
  //if msg.Result = htClient then
    msg.Result := HTBOTTOMRIGHT
  else
    msg.Result := HTCAPTION;
end;

Unten rechts vergrösserts du, sonst verschiebst du.

KASI

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.