Jump to content
Developer Wiki and Function Reference Links ×

Why does this not work?


Guest

Recommended Posts

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);

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...