|
I have a dialog with a TTreeView control on it and an OK and Cancel button. The buttons have the Default and Canel properties set to true respectivly and the ModalResult has been set correctly.
The user is able to edit the captions of the tree nodes using...
Started by Jamie on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Edit: procedure TForm1.FormKeyDown(Sender and Cancel buttons, but create an OnClick....
You should remove Default and Cancel properties from the buttons, instead you should case the key pressed on form keyDown and then perform OK or cancel.
|
|
Greetings one and all - a christmas puzzle for anyone still looking at this site...This works but if i decide to cancel the process (ie not save a file and stop the process at this stage) it doesn't svae the file but the following marco (filltolastrow...
Started by total newbie on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You possibly want
If file_name <> False Then ActiveWorkbook.SaveAs Filename:=file_name MsgBox "File Saved!" filltolastrow2 End If
Alternative:
Public Sub SaveaCopyIncomeSheet() Dim file_name As Variant file_name = Application.GetSaveAsFilename(... .
|
|
I have a website that makes heavy use of Ajax. Occasionally I need to load large image files on the page for the user. My question is, when these large image files are being download, is there a way to stop them if, say, the user navigates away from the...
Started by frio80 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
On the paging event just before the new search was run:
//cancel image downloads if(window.stop !== undefined) { window.stop(); } else if(document.execCommand !== undefined) { document.execCommand("Stop", false); }
Essentially it's like....
|
Ask your Facebook Friends
|
I am running a bunch of database migration scripts. I find myself with a rather pressing problem, that business is waking up and expected to see their data, and their data has not finished migrating. I also took the applications offline and they really...
Started by Junto on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Maybe you need to lookOne way to acheive a ... .
Yes it will just stop at whichever part it was on when you cancel it.
When doing so, I noted chain.
I was forced to cancel the script anyway.
And stop executing if appropriate.
|
|
This is inspired by the question OK-Cancel or Cancel-OK? .
I remember reading somewhere about the concept of switching OK-Cancel/Cancel-OK in certain situations to prevent the user from clicking through information popups or dialog boxes without reading...
Started by cschol on
, 22 posts
by 22 people.
Answer Snippets (Read the full thread at stackoverflow):
For example, instead of OK and Cancel buttons, have them say "Send Invoice" and "Go Back’ll always be forced to stop....
What you could do is use verbs or nouns instead of the typical Windows OK / Cancel the dialog.
Almost never works.
|
|
I call obackgroundworker.CancelAsync(); on a background worker currently doing some work in another thread and then using while (obackgroundworker.IsBusy == true) to wait for it to finish before quitting the application (in case the user changes their...
Started by Nathan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You need to stop.
E.Cancel to true doesn't stop the execution of the BackgroundWorker , it only indicates that the operation was canceled so that you can check it in the RunWorkerCompleted event.
|
|
This question is brought to you by an argument I had today with a developer I work with -- an argument that will surely continue in the coming weeks until our latest project is released -- about the presence of OK and Cancel buttons in dialog-boxes.
We...
Started by brownstone on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Let me throw a different gauge of monkey wrench", "Save", and "Cancel", if you're working with document-like things?
Simple:
The best UI behavior that way as opposed to the traditional....
cancel buttons, then you should definitely supply them.
|
|
Hi:
I had a customer that placed an order and was having issues with paypal. She requested that I cancel the order, which I did, and is currently pending. She was able to finally put the payment through and has paid for the order. Does anyone know how...
Started by Contact the Captain on
, 8 posts
by 1 people.
Answer Snippets (Read the full thread at etsy):
Have your buyer select "other" for payment the second time she orders so that she doesn't have to pay again... .
You can't You'll have to do the transaction over again .
You can't that i know of I don't think that you can and will probably have to start over.. .
|
|
I'd like to stop immediately a method if I press cancel in the "processing" animation screen. I'm using Async call through delegates. Is it possible to stop immediately the execution of the method through delegates?
Thanks :)
Started by Marc Vitalis on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Forced a thread: "please stop now" and expect....
It's all still co-operative though, as far as I'm aware .
Your delegate would then need pieces of code to cancel the task).
A mechanism to tell the delegate that you're trying to cancel it.
|
|
Is there a Windows native API analogous to pthread_cancel, pthread_testcancel etc?
If not, how can we simulate cancelling of one thread from another using the pthread_cancel mechanism in Windows?
Started by Jay on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The cancellation.
Adding an event that signals the thread to stop.
As well use WaitForMultipleObjects().
|