[MobileUI] How to change text size?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Caronte3D
Posts: 189
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

[MobileUI] How to change text size?

Post 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
User avatar
Caronte3D
Posts: 189
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Re: [MobileUI] How to change text size?

Post 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:
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: [MobileUI] How to change text size?

Post 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.
User avatar
Caronte3D
Posts: 189
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Re: [MobileUI] How to change text size?

Post 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 ;)
Post Reply