Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Help with PShelf size and rendering
Help with PShelf size and rendering [message #630356] Fri, 01 October 2010 17:42 Go to next message
Sharon Snyder is currently offline Sharon Snyder
Messages: 56
Registered: September 2010
Member

I am using the PShelf widget and am having some rendering issues.

Here is my setup:

ScrolledComposite
- Composite (Stack Layout)
-- PShelf
--- PShelf Item (at least 1, possibly many)
---- Contains a composite with a table & buttons
--- PShelf Item (at least 1, possibly many)
---- Contains a composite with a table & buttons
--- PShelf Item (at least 1, possibly many)
---- Contains a composite with a table & buttons
-- etc.

I set the proper PShelf as the top control in the stack when the user presses a button on another pane in the UI (I have this part working fine).

The issue I have is when there are too many shelf items for the display, the body of the shelfItem is not displaying - there isn't enough room in the composite containing the shelfItems sometimes, let alone the shelfItem that is selected!

Is anyone still working on this widget that can help me with this? Does anyone have any ideas?

The key is that the items are being added to the shelves based on outside ad-hoc messages...so they are dynamically being added. So, I do not have a set size for the number of shelf items. The body of the shelf item should have a minimum size that is adhered to.

Any thoughts? I could really use the help!

Thanks in advance!

Sharon
Re: Help with PShelf size and rendering [message #630982 is a reply to message #630356] Tue, 05 October 2010 17:50 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5330
Registered: July 2009
Senior Member
Yes - I do. The best idea i have is to wrap things in a
ScrolledComposite and set its width big enough.

What would you expect to happen?

Tom

Am 01.10.10 19:42, schrieb Sharon Snyder:
> I am using the PShelf widget and am having some rendering issues.
>
> Here is my setup:
>
> ScrolledComposite
> - Composite (Stack Layout)
> -- PShelf
> --- PShelf Item (at least 1, possibly many)
> ---- Contains a composite with a table & buttons
> --- PShelf Item (at least 1, possibly many)
> ---- Contains a composite with a table & buttons
> --- PShelf Item (at least 1, possibly many)
> ---- Contains a composite with a table & buttons
> -- etc.
>
> I set the proper PShelf as the top control in the stack when the user
> presses a button on another pane in the UI (I have this part working fine).
>
> The issue I have is when there are too many shelf items for the display,
> the body of the shelfItem is not displaying - there isn't enough room in
> the composite containing the shelfItems sometimes, let alone the
> shelfItem that is selected!
>
> Is anyone still working on this widget that can help me with this? Does
> anyone have any ideas?
> The key is that the items are being added to the shelves based on
> outside ad-hoc messages...so they are dynamically being added. So, I do
> not have a set size for the number of shelf items. The body of the
> shelf item should have a minimum size that is adhered to.
> Any thoughts? I could really use the help!
> Thanks in advance!
>
> Sharon
Re: Help with PShelf size and rendering [message #630992 is a reply to message #630982] Tue, 05 October 2010 18:57 Go to previous message
Sharon Snyder is currently offline Sharon Snyder
Messages: 56
Registered: September 2010
Member

Thanks. First, I decided not to use pshelf because I was not happy with the performance when there were lots of items. It seemed to slow down quite a bit. That and I was getting push-back from my boss about using a non-standard/alpha-level widget. So, I switched to using and ExpandBar.

Second, I think I figured out the sizing issue....although I never really tried it out. I did have everything wrapped by a scrolled composite, but somehow the scrolledComposite was getting resized when it shouldn't have been. Also, I think there was some issue with how I made my pShelfItem.getBody() sized. Those things were problems even with the ExpandBar but I did fix them, so I assume the problem was the same for the pShelf.

Like I said, the item dropping down/opening seemed to slow down dramatically the more items I had in the shelf. Sometimes I would have 50 shelf items in a shelf, which is not a large number, but not a small one either.

Thanks again,
Sharon
Previous Topic:Hide column in TableCombo.
Next Topic:XViewer examples and API?
Goto Forum:
  


Current Time: Sat Sep 20 12:13:08 GMT 2014

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

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