Danko Radic wrote:
> 
> I have a field and set of buttons (keyboard). Typed symbols are inserted
> into field (FldInsert function etc...). Cursor position can be changed via
> repeat buttons as well and I want blinking cursor to be drawn, but I
> wouldn't want to keep field editable so that only the keyboard symbols can
> be inserted. If I set field *not editable* in Constructor, FldInsert function, 
> blinking cursor etc. doesn't work any more. Any advice how to achieve described 
> functionality with non editable field is appriciated.


One option is to set the field as *non editable* in constructor, and
change the attribute in your program before using FldInsert.  Here's a
snippet of code from one of our apps.

    fpName = GetObjectPtr(form, fieldID_RegName);
    fpName->attr.editable = 1;
    FldInsert(GetObjectPtr(form, fieldID_RegName), sUserName,
StrLen(sUserName));
    fpName->attr.editable = 0;


Paul . . .

-- 
 ___________________________________________________________________
  dpw Designs                    http://www.pe.net/firm/dpw-designs
                                 mailto:[EMAIL PROTECTED]

Reply via email to