Re: Offcenter centering

On Apr 5, 2009, at 8:02 AM, Brendan Murphy wrote:
> This makes it more clear when you are setting it to edit mode. So
> in your case you want to call the following instead.
>
> myFTC.setEditViewMode(0.06)
>
> setEditViewMode is also overloaded so that you can specify
> individual margins that are different.
>
> myFTC.setEditViewMode(1.0 ,0.06, 0.06, 0.06)


That makes sense.  I've just changed my code to use this.  Here's what  
I have in my FTC's open event:


   me.changeCenterAlignment

   me.borderColor=&c000000

   me.changeFont(GetPrefString("LyricFont",App.DefaultFont))
    
me 
.changeSize 
(app.ConvertFontSize(val(GetPrefString("LyricSmallFontSize","5"))))

   me.getDoc.setPageBackgroundColor(GetPrefColor("LyricDisplayColor",  
rgb(0,0,0)))

   SetCaretColor

   me.changeTextColor(GetPrefColor("LyricDisplayTextColor",  
rgb(255,255,255)))

   me.DefaultFont=GetPrefString("LyricFont",App.DefaultFont)
    
me 
.DefaultFontSize 
=app.ConvertFontSize(val(GetPrefString("LyricSmallFontSize","5")))

   me.changeLineSpacing(1)

   me.setEditViewMode(.06,.06,.06,.06)

   me.invalidateBackground

   me.Resize
   me.updateFull

   me.getDoc.addDefaultTabStops(FTTabStop.TAB_LEFT, 1)

   LyricDisplayIsSetup=True



When I run it, I actually do get my text centered within the bounds of  
the text area.  The problem is that the right margin is not set up  
correctly.  Take a look at this:



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: