Platforms to show: All Mac Windows Linux Cross-Platform

/Dongle/Rockey 2 Test
Function:
Required plugins for this example: MBS Dongle Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Dongle/Rockey 2 Test
This example is the version from Sun, 17th Mar 2012.
Project "Rockey 2 Test.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action() // find all dongles and report how many we found dim n as integer = r.Find MsgBox str(n)+" dongles found." End EventHandler
End Control
Control PushButton2 Inherits PushButton
ControlInstance PushButton2 Inherits PushButton
EventHandler Sub Action() // open first dongle available dim hid as UInt32 r.open(0, 0, hid) if r.Lasterror = r.RY2ERR_SUCCESS then MsgBox "Open okay" else MsgBox "Failed to open with error "+str(r.Lasterror) end if End EventHandler
End Control
Control PushButton3 Inherits PushButton
ControlInstance PushButton3 Inherits PushButton
EventHandler Sub Action() // read first block from open dongle. dim s as string = r.Read(0) // put it in editfield/textarea. EditField1.text = s End EventHandler
End Control
Control EditField1 Inherits TextArea
ControlInstance EditField1 Inherits TextArea
End Control
Control PushButton4 Inherits PushButton
ControlInstance PushButton4 Inherits PushButton
EventHandler Sub Action() dim s as string = EditField1.text r.Write(0, s) End EventHandler
End Control
EventHandler Sub Close() // close dongle r.Close End EventHandler
EventHandler Sub Open() r = new Rockey2MBS End EventHandler
Property r As Rockey2MBS
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar
End Project

The items on this page are in the following plugins: MBS Dongle Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...