Hi,
In the following script fragment I've defined an array of six button boxes within a Line Up Box five slightly different ways in as many different windows. In the first window I don't bother to specify the width of any of the buttons – no problem. In the second and third windows, I specify that I want one of the two columns to be a specific width by setting the width of just one of the buttons in that column – again, no problem. In the fourth window I specify the width of both columns by setting the widths of the second and fifth buttons – no problem. But when I try to do the same thing on the first and second buttons in the fifth window, it doesn’t work: the first two buttons don’t appear in the window. I've tried this in both JMP 10 and JMP 11 with the same result.
I don't think I've done anything silly here, so why is this please? I'd like to understand this because I may need to create a window in an application on which I'm working in which there are a variable number of buttons in two columns of specified width - and there could be just two of them, in which case I'm likely to encounter just this issue.
nw1 = new window("NW1",
LineUpBox(ncol(2),
Button Box("A"), Button Box("X"),
Button Box("B"), Button Box("Y"),
Button Box("C"), Button Box("Z"),
)
);
nw2 = new window("NW2",
LineUpBox(ncol(2),
Button Box("A"), Button Box("X", << set width(200)),
Button Box("B"), Button Box("Y"),
Button Box("C"), Button Box("Z"),
)
);
nw3 = new window("NW3",
LineUpBox(ncol(2),
Button Box("A", << set width(200)), Button Box("X"),
Button Box("B"), Button Box("Y"),
Button Box("C"), Button Box("Z"),
)
);
nw4 = new window("NW4",
LineUpBox(ncol(2),
Button Box("A"), Button Box("X", << set width(200)),
Button Box("B"), Button Box("Y"),
Button Box("C", << set width(200)), Button Box("Z"),
)
);
nw5 = new window("NW5",
LineUpBox(ncol(2),
Button Box("A", << set width(200)), Button Box("X", << set width(200)),
Button Box("B"), Button Box("Y"),
Button Box("C"), Button Box("Z"),
)
);
Many thanks for any insight offered.