Re: FormattedText.resize with parameter
- From: Peter Karlsson <lists@xxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Mon, 09 Mar 2009 21:31:44 +0100
On 2009-03-09 19.34, Brendan Murphy wrote:
> Peter Karlsson wrote:
>
>> would it be possible to get FormattedText.resize with a
>> updateMargins as
>> boolean-parameter? Or is there any other way to get keep the margins
>> from reverting back to defaults when resizing in normal mode. I have
>> subclassed it and removed the margin changes, but had to make some
>> properties public in formattedtext for it to work.
>>
> I need clarification on what you are doing here.
>
> Normal mode is just like page mode except it has no page dividers,
> but keeps the margins (even through resize). Edit mode will by
> design shift the margins to hug the control edges whenever you
> resize (i.e., softwrap). It sounds like you are in edit mode. Is
> there some confusion here in which mode you are actually in?
>
I was in normal mode, faking edit mode by setting true in
setNormalViewMode, because I couldn't find a setter for edit mode, just
page and normal. I realize now this was what made the margins revert to
default, I just want to keep the left margin in all modes.
Peter Karlsson
> FTC Website: http://www.truenorthsoftware.com/formattedtextcontrol
> 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.truenorthsoftware.com/formattedtextcontrol
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: