problems with tabfolder [message #311981] |
Sat, 27 January 2007 13:00  |
Eclipse User |
|
|
|
Originally posted by: david.rojo.run-level.es
Hello,
I'm trying to create a preference page with a Label and a TabFolder.
The point is that the tabFolder does not get the composite's size,
instead of it, it only takes the minimun size (what it needs to draw the
tabItem's content).
How can I give the size to the tabFolder?.
Thanks
|
|
|
|
|
|
|
Re: problems with tabfolder [message #312009 is a reply to message #312004] |
Sun, 28 January 2007 18:53  |
Eclipse User |
|
|
|
ScrolledCompositeLayout is located in org.eclipse.swt.
The ScrolledComposite class uses this layout. You can't use the
ScrolledCompositeLayout class because it has default access, but you can
create your own class according to it.
Snjeza
David Rojo wrote:
> it should be very easy, but I'm not able to find it. I have a TabFolder
> and I want to get the scroll into each TabItem.
>
> I tried to assign a PageBook for each tabItem. Then the
> ScrolledComposite to the pageBook and a Composite to the
> scrolledComposite (because there are several ColorFieldEditor inside
> every tabItem).
>
> but I can't get the scroll bar
>
>
> Snjezana Peco escribió:
>> You can make your own layout.
>> ScrolledComositeLayout can serve as an example.
>>
>> Snjeza
>>
>> David Rojo wrote:
>>> ok, but now i have the problem with the scroll. how can I get an
>>> automatic scroll when the content of the tab is too big? and how can
>>> I specify the maximum size of the tabFolder?
>>> Thanks
>>>
>>> Snjezana Peco escribió:
>>>> Try the following :
>>>>
>>>> tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));
>>>>
>>>> Snjeza
>>>>
>>>> David Rojo wrote:
>>>>> Hello,
>>>>>
>>>>> I'm trying to create a preference page with a Label and a TabFolder.
>>>>>
>>>>> The point is that the tabFolder does not get the composite's size,
>>>>> instead of it, it only takes the minimun size (what it needs to
>>>>> draw the tabItem's content).
>>>>>
>>>>> How can I give the size to the tabFolder?.
>>>>>
>>>>> Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03012 seconds