Results 1 to 2 of 2
  1. #1
    kalata is offline Member
    Join Date
    Aug 2011
    Location
    Bulgaria
    Posts
    29
    Rep Power
    0

    Default A Composite/Group inside ScrolledComposite

    Hi,

    I am new to SWT so I do apologize in advance if the question is lame, but here is my problem - I have a Group within a ScrolledComposite and i want to make it fit to the ScrolledComposite size(the ScrolledComposite size is determined dynimacly). Any ideas?

    Edit: I tried (before creating the thread) with setSize, but the size of the Group remains static, which is not what I want to achieve.

    Thanks in advance,
    Kalata
    Last edited by kalata; 08-11-2011 at 09:15 AM.

  2. #2
    kalata is offline Member
    Join Date
    Aug 2011
    Location
    Bulgaria
    Posts
    29
    Rep Power
    0

    Default

    Found it out - the trick is to use setExpandHorizontal/Vertical method of the ScrolledComposite and set the min width/height with setMinWidth/Height in order to be able to use scrolls.

Similar Threads

  1. Replies: 9
    Last Post: 04-12-2011, 07:26 PM
  2. Custom alignment of SWT widgets inside Composite
    By venkat.eclipse in forum SWT / JFace
    Replies: 2
    Last Post: 02-16-2011, 08:49 PM
  3. Scroll Canvas/ScrolledComposite within TabItem
    By garyscarter in forum SWT / JFace
    Replies: 0
    Last Post: 07-08-2009, 12:42 PM
  4. ScrolledComposite?
    By nreyntje in forum SWT / JFace
    Replies: 0
    Last Post: 01-31-2009, 05:50 PM
  5. ScrolledComposite Demosntration
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-11-2008, 04:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •