Why not use the Gambas MessageBoxes. Here is an example:
SELECT Message.Delete("Quit?", "Yes","No","Cancel")
CASE 1
TextLabel1.Text = "Quitting"
CASE 2
TextLabel1.Text = "Not Quitting"
CASE 3
TextLabel1.Text = "Canceled!"
END SELECT
--
regards,
jr
__________________________________
John W. Rittinghouse, Ph.D., CISM