cancel-button

Borland C++ Builder 5 - Cancel Via Escape Key Not Working

I'm having a rather perplexing problem with the Escape key handler on a dialog box in Borland C++ Builder 5. Are there any other requirements for the Escape key to fire a cancel event (other than those I've listed below)? The "Cancel" button (a TBitBtn) has its Cancel property set to true. The "Cancel" button has its Default property ...

Showing UISearchBar "X" within text field vs. adjacent Cancel button

I know I can set showsCancelButton to NO for a UISearchBar ... until you tap the search bar text field, and then the cancel button appears anyway! (At least it does for me.) Is there a way to show the "X" in a circle within the UISearchBar text field vs. having that separate Cancel button show up adjacent to it? Note that this button on...

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 when the view is loaded. Then I put the same line of code [self.tableView setContentOffs...

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 dialog. I don't want this to happen - I want to be able to control whether the dialog closes...