Guest Posted June 25, 2003 Share Posted June 25, 2003 dialog1 := createlayout('Panel Material?',FALSE,'','Continue'); createstatictext(dialog1,4,'Please Choose the size(s) of the material you would like to have',-1); createstatictext(dialog1,5,'these panels cut from.',-1); setfirstlayoutitem(dialog1,4); setbelowitem(dialog1,4,5,0,0); CreateCheckBox(dialog1,6,material_array[3].text_array[1]); CreateCheckBox(dialog1,7,material_array[3].text_array[2]); CreateCheckBox(dialog1,8,material_array[3].text_array[3]); CreateCheckBox(dialog1,9,material_array[3].text_array[4]); I'm trying to disable item 11 from this list. When I do this I get an error saying that dialog does not exist when I put the line setitemenable(11,False); in the code. CreateCheckBox(dialog1,10,material_array[3].text_array[5]); CreateCheckBox(dialog1,11,material_array[3].text_array[6]); setitemenable(11,FALSE); setbelowitem(dialog1,5,6,0,0); setbelowitem(dialog1,6,7,0,0); setbelowitem(dialog1,7,8,0,0); setbelowitem(dialog1,8,9,0,0); setbelowitem(dialog1,9,10,0,0); setbelowitem(dialog1,10,11,0,0); Quote Link to comment
Vectorworks, Inc Employee klinzey Posted June 26, 2003 Vectorworks, Inc Employee Share Posted June 26, 2003 Setitemenable needs to be in the dialog handler, not in the dialog setup. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.