I am using the B4XDateTemplate which is available inside XUI Views.b4xLib(zip file) code for an application..
I have been able to customize it for 'highlighting days' based on a certain condition with a specific color.
However, I would like to carry out some activity upon doing a 'LONG CLICK' in the days panel.
The relevant code snippet where I think I need to modify is in the code block:
B4X:
Private Sub DaysPaneFg_Touch (Action As Int, X As Float, Y As Float)
Dim p As B4XView = DaysPaneFg
Log("Day Panel Touched")
HandleMouse(X, Y, Action <> p.TOUCH_ACTION_UP)
End Sub
Requesting for some guidance on how to go about doing this.
Hi Team, I am using the B4XDateTemplate which is available inside XUI Views.b4xLib(zip file) code for an application.. I have been able to customize it for 'highlighting days' based on a certain condition with a specific color. However, I would like to carry out some activity upon doing a...
www.b4x.com
I posted this on Friday, 4th February,2022.
Since no one has responded till today, I am requesting you.
The Touch event has a Action parameter that includes p.TOUCH_ACTION_UP and p.TOUCH_ACTION_DOWN.
(p is the panel, but any B4XView will do, they all have these constants)
You need to time the difference (add a global variable for this). If the interval is what you consider is "Long", make you action.
The Touch event has a Action parameter that includes p.TOUCH_ACTION_UP and p.TOUCH_ACTION_DOWN.
(p is the panel, but any B4XView will do, they all have these constants)
You need to time the difference (add a global variable for this). If the interval is what you consider is "Long", make you action.
The Touch event has a Action parameter that includes p.TOUCH_ACTION_UP and p.TOUCH_ACTION_DOWN.
(p is the panel, but any B4XView will do, they all have these constants)
You need to time the difference (add a global variable for this). If the interval is what you consider is "Long", make you action.
The next code add the funcionality in b4x to capture the click & longClick using Touch, in case of b4j add the option to fire the longClick using the Right Mouse Click or the secondary mouse button. - Unzip the file "XUI Views.b4xlib" - Look for the file "SwiftButton.bas" and open - Add the...