Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Composite with background image that automatically fills as shell grows

 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

I am trying to have a component that has this image as a background and I would lay out all the components on top if it.

This is the image: http://marckremers.com/portrait-of-an-unknown-document/portrait-of-an-unknown-document.jpg

Upon resizing, I want to image to dynamically grow. Not the whole image however (the fold of this document image would grow too) but only - when resizing vertically - the sheet's length would grow, when resizing horizontally, the width would fill up.

Now, before I start shredding code I would like to hear about your approaches ...

Thanks :-)

-- edit: there was a typo in the title .. i meat SWT composite and not component
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic