Re: Disable text field im Form 5

From: Loyal Barber <lbarber_at_nospam.directlink.net>
Date: Fri, 17 Sep 1999 07:22:02 -0500
Message-ID: <37E2326A.B49592F1_at_nospam.directlink.net>


You were bound to run into this problem sometime. The way we handled it is to
have a package for turning on and off objects that way all software did it in a consistent way.
For text items, the code did three things:

1. Change the visual attribute to VA_TI_NO_EDIT
2. turn off update
3. turn off insert

The field is still navigable, but the user cannot change anything. This can be good in that the user
has clipboard capabilities with the field that you cannot have if the field is not navigable. Also for
longer fields where scrolling to the right is needed, the user can still do that, they just cannot update.

VA_TI_NO_EDIT among other things turns the background of the field gray and sets the foreground
to black. The fields are very readable and yet you tell the user visually that the field cannot be edited.

suisum_at_ecn.ab.ca wrote:

> I am converting Form 45 to Form 5. I found that all disable text fields
> become not readable. The grey colour is too light. How can I set the grey
> color so that I can see the text properly? I have tried to change the
> backgroup color and foreground color, but nothing works.
>
> --
> Best regards,
Received on Fri Sep 17 1999 - 14:22:02 CEST

Original text of this message