Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 3 Jahren, 6 Monaten
Letzter Beitrag:
vor 3 Jahren, 6 Monaten
Beteiligte Autoren:
DerekT, Arie Mars, John Marrone

Gray a edit control (disable)

Startbeitrag von John Marroneam 17.12.2009 21:16

Hi

I need to disable a edit control, or gray it out so the user can not enter the edit control. I have looked threw the help high and low. Can not find a thing. You have to be able to disable a control. Does anyone know how to do this.
Antworten:
I do.
EDT_Control..State = Grayed
or Inactive or Active

von Arie Mars - am 17.12.2009 22:03
John

edtControl..State = Grayed defeats everything but may not be the look you are after.

If you opt for edtControl..State = DisplayOnly, possible with the Brushcolor set to light gray, then make sure you have unchecked the Automatic Erase and With Selection on the Details tab of the edit control.
If you do not then the user can still access and change the content.
Of course it will not be updated in the DB but it can lead to all sorts of confusion.

Regards

DerekT

von DerekT - am 17.12.2009 23:32
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.