Help with PShelf size and rendering [message #630356] |
Fri, 01 October 2010 13:42  |
Eclipse User |
|
|
|
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 14:57  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03134 seconds