DDgui Programmers Reference Guide by Nicholas J. Kingsley - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Dialog Window

 

A general purpose dialog window (which allows the user to select either one or one of two buttons) can be created to display a message or request that the user respond to a query.

 

A dialog window can be created with :

 

result% = DDgui_msg(text$,yesNo% [,title$])

 

text$ is the text to be displayed.  The size of the window is limited, so this text should be kept to a minimum

 

yesNo% indicates whether there should be a simple OK button (yesNo% = FALSE) or whether there should be two buttons – one with “Yes” and one with “No” (yesNo% = TRUE)

 

title$, if present, is the title of the window.  If its not present, then the default of “Information” is used.

 

This function returns TRUE if the YES or OK button is selected, and FALSE if the NO button is selected.

Window with

 

yesNo% = FALSE      yesNo% = TRUE

img28.pngimg29.png