search for: selectmatrix

Displaying 1 result from an estimated 1 matches for "selectmatrix".

2008 Nov 21
3
Dynamic generation of a (sub) layout
...ew(@selectUVFrame, "&Clear All", nil, nil, 0,).connect(SEL_COMMAND){ @selectedUVs.each{|cb| cb.setCheck(false)} drawScene } FXButton.new(@selectUVFrame, "&Set All", nil, nil, 0).connect(SEL_COMMAND){ @selectedUVs.each{|cb| cb.setCheck(true)} drawScene } selectMatrix = FXMatrix.new(@selectUVFrame, 4, MATRIX_BY_COLUMNS) @selectedUVs = [] uvs.length.times{|i| @selectedUVs << FXCheckButton.new(selectMatrix, i.to_s, nil, 0){ |cb| cb.setCheck(true) } @selectedUVs[-1].connect(SEL_COMMAND, method(:onSelectUV)) } @selectUVFrame.recalc end -- V...