[Scilab-users] How to pause the script with a control panel

Orbeman ludo.wag at laposte.net
Tue Oct 2 20:42:51 CEST 2012


Hello,

I begin with graphics interface and I envisage to add some control panels in
my program. I would like to pause the program until I don't have click the
pushbutton to validate the parameters. The following function is
encapsulated in an other function. Could anyone explain how to do ?

Thanks.

Sorry for my bad english.

function ...

...

function [arg_uicontrol, arg_data]=saisie_parametres(arg_uicontrol)
    
    arg_uicontrol=struct()
    
    arg_data=list()
    
    arg_uicontrol.window=scf(0)
    arg_uicontrol.window.figure_position=[0 0]
    arg_uicontrol.window.figure_size=[250 500]
    arg_uicontrol.window.figure_name='Veuillez renseigner les paramètres de
l''optimisation'
    
    arg_data(1)=uicontrol('style', 'text',..
        'position', [0 100 150 25],..
        'backgroundcolor', [1 1 1],..
        'string', '$\huge\text{Paramètre 1}$'..
        )
    
    //...
    
    arg_data(1)=uicontrol('style', 'edit',..
        'position', [150 100 75 25],..
        'backgroundcolor', [1 1 1],..
        'string', '10'..
        )
    
    //...
    
    arg_uicontrol.validation=uicontrol('style', 'pushbutton',..
        'position', [250/2-100 15 200 50],..
        'string', '$\Huge\textbf{Simulation}$',..
        'callback', 'xdel(arg_uicontrol.window.figure_id)'..
        )
    
endfunction

[arg_uicontrol, arg_data]=saisi_parametres()

...

endfunction



--
View this message in context: http://mailinglists.scilab.org/How-to-pause-the-script-with-a-control-panel-tp4024949.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list