gestures

Delphi 2010 Tablet PC Support

╄→гoц情女王★ 提交于 2019-12-03 16:45:11
One of the big selling points I saw when I had to buy delphi for my job was the ability to support tablet pc's. Now the client of the company where I work want to use a tablet pc. I've been trying hard to find examples of delphi with tablet pc but I don't find any. Does anybody has experience with it? Any kind of tutorials or examples? I don't seem to be able even to bring a virtual keyboard when a component gain focus and hide it when it loses it. Delphi 2010 introduced some nice touch and gesture support to Delphi. To get more info about it, go to EDN website and look for CodeRage 4 replays.

How to recognize tap gesture while a view is animating

随声附和 提交于 2019-12-03 13:03:42
Just wondering is there way to have a view recognize tap gestures while it is being animated? I am working on a view that has a cashapelayer line tethered to it. When the user pans the view (pan gesture) the line follows accordingly until the user stops panning. At this point an animation is executed that brings the view back to its original position and the tether layer back as well. Now my only real problem is that while the view and the tether are animating the view doesnt respond to tap gestures… Anyone know some tricks? I hope my explanation was understandable and thanks in advance! (if

Android: GestureDetector not working (gestureDetector.onTouchEvent(event) always false) with Tabs (TabActivity, Tabwidget)

大城市里の小女人 提交于 2019-12-03 12:07:21
I have implemented my TabActivity with different child activities: intent = new Intent().setClass(this, MyChildTabActiviy.class); // Initialize a TabSpec for each tab and add it to the TabHost spec = getTabHost.newTabSpec("tag").setIndicator("indicator", getResources().getDrawable(R.drawable.icon)).setContent(intent); getTabHost.addTab(spec); ... So far no problems, everything works perfectly fine. I'm switching programmatically between tabs, replacing activities within tabs with ActivityGroups, etc. just as it's shown in many tutorials. But my problem is, that when I want to check for a fling

Slider in Android App

一笑奈何 提交于 2019-12-03 09:31:21
I'm working on a project that requires a button to only be pressed once a translucent screen has been slid up. This allows for access to the main button (Press Me, in the picture). I would like for the top screen to be translucent so a user can see the button behind it, but I would also like to have buttons (green buttons 1, 2, and 3) on the top screen. Are there any good tutorials on this? I have looked, but haven't found much that relates a whole lot. If you have any sugguestions please let me know. I'd also like to know how difficult this is since I'm new to Java/Android. Here's the

UITapGestureRecognizer selector, sender is the gesture, not the ui object

送分小仙女□ 提交于 2019-12-03 04:30:33
问题 I have a series of imageviews that I identify using their tag. I have added a single tap gesture to the images. UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(selectImage:)]; [tableGridImage addGestureRecognizer:singleTap]; tableGridImage.userInteractionEnabled = YES; [singleTap release]; This manages to call the selectImage selector ok, but passes the gesture as the sender. I need the imageview as the sender so I can get the tag. Any

iOS Web App touch gestures

折月煮酒 提交于 2019-12-03 00:47:07
I've searched all across the web to find a simple way of adding touch gestures to a simple button. Basically I'm trying to find a simple way of getting the back button (which you usually see on the task-bar at the top of an iOS device) to change CSS classes from 'normal' state to 'pressed' state when pressed. Although I'm very new to Javascript, I would prefer to use standard DOM methods rather than jQuery (or any other library). Would anyone have some complete code and explain how the JavaScript code reads an ontouchstart and ontouchend event and how these functions could be used to change

Tinder style drag gesture and drop with Javascript?

柔情痞子 提交于 2019-12-02 21:15:11
I'm trying to figure out what libraries I can use for a Tinder-style drag and drop gesture that only uses Javascript. Needs to create an HTML element that responds to a drag gesture.. When touched and held, allows the element to follow the user's finger around. When the user removes his finger, the element either: animates back to its original position if the element is over a specified drop zone when it is released, the element will animate and disappear and there needs to be some kind of event that triggers that contains which element was dropped and which drop zone it was dropped into I've

UITapGestureRecognizer selector, sender is the gesture, not the ui object

只谈情不闲聊 提交于 2019-12-02 16:58:53
I have a series of imageviews that I identify using their tag. I have added a single tap gesture to the images. UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(selectImage:)]; [tableGridImage addGestureRecognizer:singleTap]; tableGridImage.userInteractionEnabled = YES; [singleTap release]; This manages to call the selectImage selector ok, but passes the gesture as the sender. I need the imageview as the sender so I can get the tag. Any ideas on how I can get the imageview and it's tag? I figured out how to get the tag, which was the most

How to Implement Swipe Left to Right in UITableView Cell similar to iOS Mail

≯℡__Kan透↙ 提交于 2019-12-02 16:18:30
I'm trying to replicate the same technique that Apple uses in their mail app for marking mail as unread or "Mark as Unread" when you swipe from left to right inside a mailbox. I've found similar solutions but only for a gesture of swiping from right to left. I was hoping that this same solution was available as part of the Apple SDK for the opposite direction. How can I acheive the same left-to-right gesture effect as iOS' Mail app does? I've found similar solutions but only for a gesture of swiping from right to left. SWTableViewCell has all the options you might want. While dequeing a cell

Gestures Builder isn't installed on my emulator

£可爱£侵袭症+ 提交于 2019-12-02 00:39:11
问题 I've tried several emulators with different SDK versions (2.1 and 2.3), and neither one has the Gestures Builder application installed. Any ideas? 回答1: I had to install it. In Eclipse File->New->Android App Choose to create an app from existing source select something along the lines of android-sdk-windows\samples\android-7\GestureBuilder Build and install... 来源: https://stackoverflow.com/questions/4740056/gestures-builder-isnt-installed-on-my-emulator