Occurs when the Soft Input Panel (SIP) is closed.
Event ID |
Objects |
---|---|
pbm_sipdown |
Window |
Argument |
Description |
---|---|
flags |
UnsignedLong by value. Values are:
Flags is the sum of all SIP states and statuses. |
Long. Return code choices (specify in a RETURN statement):
0 Continue processing
Because flags is a sum, you can determine the SIP state and status by subtracting the largest values one by one and checking the value that remains. For example:
If flags is 4, the SIP is locked (4), but not docked or visible.
If flags is 5, the SIP is locked (4) and visible (1), but not docked.
If flags is 7, the SIP is locked (4), docked (2), and visible (1).
In the window’s SipDown event, this code gets the coordinates of the window and displays them in a multiline edit box:
String strDisplay="" int rc
long left = 0, top = 0, right = 0, bottom = 0rc = GetDeskRect(left, top, right, bottom)
strDisplay +=("Desk RECT:~r~n~t Left = " +string(left)& +"~r~n~t Top=" + String(top) + "~r~n~t Right = " & + String(right)+ "~r~n~t Bottom = " +
String(bottom))mle_1.text = strDisplay