create form runtime and make trabpagecontrol(tratabsheet as parent of form)

Raudus Forums Runtime create form runtime and make trabpagecontrol(tratabsheet as parent of form)

This topic contains 0 replies, has 1 voice, and was last updated by  palmsistemas 7 years, 7 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #33010

    palmsistemas
    Participant

    hi.. how to make tabsheet be parent of my form ,

    i was try this

    procedure TFrmMain.RaButton1Click(Sender: TObject);
    var ratabsheetx: TRaTabSheet;
      aform: TFrmDefaultList;
    begin
      RaTabSheetx := TRaTabSheet.Create(nil);
      RaTabSheetx.TabControl := RaTabControl1;

      RaTabSheetx.TabVisible := true;
      RaTabSheetx.Visible := true;
      RaTabControl1.ActiveTab := RaTabSheetx;

      aform := TFrmDefaultList.Create(nil);
      aform.Parent := ratabsheetx;

      RaTabSheetx.Title.Caption := aform.Caption;
      RaTabSheetx.Title.Width := 200;

      aform.Show;

    end;

     

    but it’s not make the tabsheet parent of the form .

    has any body have try to make tratabsheet as parent of the form ..

    thank’s before

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.