User-interactivity is the dialog that occurs between a human being and a computer program.
Questions tagged [user-interaction]
326 questions
4
votes
1 answer
How to make a C program stop a loop from any user input?
I would like to writing a small C program that runs an infinite loop until the user presses a key on the keyboard (ie: there is a char in the stdin buffer). I am running into trouble breaking the loop on user input. I have tried using fgetc but that…

recursion.ninja
- 5,377
- 7
- 46
- 78
4
votes
1 answer
Creating an interactive program in Haskell
I had to write 3 functions: one to convert Fahrenheit to Celsius, one to convert Celsius to Kelvin and a third that converts Fahrenheit to Kelvin using the two first functions.
I've never played with Haskell before so this took me a relatively long…

Mark Smith
- 65
- 6
3
votes
3 answers
Any other option for Making a UIButton look disable?
I am trying the following code to make a UIButton look Disabled :
btnYourButton.alpha = 0.6f;
btnYourButton.enabled = NO;
While making is enabled(and of course to look enabled)
btnYourButton.alpha = 1.0f;
btnYourButton.enabled = YES;
Isn't there…

Krishna
- 368
- 5
- 17
3
votes
3 answers
System sequence diagram - Can system request input from actor?
in uml - system sequence diagram, can the system ask input from the actor (see attached picture)
In my example, the scenario is: system is prompting a confirmation input from user and user is to enter in the input.
Wondering if this is the correct…

dissidia
- 1,531
- 3
- 23
- 53
3
votes
1 answer
Android contentView disable user interaction?
I want to disable the user interaction in an activity so that the user cannot touch the view/ subviews inside the content view of the activity. Is there any way to achieve this?

Mahadevan Sreenivasan
- 1,144
- 1
- 9
- 26
3
votes
2 answers
Swift - How to make UIButton tap Interaction only on the image attached and ignore transparent parts
I am creating buttons with different image shapes... Everything is working but if for example, a diamond shape is created, you can click on the transparent part of the button. I managed to set up the shadow to respect the shape of the button so it…

STerrier
- 3,755
- 1
- 16
- 41
3
votes
2 answers
Detecting left and right swipes on Fragment
I am trying to get left, right, top, and bottom swipes detected on Android fragments. Using a couple online resources, such as this great answer on Stackoverflow, I now have up and down swipes being detected. However, it is not working for left…

Logan Phillips
- 660
- 2
- 10
- 23
3
votes
2 answers
UISwitch within UITableViewCell not working
I have added a Prototype cell to my UITableView which has a UISwitch and an UILabel. When I run the app the UISwitch and UILabel display fine as expected, but some how I can not interact with the UISwitch. I can not toggle it between On or Off.
I…

user3034944
- 1,541
- 2
- 17
- 35
3
votes
1 answer
Core graphics and UIKit interaction
Hey all, I'm am trying to make a very interactive UI with lots of animations and effects.
But I don't know if:
Core graphics can support user interaction (touches, drags, etc)
Core graphics supports object rotation
Core graphics can interact with…

Daniel Node.js
- 6,734
- 9
- 35
- 57
3
votes
4 answers
Prompt user for confirmation in the middle of a process
I'm looking for a good approach to sometimes pause an action (function/method call) until the user confirms that he wants to do a specific part of that action. I need to do this in an environment that doesn't allow code execution to stop…

Alin Purcaru
- 43,655
- 12
- 77
- 90
3
votes
1 answer
Ncurses: how to refresh a menu without losing current position?
How can I reload the data in a menu without losing the current position?
For example, when a user "selects" an item, and an action is performed that changes the data. (Either updating the item, removing it, or adding a new item to the menu.) I'd…

Sauce McBoss
- 6,567
- 3
- 20
- 22
3
votes
2 answers
How to normalize sequence of numbers?
I am working user behavior project. Based on user interaction I have got some data. There is nice sequence which smoothly increases and decreases over the time. But there are little discrepancies, which are very bad. Please refer to graph below: …

Adorn
- 1,403
- 1
- 23
- 46
3
votes
2 answers
How to detect user inactivity since last touch on a particular viewcontroller in iOS?
I need to perform a particular action in a view controller when user don't touch a particular screen for 3 seconds.
How can I do that in iOS?

Rafay
- 99
- 2
- 10
3
votes
2 answers
Disable user interaction for NSImageView
I have 2 sets of images. One set contains draggable ones and other is a static set. I have implemented drag-drop functionality for the draggable images. This is because the images needs to be dragged to static ones which contains matches. Now after…

Eshwar Chaitanya
- 942
- 2
- 13
- 34
3
votes
1 answer
Python: Return coordinate info on mouse click
I would like to display an image in python and allow the user to click on a specific pixel. I then want to use the x and y coordinates to perform further calculations.
So far, I've been using the event picker:
def onpick1(event):
artist =…

user3560311
- 85
- 2
- 6