ToolBarMobile()

Syntax

Result = ToolBarMobile(#Mobile)
Description
Create a new mobile toolbar at the top of the current container. The new toolbar automatically open a 3 slots container: once the mobile objects have been added it has to be closed with CloseMobileContainer().

Parameters

#Mobile A number to identify the new mobile object. #PB_Any can be used to auto-generate this number.

Return value

Returns nonzero on success and zero on failure. If #PB_Any was used as the #Mobile parameter then the return-value is the auto-generated number on success.

Example

  If ContainerMobile(#PB_Any, #PB_Mobile_Page)
    If ToolBarMobile(0)
      ButtonMobile(1, "Right", #PB_Mobile_Right)
      TextMobile(#PB_Any, "SpiderBasic App", #PB_Mobile_Center)
      ButtonMobile(2, "Left", #PB_Mobile_Left)
      
      CloseMobileContainer()
    EndIf
  
    HtmlMobile("<br><center>Some Text here</center><br>")
    
    CloseMobileContainer()
  EndIf

See Also

CloseMobileContainer()

Supported OS

All

<- TextMobile() - Mobile Index - TrackBarMobile() ->