Hi Ross
You wrote
> So based on what you are saying, changing the Text property
> in the OnChange event should work, but it doesn't.
Try this simple test.
Start a new project
Drop a ComboBox onto a blank form
Attach the following as the OnChange handler for the combo box.
procedure TForm1.ComboBox1Change(Sender: TObject);
begin
ShowMessage ('Entering ComboBox1 OnChange Event');
ComboBox1.Text := ComboBox1.Text + '*';
ShowMessage ('Leaving ComboBox1 OnChange Event');
end;
Now run the program and try changing the text.in the combobox edit.
When I do this, the '*' is added to the text, as expected.
And if you look at the combobox when the Message box appears, you will
see that the text has already changed.
But if I change the item by selecting in the drop-down, the '*' is
added in the OnChange event but then removed after the handler
concludes..
I am not sure of the reason for this behaviour.
But exactly what is it that you are trying to do?.
If I knew, I may be able to help you.
Regards
Henry
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi