FTC 1.4 beta 4
- From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Wed, 25 Feb 2009 11:30:05 -0600
FTC 1.4 beta 4 has been uploaded to the web site.
I have been working on the website and some of the paths have
changed. If you have a bookmark to the FTC page, here is the new
URL.
http://www.truenorthsoftware.com/formattedtextcontrol
Here's what's new with this beta...
- Implemented the ability to embed the FTC directly into a canvas
control. This allows you to have the full capabilities of the FTC
within a custom canvas.
This new feature is pretty slick. If you are going to use this
feature in the beta period, please let me know because I want to
keep close tabs on any problems and implement any helper methods
that you think are needed to make it easier to work with.
I have created a folder within the FTC distribution called
"FTCProxy" that contains the necessary modules for you to
implement an embedded FTC in a canvas. You will need to study
these files to see the details of how to use it in your own
application until I formally write up the documentation. To see it
in action in the demo, invoke the menu item "File->New Test
Window->Embedded FTC". The window that comes up will have two FTC
controls within a single canvas.
Here is a short version of how to get started...
You will want to start with the EmbeddedFTCWindow and look at the
"Main" control. Here are the basic steps for implementing the
embedded FTC.
- Create an invisible window to hold your instance of the FTC (see
TestProxyWindow). Add an FTC instance and scrollbars.
- Create an FTCProxy instance. This acts as the go between the
invisible window that contains the FTC that does the work and the
canvas you want to display it on.
- In the events of the canvas, call the proxy methods. The methods
you want to call start with the word "call". For example, in the
GotFocus event you would call...
targetProxy.callGotFocus
This will pipe the events to the FTC to process.
- In your private invisible window, implement the events in the
FTC to customize it to your needs (like adding custom object
creation etc.).
That is basically all you need to do to start using it. Of course
you will need to implement extra logic to handle the specifics of
your application's needs with the embedded FTC like controlling
the subfocus etc.
If you use this, let me know how it works for you.
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:
- » FTC 1.4 beta 4 - Brendan Murphy