this is a part of my dialog :

check "Auto Away After:", 10, 8 40 53 10
edit "", 11, 61 41 19 10, disable

how can i make it so that when i check the box it enables the edit box, and when i uncheck it disables the edit box?

thanks if u can help