mierlp Posted February 24, 2019 Share Posted February 24, 2019 Hi See attachment. How can a open the form in the pagecontrol as in the attachement The form is 760w x 560h and is just called by form.show and navigate the the position by hand for the image. I would like to show it in horizontal in the center op the pagecontrole and lets say 50px from the top of the pagecontrol. I have tried a lot of settings/combinations but can't get it working. - Which setting do i need for the showed form (like position, or layout or layoutattribs) - which setting do i need for the pagecontrole Regards Peter Quote Link to comment Share on other sites More sharing options...
Mohammed Nasman Posted February 24, 2019 Share Posted February 24, 2019 why not using frames? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 24, 2019 Share Posted February 24, 2019 Hi Just assign parent. Form.Parent := UniTabSheet; Quote Link to comment Share on other sites More sharing options...
mierlp Posted February 24, 2019 Author Share Posted February 24, 2019 3 hours ago, Hayri ASLAN said: Hi Just assign parent. Form.Parent := UniTabSheet; then the form will open at the left and top site of the tabsheet I can use margins but when resizing the main form wil not position the opened form on the correct possition Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted February 25, 2019 Share Posted February 25, 2019 You can use resize event, or dis link can be helpful http://forums.unigui.com/index.php?/topic/7848-layout-advanced-tutorial/&tab=comments#comment-40129 Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 25, 2019 Share Posted February 25, 2019 19 hours ago, mierlp said: then the form will open at the left and top site of the tabsheet I can use margins but when resizing the main form wil not position the opened form on the correct possition Hi, Set form layout to "fit" Quote Link to comment Share on other sites More sharing options...
GerhardV Posted February 26, 2019 Share Posted February 26, 2019 Set the tabsheet layout to hbox, LayoutAttributrs= align to middel, pack to start and give the form a margin of 50 0 0 0. Quote Link to comment Share on other sites More sharing options...
GerhardV Posted February 26, 2019 Share Posted February 26, 2019 You can also use vbox but then align= center and pack = start. Quote Link to comment Share on other sites More sharing options...
mierlp Posted February 28, 2019 Author Share Posted February 28, 2019 Hi Something i'm doing wrong, but can't find out what. I followed the advize from this thread but it's not showing correctly like described in the first post Attachted a little example. TestCase.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 28, 2019 Share Posted February 28, 2019 Hi, UniTabSheet_Forms -> Layout = fit UniTabSheet_Forms -> AlignmentControl = uniAlignmentClient FormAccount -> LayoutConfig -> Height = 100% FormAccount -> LayoutConfig -> Width = 100% FormAccount -> LayoutConfig -> Margin = Quote Link to comment Share on other sites More sharing options...
mhmda Posted February 28, 2019 Share Posted February 28, 2019 On 2/24/2019 at 1:20 PM, Mohammed Nasman said: why not using frames? Exactly Quote Link to comment Share on other sites More sharing options...
GerhardV Posted March 4, 2019 Share Posted March 4, 2019 Hi Peter - see attached - you also have to set the AlignmentControl to uniAlignmentClient for the main form. Tabsheet: Layout = vbox LayoutAttributes: Align = center Pack = start Your margins are correct on the form. TestCase_fixed.zip And I would also suggest using a frame instead of a form as others did, unless you have a specific reason for that.. 1 Quote Link to comment Share on other sites More sharing options...
mierlp Posted March 4, 2019 Author Share Posted March 4, 2019 Hi Sorry for the late response. In connection with a cerebral infarction that my mother has had in recent days, I did not have time for the forum. Thanks for your comments and help ... is appreciated. I'm looking at it this week. Regards Peter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.