Главная страница | назад





Article #16024: How do I read a change in a control at runtime

 Question and Answer Database

FAQ1024C.txt   How do I  read a change in a control at runtime   
Category   :VCL
Platform    :All
Product    :C++Builder  1.x

Question:

I need to read the change and write to other control while the 
dialog is displayed. For examples: there is a group box with two
edit controls A and B. When A is modified, we want to update B 
accordingly. If we use Execute command then we can read A and B 
but we cannot read and write to A or B. 

Answer:

In your class derived from TDialog, process the EN_CHANGE 
message. The procedure for this message will get called when the 
user modifies the edit control.
You can then read the control, and write a new string to the 
second control.

5/18/98 8:49:38 AM
 

Last Modified: 01-SEP-99