Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » problems with tabfolder
problems with tabfolder [message #311981] Sat, 27 January 2007 13:00 Go to next message
Eclipse UserFriend
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 #311982 is a reply to message #311981] Sat, 27 January 2007 13:23 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: problems with tabfolder [message #311984 is a reply to message #311982] Sat, 27 January 2007 13:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.rojo.run-level.es

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
Re: problems with tabfolder [message #311985 is a reply to message #311984] Sat, 27 January 2007 14:19 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: problems with tabfolder [message #312004 is a reply to message #311985] Sun, 28 January 2007 17:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.rojo.run-level.es

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
Re: problems with tabfolder [message #312009 is a reply to message #312004] Sun, 28 January 2007 18:53 Go to previous message
Eclipse UserFriend
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
Previous Topic:Source in debug mode
Next Topic:How to create Workspace programatically without using Eclipse IDE
Goto Forum:
  


Current Time: Wed May 07 20:02:04 EDT 2025

Powered by FUDForum. Page generated in 0.03012 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top