Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

REALGraphics calls dont clip on a plugin control (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: Can ByRef parameter be default nil ?
Next thread: allocation conflict


macosx and unix paths   -   GOLD
  REALGraphics calls dont clip on a plugin control   -   Einhugur Software
   Re: REALGraphics calls dont clip on a plugin control   -   Christian Schmitz
    Re: REALGraphics calls dont clip on a plugin control   -   Einhugur Software

REALGraphics calls dont clip on a plugin control
Date: 12.06.04 16:03 (Sat, 12 Jun 2004 15:03:32 +0000)
From: Einhugur Software
Hello

It seems that on a plugin control then built in REALbasic Graphics
calls dont clip like if used on for example a Canvas on OS X.

The graphics is obtained with:

REALgraphics g = REALGetControlGraphics(instance);

Is there any way I can get the REALbasic Graphics calls to Clip like
they should do so that for example DrawString wont draw way out of the
control ?

Re: REALGraphics calls dont clip on a plugin control
Date: 12.06.04 18:02 (Sat, 12 Jun 2004 19:02:58 +0200)
From: Christian Schmitz
Einhugur Software <<email address removed>> wrote:

> Hello
>
> It seems that on a plugin control then built in REALbasic Graphics
> calls dont clip like if used on for example a Canvas on OS X.

The problem may be more that a REALgraphics object doesn't know it's
clipping rectangle and it's offset.

Because if a plugin draws in a canvas.graphics, the x and y position
must be updated.

Mfg
Christian

Re: REALGraphics calls dont clip on a plugin control
Date: 12.06.04 18:16 (Sat, 12 Jun 2004 17:16:11 +0000)
From: Einhugur Software

On 12.6.2004, at 17:02, Christian Schmitz wrote:

> The problem may be more that a REALgraphics object doesn't know it's
> clipping rectangle and it's offset.
>
> Because if a plugin draws in a canvas.graphics, the x and y position
> must be updated.
>
> Mfg
> Christian

You are misunderstanding a little this is a Graphics that is obtained
with

REALgraphics g = REALGetControlGraphics(instance);

And I am not drawing to it with MacOS calls, I am drawing with
REALbasic Graphics calls in it,
and those calls know the offset, and that all works perfectly. The
problem is that it does not clip to the controls boundaries, like
happens for example if you would do the same with a Canvas control.