Hello.
Im having some problems here, about set the button radio state.

When i use the button state here, that is read from a variable (0 or 1) at a specific txt file, it wont change the state.

so what im doing wrong?

THIS IS THE LINE:
if(vv==1){
button_state(intro_txt_input,21,vv);// change the radio to state 1(checked)
}

this is my panel button configuration..

Php Code:
intro_txt_input=pan_create("
button(0,2,text_box,NULL,text_box,edit_text,NULL,NULL); 
button(0,18,text_box,NULL,text_box,edit_text,NULL,NULL); 
button(0,34,text_box,NULL,text_box,edit_text,NULL,NULL); 
button(0,50,text_box,NULL,text_box,edit_text,NULL,NULL); 
button(0,66,text_box,NULL,text_box,edit_text,NULL,NULL); 
button(0,82,text_box,NULL,text_box,edit_text,NULL,NULL); 

//
button(0,127,text_box,NULL,text_box,edit_text,NULL,NULL); 
button(0,143,text_box,NULL,text_box,edit_text,NULL,NULL); 
button(0,160,text_box,NULL,text_box,edit_text,NULL,NULL); 
button(0,175,text_box,NULL,text_box,edit_text,NULL,NULL); 
button(0,192,text_box,NULL,text_box,edit_text,NULL,NULL); 
button(0,207,text_box,NULL,text_box,edit_text,NULL,NULL); 

///TAGS
button_toggle(2,255,bttag,bttag_o,bttag,bttag_o,NULL,NULL,NULL); 
button_toggle(77,255,bttag,bttag_o,bttag,bttag_o,NULL,NULL,NULL); 
button_toggle(152,255,bttag,bttag_o,bttag,bttag_o,NULL,NULL,NULL); 
button_toggle(227,255,bttag,bttag_o,bttag,bttag_o,NULL,NULL,NULL); 

button_toggle(2,270,bttag,bttag_o,bttag,bttag_o,NULL,NULL,NULL); 
button_toggle(77,270,bttag,bttag_o,bttag,bttag_o,NULL,NULL,NULL); 
button_toggle(152,270,bttag,bttag_o,bttag,bttag_o,NULL,NULL,NULL); 
button_toggle(227,270,bttag,bttag_o,bttag,bttag_o,NULL,NULL,NULL); 


button_radio(0,92,check_bon,check_boff,check_boff,radio_edit,NULL,NULL); 
button_radio(80,92,check_bon,check_boff,check_boff,radio_edit,NULL,NULL);  





i want the button_radio(0,92) to be turn on
So i think its the button number 21 (counting up to down (lol))
Or normal buttons dont count? =(only radio, toggle does) ?


Solved...
>manual should indicate that ordinary buttons also counts.

Also i have error in my script, i tryed to change the state of the button, but the panel wasn't created yet. though the engine did not output error!!





Last edited by MMike; 06/13/10 19:45.