Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to change a TEXTBOX (editable/not editable)

2 views
Skip to first unread message

Alen Hopek

unread,
Jul 12, 2006, 7:04:47 AM7/12/06
to
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

unread,
Jul 12, 2006, 8:42:52 AM7/12/06
to
In article <pan.2006.07.12....@imail.de>, Alen Hopek
<alen....@imail.de> writes

>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 ?

CONTROL ENABLE hDlg, %IDC_TEXTBOX2

--

Dominic Sexton

Michael Mattias

unread,
Jul 12, 2006, 8:46:13 AM7/12/06
to
"Alen Hopek" <alen....@imail.de> wrote in message
news:pan.2006.07.12....@imail.de...

> 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 ?
>

CONTROL ENABLE in the help file looks like it might be worth a try.

MCM


0 new messages