Is it possible to have a ScrolledComposite with width>32767 on Windows 2000 [message #460460] |
Sun, 28 August 2005 10:06  |
Eclipse User |
|
|
|
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 14:10  |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.03590 seconds