Search the Community
Showing results for tags 'click'.
Found 4 results
Hi. If I insert a TW3Button and assign it an event (by double clicking on OnClick in the object inspector) the onClick event is not triggered by clicking with the mouse or with the finger on the mobile. If I set the focus on the button and press Enter it will fire. I've also tried assigning it to an onclick event in InitializebOject What do I need to add?
I am still having a hard time with a Listbox and distinguishing between "touch" to select and item in a listbox on a desktop/laptop browser.....and "touch" to begin scrolling (e.g. on a phone/tablet) Using a basic example listbox with 100 items procedure TForm1.Resize; var i: integer; begin inherited; W3ListBox1.Clear; for i:= 1 to 100 do W3ListBox1.Add('Item ' + inttostr(i)); W3ListBox1.SetBounds(0,0,width,height); end; When a user is using the desktop/laptop browser, I need them to be able to use both mouse and touch (case their monitor is touch) to "scroll" and "select" item.....else if using their phone or tablet, need them to be able to use "touch" to scroll and "tap" to select item I assume we dont want to use the standard OnSelected event ? W3ListBox1..OnSelected := HandleLBItemSelected; and probably want to use the OnTouchBegin & OnTouchEnd, as well as the OnMouseDown & OnMouseUp events?????? If So, how? And how do you then handle the scrolling?
I have a TW3ScrollControl on my form (with clickable images (icons) as menu items on the ScrollControl ) I have mouse and touch events to allow user to select a menu item depending on whether app is run in browser or other device. fOnMenuItemClick: TMouseClickEvent; fOnMenuItemTouch: TTouchBeginEvent; When I test it in browser, I can't use the scroll feature of TW3ScrollControl because it looks like it was designed for gestures not mouse When I test in on my phone, I can't use the gestures because it thinks I am touching the menu items and that event gets kicks off instead what to do?