B4J Question [BANano]side-by-side views

toby

Well-Known Member
Licensed User
Longtime User
After creating a PWA project, in the layout designer I duplicated the WelcomePageName and placed the new view beside it. But when the app was running, the new view was below, not beside, the original one. Could someone tell me what I missed?

TIA


side-by-side views.png

side-by-side views.png
 
Solution
I solved the problem by deleting views and adding views back
1. Deleted the SKRow and everthing in it
2. Added a SKRow
3. Added two identical SKColumn (number of columns=4) side by side
4. Placed two SKTextBox, one inside each SKColumn
5. Now those two textboxes are shown side by side, see below, unless the screen width is reduced to phone size.
solution.png

toby

Well-Known Member
Licensed User
Longtime User
I pIaced a SKColumn inside RowHolder2, set number of columns set to 2, then placed both WelcomePageName and skAge, side by side, inside the SKColumn.
When I ran the app, not only the name and age input fields are not side by side, but also the age input is above the name one.

Apparently I don't know how to use SKColumn properly. Could someone show me how to achieve what I want, please? Layout file attached



side-by-side views2.png
 
Upvote 0

toby

Well-Known Member
Licensed User
Longtime User
The only Abstract Designer tutorials I could find are about designing a custom view ( part 1 and part 2), which are a little more advanced and not helpful for me as a true beginner. What I'm looking for right now are tutorials on how to use those standard SK views such as SkColumn, SKRow, SKRange, etc. If some exist already, please provide the link.
 
Upvote 0

angel_

Well-Known Member
Licensed User
Longtime User
The only Abstract Designer tutorials I could find are about designing a custom view ( part 1 and part 2), which are a little more advanced and not helpful for me as a true beginner. What I'm looking for right now are tutorials on how to use those standard SK views such as SkColumn, SKRow, SKRange, etc. If some exist already, please provide the link.
Add SKcolumn and a SKcontainer inside, put the view there.

Also look at this:
 
Upvote 0

toby

Well-Known Member
Licensed User
Longtime User
I solved the problem by deleting views and adding views back
1. Deleted the SKRow and everthing in it
2. Added a SKRow
3. Added two identical SKColumn (number of columns=4) side by side
4. Placed two SKTextBox, one inside each SKColumn
5. Now those two textboxes are shown side by side, see below, unless the screen width is reduced to phone size.
solution.png
 
Upvote 0
Solution

alwaysbusy

Expert
Licensed User
Longtime User
That is correct. So it is:


SKRow contains SK components
or
SKRow contains SKColumns who contain SK components

As it uses an 12 - column system, the goal should be to try to so the sum of the SKColumns adds up to 12 (sometimes it has to be 11 if you start to tweak the margins/padding for example).

The grid is explained in the booklet, page 135

Alwaysbusy
 
Upvote 0
Top