[futurebasic] Re: [FB] Displaying text with a Text Handle

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2006 : Group Archive : Group : All Groups

From: Brian Stevens <brilor@...>
Date: Sun, 15 Jan 2006 09:59:32 -0700
On Jan 15, 2006, at 6:17 AM, Ken Shmidheiser wrote:

> -- Edit Text controls are nice, have huge capacity, but are bears  
> to do
> something as simple as attach a scroll bar to.

Good point. However, a scrolling text control is possible, and,   
implemented as shown in RP's YAST (Yet Another Scrolling Text) demo,  
has many benefits such as: (to quote from YAST)
  Quartz text
   multiple Undo and Redo
   no 32k character limit
   Unicode text
   scroll bar
   drag and drop
   auto cursor

The benefits do not require any additional coding (except building  
the appropriate EDIT menu and edit menu entries). The biggest  
downside is it doesn't use FB's event handling, so handlers must be  
set up to intercept basic events. This demo is also a good way to  
learn how to bundle an application if you aren't doing that already.  
As Ken has already pointed out, carbon events and handlers are  
involved, so this is not is not a typical FB events-driven example.  
But it is the future, so learning will be time well-spent. It is  
possible some future release of FB will hide these details from us.

My copy of the YAST demo is located at:

/Examples/**Donations**/Robert P's Favorite Examples/OS X folder/ 
Windows, text, drawing/YAST folder

Since my "CD" is often intermixed with other examples, it is possible  
the general CD does not have this demo (I don't remember at the  
moment). I'd be happy to send it backchannel if that is the case.

Brian S.