Skip to first unread message
Assigned to scottfr...@gmail.com by me

danih...@gmail.com

unread,
Jun 23, 2014, 5:33:11 AM6/23/14
to mitappinv...@googlegroups.com
Hi, 

Is there any workaround on button long click to do long click until i released the button?

Thanks

SteveJG

unread,
Jun 23, 2014, 7:43:08 AM6/23/14
to mitappinv...@googlegroups.com
No.  There is no button release.    However, you might be able to use the TouchUp and TouchDown methods to do what you want to do.

Button

Button with the ability to detect clicks. Many aspects of its appearance can be changed, as well as whether it is clickable (Enabled), can be changed in the Designer or in the Blocks Editor.

Properties

BackgroundColor
Returns the button's background color
Enabled
If set, user can tap check box to cause action.
FontBold
If set, button text is displayed in bold.
FontItalic
If set, button text is displayed in italics.
FontSize
Point size for button text.
FontTypeface (designer only)
Font family for button text.
Height
Button height (y-size).
Image
Image to display on button.
Shape (designer only)
Specifies the button's shape (default, rounded, rectangular, oval). The shape will not be visible if an Image is being displayed.
ShowFeedback
Specifies if a visual feedback should be shown for a button that as an image as background.
Text
Text to display on button.
TextAlignment (designer only)
Left, center, or right.
TextColor
Color for button text.
Visible
Specifies whether the component should be visible on the screen. Value is true if the component is showing and false if hidden.
Width
Button width (x-size).

Events

Click()
User tapped and released the button.
GotFocus()
Indicates the cursor moved over the button so it is now possible to click it.
LongClick()
User held the button down.
LostFocus()
Indicates the cursor moved away from the button so it is now no longer possible to click it.
TouchDown()
Indicates that the button was pressed down.
TouchUp()
Indicates that a button has been released.

Regards,
Steve

Scott Ferguson

unread,
Jun 23, 2014, 7:43:44 AM6/23/14
to mitappinv...@googlegroups.com
Yes. Use the new Button TouchUp event block. It triggers when you release the button.
---
Scott

danih...@gmail.com

unread,
Jun 28, 2014, 1:49:38 PM6/28/14
to mitappinv...@googlegroups.com
Thanks guys.
Reply all
Reply to author
Forward
0 new messages