SipDown

Description

Occurs when the Soft Input Panel (SIP) is closed.

Event ID

Event ID

Objects

pbm_sipdown

Window

Arguments

Argument

Description

flags

UnsignedLong by value.

Values are:

  • 0 — The SIP is off or not visible

  • 1 — The SIP is visible

  • 2 — The SIP is docked

  • 4 — The SIP is locked and the user cannot change its visibility

Flags is the sum of all SIP states and statuses.

Returns

Long. Return code choices (specify in a RETURN statement):

Usage

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:

Examples

Example 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

See also