Tokay Posted May 20, 2021 Share Posted May 20, 2021 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 20, 2021 Share Posted May 20, 2021 32 minutes ago, Tokay said: test case.7z 5.61 kB · 1 download Please attach a complete project for the test... Quote Link to comment Share on other sites More sharing options...
Tokay Posted May 20, 2021 Author Share Posted May 20, 2021 I have found more sweatable form layout for us. But question is still active: how to do right and bottom form borders? test case.7z Quote Link to comment Share on other sites More sharing options...
Tokay Posted May 21, 2021 Author Share Posted May 21, 2021 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. Quote Link to comment Share on other sites More sharing options...
Tokay Posted May 26, 2021 Author Share Posted May 26, 2021 Up Quote Link to comment Share on other sites More sharing options...
alfr Posted May 26, 2021 Share Posted May 26, 2021 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) Quote Link to comment Share on other sites More sharing options...
mhmda Posted May 26, 2021 Share Posted May 26, 2021 hi Quote Link to comment Share on other sites More sharing options...
Tokay Posted May 27, 2021 Author Share Posted May 27, 2021 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 Quote Link to comment Share on other sites More sharing options...
mhmda Posted May 27, 2021 Share Posted May 27, 2021 Test case? Quote Link to comment Share on other sites More sharing options...
Tokay Posted May 28, 2021 Author Share Posted May 28, 2021 Here is it: test case.7z Actual: Expected: Quote Link to comment Share on other sites More sharing options...
Tokay Posted May 28, 2021 Author Share Posted May 28, 2021 Actual: Expected: Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 28, 2021 Share Posted May 28, 2021 8 hours ago, Tokay said: Expected: 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' } } Quote Link to comment Share on other sites More sharing options...
Tokay Posted May 28, 2021 Author Share Posted May 28, 2021 Great! Works as expected, thank you!!! Please help me with panels with HBox layout. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 28, 2021 Share Posted May 28, 2021 1 hour ago, Tokay said: Please help me with panels with HBox layout. ? Quote Link to comment Share on other sites More sharing options...
Tokay Posted May 28, 2021 Author Share Posted May 28, 2021 Actually two panels are moved to the bottom of all componets: But were expected that the panels are remained in place where designed: Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 28, 2021 Share Posted May 28, 2021 Do you mean createOrder? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 28, 2021 Share Posted May 28, 2021 33 minutes ago, Sherzod said: Do you mean createOrder? If yes, you can analyze this post: Quote Link to comment Share on other sites More sharing options...
Tokay Posted May 29, 2021 Author Share Posted May 29, 2021 createOrder, Ok, thank you, that it! All work fine here now! Quote Link to comment Share on other sites More sharing options...
Tokay Posted June 1, 2021 Author Share Posted June 1, 2021 Another question. How to add additional vertical distances between all controls on the container panel? All controls are drawn too close to each other. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 1, 2021 Share Posted June 1, 2021 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' } } ? Quote Link to comment Share on other sites More sharing options...
Tokay Posted June 1, 2021 Author Share Posted June 1, 2021 That it, thank you! Quote Link to comment Share on other sites More sharing options...
Tokay Posted November 5, 2021 Author Share Posted November 5, 2021 Hi! This tip doesn't works between two labels. Before label + edit/checkbox/other components works great, but two labels are drawn closer to each other. Maybe someone other tip could help me? Thank you. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 5, 2021 Share Posted November 5, 2021 7 minutes ago, Tokay said: This tip doesn't works between two labels. Hi, vbox or hbox? Quote Link to comment Share on other sites More sharing options...
Tokay Posted November 5, 2021 Author Share Posted November 5, 2021 table Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 5, 2021 Share Posted November 5, 2021 21 minutes ago, Tokay said: table 1 hour ago, Tokay said: This tip doesn't works between two labels. Before label + edit/checkbox/other components works great, but two labels are drawn closer to each other. Screenshots, testcase? 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.