I have 2 controls on a form, TCheckBox and TEdit.
I want to use Live Binding to perform this:
- When TCheckBox.Checked = True, set TEdit.PasswordChar = *
- When TCheckBox.Checked = False, set TEdit.PasswordChar = #0
How may I write ControlExpression to achieve this? It would be great if I can avoid register custom method.
Here’s a simple example. I couldn’t find a boolean expression evaluator so I registered a new one, and also a string-to-char converter (seems to be missing, too).
The form:
and the code: