Re: SoftWrap in NormalMode or Scale in EditMode?

  • From: Jim Pitchford <jim@xxxxxxxxxxxxxxxx>
  • To: ftcdev@xxxxxxxxxxxxx
  • Date: Fri, 7 Jun 2013 16:13:36 -0500

Thanks Bob.

I assume you are using .getdoc.setPageWidth and .getDOc.getPageWIdth… but what 
dimensions are used - its about 100 times too small for pixels and doesn't line 
up with inches or cm??

Jim Pitchford
jim@xxxxxxxxxxxxxxxx



On 7 Jun 2013, at 13:43, Bob Keeney <bobk@xxxxxxxxxxx> wrote:

> Rather than use edit mode, use page mode and change the size of the paper.  I 
> did this for Shorts and it works well.
> 
> Sent from my iPhone
> 
> On Jun 7, 2013, at 11:34 AM, Jim Pitchford <jim@xxxxxxxxxxxxxxxx> wrote:
> 
>> I have tried a work around of drawing the FormattedText control into a 
>> picture.graphics, and then g.drawpicture into a canvas. Whilst this creates 
>> the desired scaling effect, it is very limited as picture uses bitmap 
>> graphics, so the quality of fonts etc diminishes quickly.
>> 
>> It would be nice to be able to find a way of keeping the graphics quality.
>> 
>> Jim Pitchford
>> jim@xxxxxxxxxxxxxxxx
>> 
>> 
>> 
>> On 7 Jun 2013, at 10:08, Jim Pitchford <jim@xxxxxxxxxxxxxxxx> wrote:
>> 
>>> In order to be able to print my new FTC based control, I need to be able to 
>>> scale it.
>>> 
>>> The control I have built uses EditMode to take advantage of its soft 
>>> wrapping  - allowing me to fit text into any sized output. But I notice 
>>> that there is no scaling within EditMode.
>>> 
>>> SetScale seems to be only available in Normal or Page modes. Is it possible 
>>> to turn on soft-wrapping in either of these modes?
>>> 
>>> Or is there another solution to get a scaled copy of a soft wrapped 
>>> EditMode into a canvas paint event?
>>> 
>>> Regards
>>> 
>>> 
>>> 
>>> FTC Website: http://www.bkeeney.com/products/formatted-text-control
>>> Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
>>> List Archive: www.freelists.org/archives/ftcdev
>>> Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" 
>>> in the subject field.
>> 
>> FTC Website: http://www.bkeeney.com/products/formatted-text-control
>> Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
>> List Archive: www.freelists.org/archives/ftcdev
>> Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" 
>> in the subject field.
>> 
>> 
> FTC Website: http://www.bkeeney.com/products/formatted-text-control
> Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
> List Archive: www.freelists.org/archives/ftcdev
> Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in 
> the subject field.
> 
> 
> 

FTC Website: http://www.bkeeney.com/products/formatted-text-control
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in 
the subject field.


Other related posts: