Autor Beitrag
mitor
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 35

WinXP Home
D 6.0 PE
BeitragVerfasst: Mi 22.02.06 13:40 
Hallo,

wie kann ich es bewerkstelligen, dass das fenster nicht maximiert bzw. die Formulargröße nicht verändert werden kann.


btw. wie kann ich auf "knopfdruck" die farbe eines textes ändern (hab's mit label.color versucht, aber wollte nicht so wirklich).


danke schonmal
Miri
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Mi 22.02.06 13:50 
also bei delphi 2005 hab ich bei den eigenschaften des forms die möglichkeit "bordericons" auszuwählen. musst du mal schauen, vielleicht geht das bei dir auch (hab hier gerade kein anderes delphi)

und mit dem label...da musst du label.font.color := clred; nehmen ;)
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Mi 22.02.06 13:57 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.FormCreate(Sender: TObject);
begin
 with form1 do 
  BorderStyle := bsSingle;
  BorderIcons := [biSystemMenu, biMinimize, biHelp];
end;
Danny87
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 688

Windows 10 Pro 64bit
Sprachen: HTML, PHP, JavaScript, Delphi || IDE: RAD Studio 10.1 Berlin Starter, WeBuilder
BeitragVerfasst: Mi 22.02.06 13:59 
das geht auch mit constraints im objektinspektor
da kannste die minimale und die maximale grösse angeben.

gruss daniel
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 22.02.06 14:03 
Du kannst den BorderStyle auf bsDialog ändern oder das Ereignis OnCanResize nutzen und den Rpckgabeparameter Resize auf false setzen.
mitor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 35

WinXP Home
D 6.0 PE
BeitragVerfasst: Mi 22.02.06 17:17 
user profile iconDanny87 hat folgendes geschrieben:
das geht auch mit constraints im objektinspektor
da kannste die minimale und die maximale grösse angeben.

gruss daniel


danke, genau das hab ich gesucht ;)

auch den anderen danke für's antworten