[futurebasic] Re: [FB] BOLDFACE Keywords

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2004 : Group Archive : Group : All Groups

From: Jay Reeve <jayreeve@...>
Date: Tue, 24 Aug 2004 00:32:13 -0500
Brian,

To do this, you must trap each keystroke entering your edit field. 
Whenever there is a change, you need to parse the edit field (or at 
least the line or the word where the cursor is), matching words against 
your key list,  and set or change the style as appropriate.

Here are a selection of FB commands you will likely need to use:
ON EDIT
SETSELECT
  WINDOW(_selstart)
WINDOW(_selend)
EDIT TEXT
EDIT$(fieldId,selStart,selEnd)

hth
  e-e
  =J= a  y
   "


On Monday, August 23, 2004, at 07:41  PM, Brian Heibert wrote:

> How do I make it so that certain words that the user types in my edit 
> field
> are bold and other words are plain like FB does?
>
> --
>
>