Results 1 to 3 of 3

Thread: MainForm and SubForm

  1. #1

    MainForm and SubForm

    Hallo allemaal,

    Ik heb een Mainform en start een Subform via Show;
    Nu minimaliseer ik de Mainform en dan is mijn Subform ook weg? Logisch denk ik, maar is dit op te lossen?
    Dus de Subform blijft fullscreen op scherm 2 ondanks de Mainform onzichtbaar (Minimize)

    Groetjes.

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    Rotterdam
    Posts
    149
    Is dit misschien iets?

    Delphi Code:
    1. procedure TTestForm.TestBtnClick(Sender: TObject);
    2. begin
    3.   try
    4.     Hide;
    5.     TestSubForm.ShowModal;
    6.   finally
    7.     Show;
    8.   end;
    9. end;

  3. #3
    Dat is niet wat ik bedoel, Knollie.

    Probleem gevonden hier:
    https://stackoverflow.com/questions/...form-maximized

    Voor de fans:
    Code:
    protected
        { Protected declarations }
        procedure CreateParams(var Params: TCreateParams); override;
    
    procedure TSubForm.CreateParams(var Params: TCreateParams);
    begin
      inherited CreateParams(Params);
      with Params do
      begin
       ExStyle := ExStyle or WS_EX_TOPMOST;
       WndParent := GetDesktopwindow; // of 0?
      end;
    end;
    Of het altijd goed gaat dat zien we vanzelf wel

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •