PDA

View Full Version : Window creation problem


safakoner
12-06-2003, 11:14 AM
I can't run this code. Why ? Can you help me please ?




if (`window -q -exists nw_w`) deleteUI nw_w;
window -title "" -iconName "" -widthHeight 105 147 nw_w;

columnLayout;

frameLayout -l " " -cll true -w 104 fl_sp;
rowLayout -nc 2 -cw 1 50 -cw 2 50;
symbolButton -w 50 -h 30 -image "icc.bmp" -c "sp_c" b_sp_c;
symbolButton -w 50 -h 30 -image "icc.bmp" -c "sp_b" b_sp_b;
setParent..;
setParent..;

frameLayout -l " " -cll true -w 104 ;
rowLayout -nc 2 -cw 1 50 -cw 2 50;
symbolButton -w 50 -h 30 -image "icc.bmp" -c "spsbs_c" b_spsbs_c;
symbolButton -w 50 -h 30 -image "icc.bmp" -c "spsbs_d" b_spsbs_d;
setParent..;
setParent..;



frameLayout -l " " -vis 0 -cll true -w 104 ;
rowLayout -nc 2 -cw 1 50 -cw 2 50;
symbolButton -w 50 -h 25 -image "icc.bmp" -c "spsbs_c" b_spsbs_c;
symbolButton -w 50 -h 25 -image "icc.bmp" -c "spsbs_d" b_spsbs_d;
symbolButton -w 50 -h 25 -image "icc.bmp" -c "spsbs_s" b_spsbs_s;
symbolButton -w 50 -h 25 -image "icc.bmp" -c "spsbs_d" b_spsbs_k;
symbolButton -w 50 -h 25 -image "icc.bmp" -c "spsbs_d" b_spsbs_d;
symbolButton -w 50 -h 25 -image "icc.bmp" -c "spsbs_d" b_spsbs_d;
symbolButton -w 50 -h 25 -image "icc.bmp" -c "spsbs_d" b_spsbs_d;
symbolButton -w 50 -h 25 -image "icc.bmp" -c "spsbs_d" b_spsbs_d;

setParent..;
setParent..;

showWindow nw_w;

safakoner
12-06-2003, 11:20 AM
oh
I forget the icon. Sorry.

dwalden74
12-06-2003, 07:48 PM
1) you specified "-nc 2" for your last rowLayout , while it in fact has 8 children, and 2) you used the name "b_spsbs_d" for 8 different buttons.

safakoner
12-08-2003, 07:44 AM
oh... I can't believe myself :banghead:
this is a copy paste problem. :cry:

thanks

CGTalk Moderation
01-16-2006, 08:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.