Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is it possible to have a ScrolledComposite with width>32767 on Windows 2000
Is it possible to have a ScrolledComposite with width>32767 on Windows 2000 [message #460460] Sun, 28 August 2005 14:06 Go to next message
Eclipse UserFriend
Originally posted by: bodo.weiss.NOSPAM.acm.org

I created a ScolledComposite with
ScrolledComposite scrolledComposite = new ScrolledComposite(parent,
SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
scrolledComposite.setContent(getOtherComposite());
scrolledComposite.setExpandVertical(true);
scrolledComposite.setExpandHorizontal(true);
scrolledComposite.setAlwaysShowScrollBars(true);
and then I set its size
scrolledComposite.setSize(50000,500);

Debuging SWT source code I can see, that the native method
org.eclipse.swt.internal.win32.OS.DefWindowProcW(int,int,int ,int)
that is indirectly called by
scrolledComposite.setSize(50000,500);
lowers the first parameter to 32767. Everything right of pixel 32767
isn't shown. Is this a platform limit of W2K, a bug or is it possible to
go behind 32767?
Re: Is it possible to have a ScrolledComposite with width>32767 on Windows 2000 [message #460482 is a reply to message #460460] Mon, 29 August 2005 18:10 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Nope. It's a Windows limitation.

"Bodo Weiss" <bodo.weiss@NOSPAM.acm.org> wrote in message
news:desgdu$gk$1@news.eclipse.org...
> I created a ScolledComposite with
> ScrolledComposite scrolledComposite = new ScrolledComposite(parent,
> SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
> scrolledComposite.setContent(getOtherComposite());
> scrolledComposite.setExpandVertical(true);
> scrolledComposite.setExpandHorizontal(true);
> scrolledComposite.setAlwaysShowScrollBars(true);
> and then I set its size
> scrolledComposite.setSize(50000,500);
>
> Debuging SWT source code I can see, that the native method
> org.eclipse.swt.internal.win32.OS.DefWindowProcW(int,int,int ,int)
> that is indirectly called by
> scrolledComposite.setSize(50000,500);
> lowers the first parameter to 32767. Everything right of pixel 32767
> isn't shown. Is this a platform limit of W2K, a bug or is it possible to
> go behind 32767?
Previous Topic:Global exception handler?
Next Topic:ScollableComposite and different layouts
Goto Forum:
  


Current Time: Fri Apr 26 04:24:25 GMT 2024

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

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

Back to the top