PROPLIST.DoModal

Previous  Next

 

state = PROPLIST.DoModal() AS INTEGER

 


 

Displays the dialog.  Returns one of the following predefined buttons

 

CONST PL_Cancel   = 0

CONST PL_Ok       = 1

CONST PL_Update   = 1000

 

or it will return

 

Button ID

If you have created any custom buttons using the "ButtonButton" type

Item ID

This is the negative index + 1 of the item in lower word and in the upper word, the pane index.  The first item will return -1 with the pane index in upper word.  This will be returned if;

a) Button created with either "ButtonBrowse" or "ButtonPick" Type

b) An item has the PL_Opt_Trigger option set and the item property was changed

 

Example:

 

PROPLIST.SETOPTION( "Working", TRUE, PL_Opt_Trigger )

 

DO

  nStatus = PROPLIST.DOMODAL()

 

  IF WORD.Lo( nStatus, TRUE ) = -1 THEN

     PRINT PROPLIST.GETVALUE( "Working" ); " is now Working !",

  ENDIF

 

  IF nStatus = 2 THEN

     PROPLIST.SETVALUE( "Working", "Kalle|Nisse|Pelle|Mamma Mia|Pappa Poo", TRUE );

     PROPLIST.SETVALUE( "Working", 2 );

     PROPLIST.SETVALUE( "File Under", "C:\kalle.anka" );

     PROPLIST.SETVALUE( "Checked Item ?", TRUE )

     PROPLIST.SETVALUE( "Floating Point", 654.321 )

     PROPLIST.SETVALUE( "Integer Value", 69 )

  ENDIF

UNTIL ( nStatus = 0 ) OR ( nStatus = 1 )