ButtonMobile - constants #PB_Mobile_Center, #PB_Mobile_Right

Just starting out? Need help? Post your questions and find answers here.
Trion
Posts: 9
Joined: Mon Apr 03, 2023 8:39 pm

ButtonMobile - constants #PB_Mobile_Center, #PB_Mobile_Right

Post by Trion »

is this possible to use ButtonMobile the constants #PB_Mobile_Center, #PB_Mobile_Right to work without ToolBarMobile container

Code: Select all

  If ContainerMobile(#PB_Any, #PB_Mobile_Page, "margin:8px")
    ButtonMobile(0, "Click me")
    HtmlMobile("<br><br>")
    ButtonMobile(1, "Click me too !", #PB_Mobile_Right)
    
    CloseMobileContainer()
  EndIf

  Procedure MobileEvents()
    Select EventMobile()
      Case 0
        Debug "Button 0 clicked !"
        
      Case 1
        Debug "Button 1 clicked !"
    EndSelect
  EndProcedure

  BindEvent(#PB_Event_Mobile, @MobileEvents())
  
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: ButtonMobile - constants #PB_Mobile_Center, #PB_Mobile_Right

Post by Fred »

You need to use a container of 'row' type
Post Reply