InputComplete

Typemessage
Dictionarywidget.lockpattern
LibraryPattern Lock
Syntax
InputComplete <pPIN>
Associationscom.livecode.widget.lockpattern
Summary

Sent to the widget when the user finishes drawing the pattern.

OSmac, windows, linux, ios, android
Platformsdesktop, mobile, web
Parameters
NameTypeDescription
pPIN

The PIN corresponding to the pattern drawn by the user.

Example
    on InputComplete pPIN
        if the cPIN of this wd is not pPIN then
            put "wrong" into field "message"
            set the backColor of field "message" to "red"
            show field "message" with visual effect "scroll up" very fast
        else
            put "is correct" into field "message"
            set the backColor of field "message" to "green"
            show field "message" with visual effect "scroll up" very fast
            wait 1 sec with messages
            go to card 1
        end if
    end InputComplete
RelatedProperty: backgroundOpacity, ShowPattern, RoundedRadius, PIN, PatternError
Message: InputComplete
Description

If you want to do something after the user finishes drawing the pattern, use this message. Which is sent to the widget, as a parameter it brings the PIN corresponding to the pattern drawn by the user.