[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] restrict Composite size

HI All,
Is there any way to limit the Composite size?? I have a Parent composite say "A", adding one more composite "B" to it....i add CheckBoxTableViewer "ctv" to it,elements in ctv are added at run time from a property file it has some 100 elements.The Problem is size of UI, due to large number of elemnts in ctv it is expanding to full length making Dialog to expand from top to bottom of screen and then adding scrollbar to it which is ok.
Due to some limitations i can't use shell.setSize(), only way for me is to limit the size of composite "B" so that ctv does't expand beyond B's height.