//
pan_setbutton(panel,0,2,10,10,SL_exit,SL_exit,SL_exit,SL_exit,butnum,NULL,NULL); //first element created
//sucessfully created as button "1", tested by butnum function.
button_state(panel,1,0); //make sure status is OFF
diag_var("b1= %.0f\n", button_state(panel, 1, -1)); //diag status - should be off, and is.
button_state(panel,1,1); //set to ON
diag_var("\nb1= %.0f\n", button_state(panel, 1, -1)); //diag status - should be on, BUT ISNT.
//
//
//