DisableMobile()

Syntax

DisableMobile(#Mobile, State)
Description
Disable or enable the mobile object.

Parameters

#Mobile The mobile object to enable or disable.
State The new state of the mobile object. If 'State' is #True, the mobile object will be disabled, if 'State' is #False it will be enabled.

Return value

None.

Example

  If ContainerMobile(#PB_Any, #PB_Mobile_Page, "margin:8px")
    ButtonMobile(0, "Click me")
    HtmlMobile("<br><br>")
    ButtonMobile(1, "Can't click me")
    DisableMobile(1, #True) ; Disable the mobile button so it can't be clicked
    
    CloseMobileContainer()
  EndIf

Supported OS

All

<- ContainerMobile() - Mobile Index - FreeMobile() ->