Discussion:
How to change a TEXTBOX (editable/not editable)
(too old to reply)
Alen Hopek
2006-07-12 11:04:47 UTC
Permalink
Hello,

i have created a textbox with with DDT like this:

CONTROL ADD TEXTBOX, hDlg, %IDC_TEXTBOX2, "", 5, 124, 365, 110, _
%ES_MULTILINE OR %WS_VSCROLL OR %ES_WANTRETURN OR %WS_TABSTOP OR
%WS_DISABLED

This new Textbox is diabled by default.

Later during the execution i will change the state of the textbox to
enabled.

How i can do this ?

I had try it with CONTROL SEND hDlg, %IDC_TEXTBOX2, 0, 0
but it does not work.

Please help a newbie. Thank you.

Greeting
Alen Hopek
Dominic Sexton
2006-07-12 12:42:52 UTC
Permalink
Post by Alen Hopek
Hello,
CONTROL ADD TEXTBOX, hDlg, %IDC_TEXTBOX2, "", 5, 124, 365, 110, _
%ES_MULTILINE OR %WS_VSCROLL OR %ES_WANTRETURN OR %WS_TABSTOP OR
%WS_DISABLED
This new Textbox is diabled by default.
Later during the execution i will change the state of the textbox to
enabled.
How i can do this ?
CONTROL ENABLE hDlg, %IDC_TEXTBOX2
--
Dominic Sexton
Michael Mattias
2006-07-12 12:46:13 UTC
Permalink
Post by Alen Hopek
Hello,
CONTROL ADD TEXTBOX, hDlg, %IDC_TEXTBOX2, "", 5, 124, 365, 110, _
%ES_MULTILINE OR %WS_VSCROLL OR %ES_WANTRETURN OR %WS_TABSTOP OR
%WS_DISABLED
This new Textbox is diabled by default.
Later during the execution i will change the state of the textbox to
enabled.
How i can do this ?
CONTROL ENABLE in the help file looks like it might be worth a try.

MCM

Loading...