Microsoft Small Basic

Program Listing: KXH823
GraphicsWindow.MouseDown = OnMouseDown

Sub OnMouseDown
If Mouse.IsRightButtonDown = "True" Then
GraphicsWindow.DrawText(10,10,"Right Click")
Else
GraphicsWindow.Clear()
EndIf
EndSub