Differences between SDK and Whisker Commands |
Top Previous Next |
The Whisker SDK Type library contains procedures that map onto the Whisker Command set. There are some slight differences, which are outlined below (syntax examples assume VisualBasic, with an SDK control called 'Whisker'). All Events, Methods, Properties and Constants, along with a description of their use, can be viewed in the Object Browser within Visual Basic.
For example, in Visual Basic, if a SDK control (called Whisker) receives an Event: message, for example, it will call the Whisker_Event() subroutine of the form which contains it.
Whisker.Status = "I'm OK" Whisker.ClientName = "Example Client" myNumber = Whisker.ClientNumber strServerVersion = Whisker.ServerVersion netLatency = Whisker.TestNetLatency
DisplayGetSize(Device As String, Width As Long, Height As Long)
If this call succeeds, the variables X and Y (which must be variables of type Long in VisualBasic) will contain the size of the display device named. For example:
Dim X As Long, Y As Long. Whisker.DisplayGetSize "Screen", x, y
Whisker.LineState(LineName As String)
For example, a line called "toplight" could be set using
Whisker.LineState(toplight) = wsLineOn
Similarly, the current state could be read using
CurrentState = Whisker.LineState(toplight)
|