faqts : Computers : Programming : Languages : Delphi

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 31 people (3%) answered Yes
Recently 1 of 10 people (10%) answered Yes

Entry

Delphi: Wizard: Simple: How to create a very simple wizard in Delphi? [ShowMessage]

Aug 19th, 2003 12:50
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden - 19 August 2003 - 09:48 pm -----------------------

Use for example a ShowMessage box between your commands.

---

e.g.

 ShowMessage( 'To something, and now comes step 1.' );

 // now run your first command, program or executable

 ShowMessage( 'To something else, and now comes step 2.' );

 // now run your second command, program or executable

 ShowMessage( 'do something, and now comes step 3.' );

 // now run your third command, program or executable

 and so on...

---

This works because 'ShowMessage', by design, waits until you have press
the OK button, before continuing with the next step.

---

A possible next step could be to use a:

 MessageDlg()

box instead of a

 ShowMessage()

box, as this gives you more choices (e.g. 'Yes', 'No', 'Cancel')

----------------------------------------------------------------------