Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Canvas bounds and Figure bounds
Canvas bounds and Figure bounds [message #157648] Thu, 11 November 2004 11:50 Go to next message
Eclipse UserFriend
Originally posted by: daniel.yahoo.com

Hi
In my application I create two controls: a canvas(A) and a
FigureCanvas(B). In A I created a lightweightsystem with a figure(C). B is
below A and B can scroll. when B scrolls the C figure and A control will
set their bounds to display some information about A. But I met some
problems:
The biggest bounds of A is 32767. So the C figure bounds is 32767 and
when the value I display is bigger than some value. The A control and c
Figure is not painted normally.
I don't know if the SWT control's bounds is 32767.
Can you give me some suggestions?
3x
Daniel
Re: Canvas bounds and Figure bounds [message #157696 is a reply to message #157648] Thu, 11 November 2004 15:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

I think that windows combines width and height into a single 32-bit value,
so 16-bits for each == 32K
"daniel" <daniel@yahoo.com> wrote in message
news:cmvjlf$l3q$1@eclipse.org...
> Hi
> In my application I create two controls: a canvas(A) and a
> FigureCanvas(B). In A I created a lightweightsystem with a figure(C). B is
> below A and B can scroll. when B scrolls the C figure and A control will
> set their bounds to display some information about A. But I met some
> problems:
> The biggest bounds of A is 32767. So the C figure bounds is 32767 and
> when the value I display is bigger than some value. The A control and c
> Figure is not painted normally.
> I don't know if the SWT control's bounds is 32767.
> Can you give me some suggestions?
> 3x
> Daniel
>
>
Re: Canvas bounds and Figure bounds [message #157743 is a reply to message #157648] Thu, 11 November 2004 22:20 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Well, 2^16 = 64K, but there might still be a limit on how big the control
can get. Daniel, you should ask the SWT newsgroup about that. Also, what
are the symptoms of "A control and c Figure not painting properly"? Maybe a
screenshot'll shed some light on what it is that you're trying to do and
what is not working properly.

"daniel" <daniel@yahoo.com> wrote in message
news:cmvjlf$l3q$1@eclipse.org...
> Hi
> In my application I create two controls: a canvas(A) and a
> FigureCanvas(B). In A I created a lightweightsystem with a figure(C). B is
> below A and B can scroll. when B scrolls the C figure and A control will
> set their bounds to display some information about A. But I met some
> problems:
> The biggest bounds of A is 32767. So the C figure bounds is 32767 and
> when the value I display is bigger than some value. The A control and c
> Figure is not painted normally.
> I don't know if the SWT control's bounds is 32767.
> Can you give me some suggestions?
> 3x
> Daniel
>
>
Previous Topic:Open a *.logic file directly from file system rather than workspace?
Next Topic:How to setup logic example for debugging in 3.x?
Goto Forum:
  


Current Time: Fri Apr 26 15:54:38 GMT 2024

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

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

Back to the top