It works only when you tap direct on it. Maybe it is working as expected. I dont know. But then, it is difficult to get the actual real state of the SwitchMobile()
Code: Select all
If ContainerMobile(#PB_Any, #PB_Mobile_Page, "padding:16px")
SwitchMobile(0)
Debug "Enabling the switch..."
SetMobileState(0, #True)
CloseMobileContainer()
EndIf
Procedure MobileEvents()
Select EventMobile()
Case 0
Debug "Switch state: " + GetMobileState(0)
EndSelect
EndProcedure
BindEvent(#PB_Event_Mobile, @MobileEvents())