Re: Initial Questions...
- From: Ron Benditt <rbenditt@xxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Mon, 10 Mar 2008 20:05:33 -0400
Thanks, that helped quite a lot.
I've also got the background color working correctly now. I'm
fighting sizing and re-sizing issues right now. I'm getting there
though.
Thanks,
Ron Benditt
Alien Apparatus Company, Inc.
http://www.alienapparatus.com
On Mar 10, 2008, at 7:08 PM, Yoann Besnard wrote:
Hi,
You will solve your problem by inserting in
FTDocument.drawNormalViewMode:
' Draw the page.
if Ubound(pages) > -1 Then
pages(0).drawNormalViewMode(g, self, xDisplayPosition,
yDisplayPosition, insertionPoint)
end if
It should solve your first problem.
Best Regards,
Yoann
On 11/03/2008, Ron Benditt <rbenditt@xxxxxxxxxxxxxxxxxx> wrote: Hello,
I'm attempting to migrate from a very buggy WordGuise plugin to the
Formatted Text Control. After a short look, I have a few questions/
comments:
Setting mode to anything besides Page results in an
OutOfBoundsException in FTDocument.drawNormalViewMode.
Assumption that everyone is has or is using the spelling checker
plugin is not valid. For what I'm doing, I don't want or need a
spelling checker, so I'm not going to pay $500 for a plugin that I
don't need. I've had to comment out a bunch of code and delete the
spelling modules to get FTC running. I hope I don't have to do that
every time that you put out an update. I suspect that most of FTC
users are in my situation.
How can the background color of the page be set? Not the blue area
behind the page, but the area where the text is drawn on. I see the
changeBackgroundColor method in the document class, but I have no
idea of what to put in for the FTInsertionOffset parameters. The
only way that I can see, at the moment , to get a FTInsertionOffset
object is to call getInsertionOffset. That gives me one of the two
parameters that I need. I just want the whole area to be different
than white, set in the control's open event, if possible.
Can the page width and height be changed apart from design-time?
Right now I'm looking to implement something like an edit field that
resizes when the window resizes. I have a feeling that I should not
be using Page mode, but as pointed out, I get errors when I choose
other modes. At some point, I do anticipate using the FTC in another
project where I would like to use page mode, however it would be nice
to allow the user to select paper size. I can already anticipate US/
Europe paper size differences!
I look forward to using this control. It will be so nice to leave WG
behind!!!!
Thanks a bunch for putting this control together,
Ron Benditt
Alien Apparatus Company, Inc.
http://www.alienapparatus.com
FTC Website: www.truenorthsoftware.com/Realbasic/FormattedText.html
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: www.truenorthsoftware.com/Realbasic/FormattedText.html
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.
- References:
- Initial Questions...
- From: Ron Benditt
- Re: Initial Questions...
- From: Yoann Besnard
Other related posts:
- » Initial Questions...
- » Re: Initial Questions...
- » Re: Initial Questions...
- » Re: Initial Questions...
- » Re: Initial Questions...
Hi,You will solve your problem by inserting in FTDocument.drawNormalViewMode:
' Draw the page. if Ubound(pages) > -1 Thenpages(0).drawNormalViewMode(g, self, xDisplayPosition, yDisplayPosition, insertionPoint)
end if It should solve your first problem. Best Regards, Yoann On 11/03/2008, Ron Benditt <rbenditt@xxxxxxxxxxxxxxxxxx> wrote: Hello, I'm attempting to migrate from a very buggy WordGuise plugin to the Formatted Text Control. After a short look, I have a few questions/ comments: Setting mode to anything besides Page results in an OutOfBoundsException in FTDocument.drawNormalViewMode. Assumption that everyone is has or is using the spelling checker plugin is not valid. For what I'm doing, I don't want or need a spelling checker, so I'm not going to pay $500 for a plugin that I don't need. I've had to comment out a bunch of code and delete the spelling modules to get FTC running. I hope I don't have to do that every time that you put out an update. I suspect that most of FTC users are in my situation. How can the background color of the page be set? Not the blue area behind the page, but the area where the text is drawn on. I see the changeBackgroundColor method in the document class, but I have no idea of what to put in for the FTInsertionOffset parameters. The only way that I can see, at the moment , to get a FTInsertionOffset object is to call getInsertionOffset. That gives me one of the two parameters that I need. I just want the whole area to be different than white, set in the control's open event, if possible. Can the page width and height be changed apart from design-time? Right now I'm looking to implement something like an edit field that resizes when the window resizes. I have a feeling that I should not be using Page mode, but as pointed out, I get errors when I choose other modes. At some point, I do anticipate using the FTC in another project where I would like to use page mode, however it would be nice to allow the user to select paper size. I can already anticipate US/ Europe paper size differences! I look forward to using this control. It will be so nice to leave WG behind!!!! Thanks a bunch for putting this control together, Ron Benditt Alien Apparatus Company, Inc. http://www.alienapparatus.com FTC Website: www.truenorthsoftware.com/Realbasic/FormattedText.htmlSet List Options (digest and vacation modes): www.freelists.org/ list/ftcdev
List Archive: www.freelists.org/archives/ftcdevUnsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in the subject field.
- Initial Questions...
- From: Ron Benditt
- Re: Initial Questions...
- From: Yoann Besnard