I’ve been trying to wrap my head around threads and modal dialogs. I think I got it finally.
Click here to download my test harness project.
Would you comment please?
- I thought that I should have a declared a class interface for the SubmitJobDialogBox, but it only had one method. (Update)
- For some reason I thought that the methods that are called by the Run Event should also have been defined in a class interface.
- The modal dialog box seems always to appear as just a pull down panel on the web page. I thought setting the Type from Pallet, Modal or Panel would make some difference but I obviously must be missing something.
- I’m not sure I handled the cancel pressed and send email flags ‘properly’
- I’m using sleep to simulate what the actual application will be doing which is submitting records to a database. Does sleep behave as a blocking call to a database sql insert command?
- How does one interrupt the sleep? I see that sleep has an extra parameter to ‘wakeup’ but not sure how do use it. (It’s probably not relevant in the end product, but I thought I’d ask)
- The position of the text at the top of the dialog box appears underneath the progress bar… Quite accidentally but I like it. Why is that happening?
Thanks.
B.