B4J Question [ABMaterial] Centering objects on screen?

LWGShane

Well-Known Member
Licensed User
Longtime User
Is it possible to do this?
 

Harris

Expert
Licensed User
Longtime User
Is it possible to do this?
Do you mean - centering objects with the cell? I have wondered this myself...
For instance, 1 row, 3 cells each 4 wide. Now I would like to center the button object within each cell.
I had to use AddCellsOSMP to set a left margin to keep it away from hard left, where I would much prefer just to center it within.
 
Last edited:
Upvote 0

Harris

Expert
Licensed User
Longtime User
theme.Table("tbltheme").Cell("bgc").Align = ABM.TABLECELL_HORIZONTALALIGN_CENTER

We can center items of a table cell, but not a normal cell as in:
theme.AddCellTheme("cntr")
theme.Cell.VerticalAlign - is the only prop available

theme.Cell..Align = ABM.TABLECELL_HORIZONTALALIGN_CENTER - (this doesn't exist)

I HAVE Added this as a wish in Feedback...
 
Last edited:
Upvote 0

Harris

Expert
Licensed User
Longtime User
I see that alwaysbusy has added this feature request in the upcoming 1.05 version, along with many more features and fixes.
He da man....
 
Upvote 0

LWGShane

Well-Known Member
Licensed User
Longtime User
I see that alwaysbusy has added this feature request in the upcoming 1.05 version, along with many more features and fixes.
He da man....

Woah! That's awesome. I'll be comfortable with designing one page apps. (Seeing items not misaligned like they were was driving me nuts.)
 
Last edited:
Upvote 0

Harris

Expert
Licensed User
Longtime User
Woah! That's awesome. I'll be comfortable with designing one page apps. (Seeing items not misaligned like they were was driving me nuts.)

Hey, it is a work in progress.... He shall get it figured out, with our testing and reporting back on issues. It just gets BETTER every release.

I just loaded (one of) my VPS with my ABM project.
Tried it on desktop which works same as localhost.

Also tried it on my Samsung and Acer 8" tablet. WOW!!! It is responsive quite nicely! I am impressed...
Side menu doesn't show - hamburger does... Select menu icon, up pops side menu to select any item.... (or not to make it retract).

This is pure MAGIC compared to what it would take to code this in HTML, CSS, php and JS - not to mention the Ajax required!

All you others viewing this (101 as of this post): get on to ABMaterial for all your web app needs!!!


Thx
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…