Questions tagged [cancel-button]

A cancel button is a UI construct that usually takes the form of a normal button with the word "cancel" written on it. When clicked, it undoes or stops a specific action.

Use this tag for questions related to making or using cancel buttons on applications.

163 questions
6
votes
2 answers

UIAlertView without Cancel Button?

I am trying to create a UIAlertView that has 3 options and no "cancel" button, but when I do this, it always styles "Button 3" as a cancel button. Is there any way to avoid this? UIAlertView *alertView= [[UIAlertView alloc] initWithTitle:@"Select…
Chris
  • 5,485
  • 15
  • 68
  • 130
6
votes
0 answers

How can a user cancel a long running query?

Related: How can you cancel a SQL Server execution process programmatically I have created an application (Windows, WPF) which is basically a viewer for data in a database (Sql Server). The application has NO editing functionality. The…
5
votes
4 answers

Android N - Download Manager Notification Cancel Button

Android N has a new Cancel Button in the Download Manager Notification. I would like to excecute some code in my app to stop a progressbar when the user presses this button. If any, which method is called? Please also note that the Intent filter…
5
votes
2 answers

Cancel AsyncTask when user presses back button

I have an AsyncTask in which I show a ProgressDialog in the onPreExecute, and hide it again in onPostExecute, something like final class UploadTask extends AsyncTask { ProgressDialog dialog = new ProgressDialog(...); protected onPreExecute()…
Kasper Peeters
  • 1,580
  • 2
  • 18
  • 37
5
votes
0 answers

How can I hide "Groups" and cancel button in CNContactPickerViewController?

Im using a CNContactPickerViewController and I want to hide the cancel and the group buttons I tried contactPickerViewController.navigationItem.leftBarButtonItem = nil and contactPickerViewController.navigationItem.hidesBackButton = true but…
jerem
  • 1,016
  • 2
  • 12
  • 27
5
votes
1 answer

Cancel button does nothing in MFMailComposeViewController - iOS 8

I've created an MFMailComposeViewController and am able to display it but once I press the cancel button, the cancel button and send button grey out and the action sheet does not appear. Is there anything I am missing? MFMailComposeViewController *m…
Milo
  • 5,041
  • 7
  • 33
  • 59
5
votes
2 answers

hide UISearchBar below UINavigationBar after cancelButton was called

I'm typically using [self.tableView setContentOffset:CGPointMake(0,40)]; in order to hide the UISearchBar (that I set as header of the tableView) below the navigationBar. Everything works well in viewDidLoad: the searchBar is below the navigationBar…
4
votes
2 answers

Passing argument into backgroundWorker (for use as a Cancel button)

I'm new to C# and object-oriented programming in general. I've been trying to implement a "Cancel" button into my GUI so that the user can stop it mid-process. I read this question: How to implement a Stop/Cancel button? and determined that a…
4
votes
2 answers

Flutter: How to put button on each image like (x) to cancel selected image

I am using multi_image_picker 4.6.1 in my application but I faced little problem. How to organize images on specific place on the page and put cancel button on each selected image so user can cancel or remove selected image one by one like in…
Muhammad Amin
  • 125
  • 2
  • 2
  • 6
4
votes
4 answers

C# CancelButton closes dialog?

(VS2005, .Net 2.0) I have a form that is displayed as a dialog using the ShowDialog() method. The form's CancelButton property is set to a button on the form. Even if I set that button's DialogResult to None, clicking the button still closes the…
Rawling
  • 49,248
  • 7
  • 89
  • 127
4
votes
1 answer

Cancel Button Functionality in C# and XAML

I am trying to hash out the functionality of a cancel button for a WPF App. Currently there are 2 functions I am focusing on: private void AnalysisClick(object sender, RoutedEventArgs e) { model.RunAnalysis(); } private void…
wjhguitarman
  • 1,063
  • 1
  • 9
  • 27
3
votes
3 answers

How to keep scopebar even after pressed Cancel button?

I have a UITableView with a searchbar on the top. I used UISearchDisplayController for implementing the same. And also it has a scope bar with two buttons. In default when I launch the app, the scope bar will be displayed. When I click the cancel…
3
votes
2 answers

In the TDatePicker.OnCloseUp event, how to determine if the user clicked Cancel?

I have a perhaps simple question: I have a TStringGrid in Delphi 10.4, and a TDatePicker there, with which I want to select a date in the FixedCol. When I click on the header cell, the TDatePicker opens and also shows today's date. I've pre-selected…
Syndi
  • 31
  • 4
3
votes
1 answer

Inno Setup: Exiting when clicking on Cancel without confirmation

If a the user clicks on "Cancel", I want the installer to stop and exit, WITHOUT asking I want to exit or not. Can this be done somehow? Any help would be greatly appreciated.
lostprophet
  • 31
  • 1
  • 2
3
votes
3 answers

Yii2 CRUD: How to implement Cancel button

I'm just learning Yii 2 framework. I'm curios what is the best practice to implement Cancel button in Create/Update form of typical CRUD application. I generated CRUD application from the Yii 2.0. tutorial…
1
2
3
10 11