Jump to content

HowTo : Open form in PageControl


mierlp

Recommended Posts

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

 

ApplicationFrameHost_2019-02-24_01-47-40.png

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

opera_2019-03-04_10-54-30.thumb.png.a9817cc17b1ec381a13d3599c112fb1c.png

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..

  • Like 1
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...