Home Index classes Index static functions Index enumerations Index structure types

{Dialog|_modal_form}


(including protected members)

CLASS {Dialog|_modal_form} , UNTESTED, DESTRUCTORS :


The {Dialog} class is descending from the {Form} class to show a form modal.


IMPORT : {Form} , {AL4_form} , {Control} , {Geometry} .

BASE CLASS {Form} .


 

OVERRIDE modal ==> BOOL , CALLBACK



-------------------------------------------------------------- 'modal show'

BOOL Center|_on_parent


 

METHOD Parent_form|_but_not_dialog ==> {Form}



OVERRIDE Show_modal ( {Form} Parent|_form_or_dialog ) ==> STR


Use this method call to show the {Dialog} form modal and await an answer. On return, the resulting answer text is stored also in the field Answer. This is the text which were passed in the {Dialog} implementation form in a call to the method ready. E.g., you can pass "OK" as a positiove answer or "" (empty string) otherwise.


-------------------------------------------------------------- 'set result'

   

OVERRIDE ready ( STR Result_to_set )


Call this method to stop showing the {Dialog} and to return the resulting text passed as the parameter. After disappearing a dialog form, it is possible to call the Show_modal method again to make another answer, later, but only if the method Close was not called.


OVERRIDE closed



OVERRIDE Hide



OVERRIDE Close


END