Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] DynaPDF: SetTextRect & WriteFText with no page break (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Determine # of CPU cores or hyperthreads?
Next thread: [MBS] [ANN] 13.0pr2


Re: [MBS] AuthorizationMBS   -   Garth Hjelte
  [MBS] DynaPDF: SetTextRect & WriteFText with no page break   -   Mark Franken
   Re: [MBS] DynaPDF: SetTextRect & WriteFText with no page break   -   Christian Schmitz

[MBS] DynaPDF: SetTextRect & WriteFText with no page break
Date: 15.12.12 03:39 (Sat, 15 Dec 2012 13:39:48 +1100)
From: Mark Franken

Hi Christian,

I'd like to set a box with SetTextRect and fill it with one or more lines of text with WriteFText. However if there is too much text for the box size I'd like to ignore it simply truncate the text (print what will fit) and not print the remaining text on a new page. Is there a way to do this?

I see it's possible to set the hight of SetTextRect to -1, but doing this won't limit the height of my text.

Many thanks,

Mark










_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] DynaPDF: SetTextRect & WriteFText with no page break
Date: 15.12.12 10:45 (Sat, 15 Dec 2012 10:45:19 +0100)
From: Christian Schmitz

Am 15.12.2012 um 03:39 schrieb Mark Franken <<email address removed>>:

>
> Hi Christian,
>
> I'd like to set a box with SetTextRect and fill it with one or more lines of text with WriteFText. However if there is too much text for the box size I'd like to ignore it simply truncate the text (print what will fit) and not print the remaining text on a new page. Is there a way to do this?

Simply return -1 from the PageBreak event to stop writing text.

Greetings
Christian