** Command Group Init Event Code * Sizes all visible buttons to match the size of the command group container... DoDefault() LOCAL n, nCnt n= 0 nCnt= 0 * only allow for visible buttons in layout FOR EACH oCmd IN THIS.Buttons IF m.oCmd.visible nCnt= m.nCnt + 1 ENDIF ENDFOR FOR EACH oCmd IN THIS.Buttons IF oCmd.visible oCmd.Top= 0 oCmd.Height= THIS.Height ocmd.Width= INT((THIS.width-m.nCnt)/m.nCnt) oCmd.Left= (oCmd.width+1) * m.n n= m.n + 1 ENDIF ENDFOR THIS.borderStyle= 0Hope this gives you some ideas