Jump to content

Help me with layouts on the form


Tokay

Recommended Posts

Here is a test case. I need that the panels looks like in the sample but they must fill the form when the form change it size. When I try to set layout = 'fil' on the form, then the top component (UniScrollBox1) looks as expected but the bottom panel (UniContainerPanel1) totally disappeared from the form, and this panel is needed at the place. I try to set many different combinations of the layouts but could not find proper for my requirements. Sample is uploaded above.

 

Link to comment
Share on other sites

Yet another question: how is possible to set two pairs of components, SpTBXButtonEdit1 and UniBitBtn1; SpTBXButtonEdit2 and UniBitBtn2 into rows like in the ide disigner? I try to set RowSpan/ColSpan but have no success.

Link to comment
Share on other sites

I should put SpTX*Edit1 and UniBtn1 in one uniPanel with ClientAlignmentControl and Layout to HBox

and put SpTX*Edit2 and UniBtn2 in one uniPanel with ClientAlignmentControl and Layout to HBox

(or with rows - do you mean vertically? If so use VBox instead of HBox)

Link to comment
Share on other sites

Thank you!

mhmda, Flex helps me. How about two bottom buttons? SpTBXButton1 and SpTBXButton2?

alfr, your solution has strange side effect. I've added two panel, and put components on it. components looks fine with HBox layout, but both panels are moved to the bottom of all other buttons and editors

Link to comment
Share on other sites

8 hours ago, Tokay said:

Expected:

image.thumb.png.ebf55b0fe7deeead471288baafc5b21f.png

Edited 58 minutes ago by Tokay

Hello,

In your case, one possible solution:

1. UniContainerPanel1 -> Layout = hbox

2. UniContainerPanel1 -> LayoutAttribs -> Align = middle

3. UniContainerPanel1 -> LayoutAttribs -> Pack = end

4. UniContainerPanel1 -> LayoutConfig -> Padding = 10

5. UniContainerPanel1 -> LayoutConfig -> Width = 100%

6. UniContainerPanel1 -> ClientEvents -> UniEvents ->

function beforeInit(sender, config)
{
    sender.defaults = {
        margin: '10px 10px 0 10px'
    }
}

 

Link to comment
Share on other sites

41 minutes ago, Tokay said:

Another question. How to add additional vertical distances between all controls on the container panel? All controls are drawn too close to each other.

 

On 5/28/2021 at 4:06 PM, Sherzod said:

LayoutContainer -> ClientEvents -> UniEvents ->


function beforeInit(sender, config)
{
    sender.defaults = {
        margin: '10px 10px 0 10px'
    }
}

?

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...