Page 1 of 1

[MobileUI] How to change text size?

Posted: Tue Oct 22, 2024 7:15 am
by Caronte3D
I having huge problems to do what I want with the MobileUI :(
This an example of one of the problems I found:

"Cannot read properties of undefined (reading 'attr')"

Code: Select all

If ContainerMobile(#PB_Any, #PB_Mobile_Page)
      TextMobile(0, "Text Sample", #PB_Mobile_Left)
      SetMobileAttribute(0, "style", "font-size: 26px;")        
    CloseMobileContainer()
  EndIf
I don't know if I'm doing something wrong or it's a bug

Re: [MobileUI] How to change text size?

Posted: Tue Oct 22, 2024 12:02 pm
by Caronte3D
Well... for now, I will use an Html editor and put the code on some HtmlMobile() to do all my UI stuff :roll:

Re: [MobileUI] How to change text size?

Posted: Tue Oct 22, 2024 12:50 pm
by Fred
What are you trying to achieve ? This lib is meant for regular mobile UI and from what I tested, it works as expected. You usually setup a TabBarMobile, a Navigator and a ToolBar so you have your framework. You can add a splitter if you want an hamburger menu and then you can design your pages.

Re: [MobileUI] How to change text size?

Posted: Tue Oct 22, 2024 2:08 pm
by Caronte3D
Don't worry, maybe I was expecting too much freedom of customization, I don't know, but I don't have time to spend on simple things like that, so for now I'll use an external editor to make the UI the way I want it.
Thanks anyway ;)