Page 1 of 1

2.60b1 #PB_Mobile_Center doesn't work

Posted: Sun May 26, 2024 3:45 pm
by munfraid
The flags

Code: Select all

#PB_Mobile_Center
#PB_Mobile_Right
are not working here.

Re: 2.60b1 #PB_Mobile_Center doesn't work

Posted: Sun May 26, 2024 4:40 pm
by Fred
How do you use them, please always post a running code.

Re: 2.60b1 #PB_Mobile_Center doesn't work

Posted: Sun May 26, 2024 5:22 pm
by munfraid
It's not working in all the sample codes you provided.
Here a small running example

Code: Select all

If ContainerMobile(#PB_Any, #PB_Mobile_Template, "", "page1")
  
  TextMobile(#PB_Any, "Centered Text?", #PB_Mobile_Center)
  CloseMobileContainer()
  
EndIf

NavigatorMobile(0, "page1") 

Re: 2.60b1 #PB_Mobile_Center doesn't work

Posted: Fri May 31, 2024 9:43 am
by Fred
The centered flag only work in container like Row, ListItem, ToolBar which has the 3 place holder. A template container doesn't have such.

Code: Select all

If ContainerMobile(#PB_Any, #PB_Mobile_Page, "", "page1")
  
  ContainerMobile(#PB_Any, #PB_Mobile_Row)
    TextMobile(#PB_Any, "Centered Text?", #PB_Mobile_Center)
  CloseMobileContainer()
  
  CloseMobileContainer()
EndIf

NavigatorMobile(0, "page1") 

Re: 2.60b1 #PB_Mobile_Center doesn't work

Posted: Fri May 31, 2024 9:56 am
by munfraid
Ah, I see... Thanks Fred!