Autor Beitrag
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Sa 11.03.06 20:49 
Hallo!
Grundfrage ist: Wie kann ich verhindern, dass meine Form maximiert wird?

Eigentlich ganz simpel, gäbe es dort nicht ein paar Einschränkungen:
-durch den Einsatz der TspTBXTitleBar aus der Komponentensammlung Suche bei Google SPTBX LIB wird der BorderStyle der betroffenen Form automatisch auf bsNone gestellt, was auch so bleiben muss. Dadurch haben die Einstellungen bei TFormXY.BorderIcons keine Wirkung mehr.
-Wenn ich einen Doppelklick auf die Titelleiste mache, wird das Fenster auch schön maximiert, wie bei einer normalen Titelleiste (also nicht spTBXTitleBar). Die würde ich gerne auch verhindern.

:arrow: Läuft dieser Vorgang über Messages (WM_bla, CM_bla,...)? Kann ich diese schön abfangen und ins nichts verrinnen lassen?

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: So 12.03.06 11:19 
Hallo,

helfen Dir da eventuell die Schweitzer weiter?:
...eine Form nicht vergrößerbar aber verschiebbar machen?

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
alias5000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: So 12.03.06 11:23 
Danke Lannes, aber ich glaub nicht, dass es das ist, was ich meine.
Ich verweise hierzu an den parallelen Thread in der DP, um mich nicht wiederholen zu müssen, was ich wirklich meine: www.delphipraxis.net...n+mit+sptbx+lib.html

_________________
Programmers never die, they just GOSUB without RETURN
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: So 12.03.06 11:53 
Hallo,

user profile iconalias5000 [in der DP] hat folgendes geschrieben:
Logisch, zur Not nehm ich auch das, aber viel lieber wärs mir, wenn beim Doppelklick auf die Titelleiste gar nix passiert und wenn man im Systemmenü gar nicht auf maximieren klicken kann.


den Doppelklick verhindern, verschieben der Form ist aber dann auch nicht mehr möglich:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
//...
  private
    procedure WMNCHitTest(var Message: TWMNCHitTest); message WM_NCHITTEST;
/...
procedure TForm1.WMNCHitTest(var Message: TWMNCHitTest);
begin
  inherited;
  with Message do
  begin
    if Result = HTCAPTION then
      Result := 0;
  end;
end;


Das System-Menü kann man beeinflussen bzw. verändern, finde den Code aber gerade nicht. :|

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
alias5000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: So 12.03.06 12:07 
Das ist doch mal ein Ansatz! Blöd natürlich, dass das verschieben dann auch nicht Möglich ist.
Wann tritt diese Message immer auf?

_________________
Programmers never die, they just GOSUB without RETURN
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: So 12.03.06 12:29 
Hallo,

wenn in den Bereich der Titelleiste geklickt wird >> 'HTCAPTION'.
Also auch bei Doppelklick oder MouseDown(wenn Du die Form verschieben willst).

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
alias5000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Fr 07.04.06 19:46 
So diese Sache hat sich auch erledigt. Das war schlichtweg ein Fehler in der Komponente, was der Autor Robert Lee in der nächsten Version korregieren will. Danke Lannes, für dein Engangement!

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN