B4J Question button size is different(ABMButton,ABMFileInput)

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi
Can their button size be the same size ? :rolleyes:
 

alwaysbusy

Expert
Licensed User
Longtime User
You will have to override the default CSS:

B4X:
' must be done in ConnectPage, not BuildPage
page.InjectCSS($".height36 .btn,.height36 .btn-large {height: 36px;line-height: 36px;margin-top: 3px}"$)
    
Dim inp1 As ABMFileInput
inp1.Initialize(page, "inp1", "Select a file", "Open", True, "input", "button")    
inp1.HTMLAddClass("height36")    ' add the CSS class
page.Cell(2,1).AddComponent(inp1)

Alwaysbusy
 
Upvote 0

jinyistudio

Well-Known Member
Licensed User
Longtime User
Can i put abminput into the abmmodalsheet ?
 
Upvote 0

jinyistudio

Well-Known Member
Licensed User
Longtime User
sorry, it is ABMFileInput.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Except for very rare exceptions, if any, any ABM control can be placed inside any container.
ABModalsheet is "just" anther place where you can place your containers and define your grids!
 
Upvote 0
Top