TTMSFMXTaskDialog progress message

can you give me a sample that activate the progress bar (with text evenctually) on button click (es mrOk) of taskdialog ? thx