Okay... you guys mean something like this?
Boolean handled = false;
switch (eventP->eType) {
.
.
.
case fldEnterEvent:
if (eventP->data.fldEnter.fieldID == f2Field) {
handled = true;
}
break;
.
.
.
}
the cursor is still disappeared though...
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 05, 1999 11:17 AM
To: [EMAIL PROTECTED]
Subject: RE: [Q] visible cursors in a field
I think fieldEntryEvent may be even better.
> -----Original Message-----
> From: Neil Rhodes [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, May 05, 1999 10:57 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Q] visible cursors in a field
>
> > There are 3 fields (F1, F2, and F3) in a form. I made F1 and F3 as
> editable
> > fields. F2 is not an editable field and used to show a text.
> > When I hit F2 field by accident while a cursor is on either F1 or F2,
> the
> > cursor disappears. I do not want the cursor to move to the F2 filed,
> but I
> > want it to be in either F1 or F3 as visible cursor. Do you have any
> > suggestion how to accomplish this? Maybe I need to use Label object in
> F2,
> > instead of using field object...
> >
>
> Non-editable fields can be selected (I guess so that you can do a Copy).
>
> To prevent this behavior, look for a penDownEvent on the bounds of the
> field. If so, return true to prevent further processing.
>
> Neil