4D v14

Progress SET ON STOP METHOD

Home

 
4D v14
Progress SET ON STOP METHOD

Progress SET ON STOP METHOD 


 

Progress SET ON STOP METHOD ( id ; methodName ) 
Parameter Type   Description
id  Longint in ID of progress bar
methodName  Text in Name of stop method

The Progress SET ON STOP METHOD method designates a method to execute when the user clicks on the Stop button of the progress bar.

By default, progress bars do not have Stop buttons. If you want a progress bar to have one, you must use the Progress SET BUTTON ENABLED method.

In id, you pass the unique ID of the progress bar, returned by the Progress New method.

In methodName, you pass the name of the project method of the host database to be called when the Stop button is clicked. This method receives the unique ID of the progress bar as its first parameter. Then it is executed in a new process launched by the component.   

Note: Since the Progress SET ON STOP METHOD method belongs to a component, you must remember to assign the "Shared by components and host database" property to the methodName method; otherwise an error is returned.

 
PROPERTIES 

Product: 4D
Theme: Progress bars

 
HISTORY 

 
SEE ALSO 

Progress Get On Stop Method

 
ARTICLE USAGE

4D Progress ( 4D v14)
4D Progress ( 4D v13)
4D Progress ( 4D v14 R2)
4D Progress ( 4D v14 R3)
4D Progress ( 4D v14 R4)