OnViewChanged Event

This event is triggered each time the user switches between GUI and Emulator mode in the Newlook Control.

object.OnViewChanged = [eventHandler]

Where object is the Smartframe Newlook Control or Embedded Newlook Control, and eventHandler is the code to execute.

Applies To

Smartframe Newlook Control

Embedded Newlook Control

Use

The OnViewChanged event is triggered every time the user toggles the Newlook Control between GUI and Emulator modes.

This event is useful to hook onto when you want to be aware that the user has switched views as it may affect scripts running on the screen.

JAVASCRIPT

newlook1.OnViewChanged = MyViewChanged;

function MyViewChanged ()

{

     //Do Something Here

     alert("OnViewChanged event has run")

}

See Also

Customizing Smartframe templates | Smartframe Newlook Control API | Embedded Newlook Control API | OnConnectStateChanged event | OnFunctionKeyChanged event | OnOpened event | OnReceived event | OnRefreshed event | OnSent event | OnStatusChanged event


© 2004-2021 looksoftware. All rights reserved.