I'll try to take a look, but I can't open that file. Can you send the files as 
a zip or gz or post them online somewhere?

On Sep 8, 2011, at 4:35 PM, pavan vadavalli wrote:

> Hi Greg,
> I tried to adjust the width and height in the layout method to make sure the 
> width and height is less then the Preferred  height and preferred width.
> But still i dont see the Scroll bar.
> What i changed in the code.
> 
> 
> taskBar.setContent(taskBarContents);
>         
> taskBarContents.setSize(taskBar.getPreferredWidth(),taskBar.getPreferredHeight());
>         taskBarScrollPane.setPreferredHeight(taskBar.getPreferredHeight());
>         taskBarScrollPane.setPreferredWidth(taskBar.getPreferredWidth());
>         taskBarScrollPane.setWidth(taskBarScrollPane.getPreferredWidth()-200);
>         
> taskBarScrollPane.setHeight(taskBarScrollPane.getPreferredHeight()-20);
> 
> 
> Attached is the complete sources . i have modified TerraTheme to set the 
> skins  for the components.
> 
> 
>   componentSkinMap.put(InternalFrame.class, InternalFrameSkin.class);
>   componentSkinMap.put(MainDisplay.class, MainDisplaySkin.class);
>   componentSkinMap.put(TaskBar.class, TaskBarSkin.class);
> 
> Btw, do we have easy other option (other than changing the provider in the 
> Manifest  and writing a new Provider (Terra Theme is marked as final ))to 
> plugin the skins without touching the Pivot sources?
> 
> Thanks and Regards,
> Pavan
> 
> 
> On 8/09/2011 11:22 PM, Greg Brown wrote:
>> Hard to say without seeing the code. But basically, you need to make sure 
>> that the scroll pane is given a width and/or height that is smaller than its 
>> preferred size. Then the scroll bars will appear.
>> 
>> On Sep 8, 2011, at 9:17 AM, pavan vadavalli wrote:
>> 
>>> HI Greg,
>>> Can you please help me to point to the issue in layout design that is 
>>> causing the Scrollbar to not to appear?
>>> Thanks and Regards,
>>> Pavan
>>> On 7/09/2011 7:10 AM, pavan vadavalli wrote:
>>>> Hi Greg,
>>>> I have been actually trying to implement an MDI based solution, this is 
>>>> part of the Task Bar implementation. I have updated the Skin in Terra 
>>>> Theme since i didn't find and easy option to plugin the skin.
>>>> Attached is the skin for the TaskBar.
>>>> in the taskbar Layout
>>>> The contents are added as below.
>>>> 
>>>>    TaskBar taskBar = (TaskBar)getComponent(); this.getComponent();
>>>>        taskBar.setContent(taskBarContents);
>>>>         
>>>> taskBarContents.setSize(taskBar.getPreferredWidth(),taskBar.getPreferredHeight());
>>>>         taskBarScrollPane.setPreferredHeight(taskBar.getPreferredHeight());
>>>>         taskBarScrollPane.setPreferredWidth(taskBar.getPreferredWidth());
>>>>         taskBar.setMaximized(true);
>>>> 
>>>> I have added the ScrollPane to the window and i have set maximized in all 
>>>> the places for the window.
>>>> What am i missing here?
>>>> -Pavan
>>>> 
>>>> On 7/09/2011 6:47 AM, Greg Brown wrote:
>>>>> Sounds like you might have a different layout issue in your 2nd window.
>>>>> 
>>>>> On Sep 6, 2011, at 4:41 PM, pavan vadavalli wrote:
>>>>> 
>>>>>> Hi Greg,
>>>>>> You are correct, this is working as an independent window.
>>>>>> 
>>>>>> I was testing this along in  my application where i have two windows ( 
>>>>>> the main Window and second Window ).
>>>>>> The main Window is the owner of the Second window.
>>>>>> the Second window is the class extending Window and i have set the 
>>>>>> Maximized to true for the second window along with the main window 
>>>>>> aswell.
>>>>>> But the Scrollbar is not popping up in this case.
>>>>>> Thanks and Regards,
>>>>>> Pavan
>>>>>> 
>>>>>> On 7/09/2011 6:16 AM, Greg Brown wrote:
>>>>>>>> Attached is the updated XML
>>>>>>> Works for me. See attached.
>>>>>>> 
>>>>>>>> However, i was actually looking for a more flexible solution like 
>>>>>>>> scrollpane content can stretch itself with the size of the the Parent 
>>>>>>>> Window and can show all the elements.
>>>>>>> That's exactly what setting maximized="true" on the Window does.
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
> <src.rar>

Reply via email to