On 01/01/2013 09:27 AM, Carey Gagnon wrote:
I am trying to set a dTextBox BackColor dynamically based on the value of
the field. Everything I have read in the mail archives etc, give example
based on hand coded forms. All my forms are done in the ClassDesigner
resulting in frmWhatever-code.py files.
My form has input controls, mainly dTextBoxes, that are filled with values
after a search. If I could just figure out how to grab the value from the
fieldI I'm sure I could figure out the rest. I'm just not sure where to
start in the ClassDesigner when I want to "edit the code" for the one
particular dTextBox.
I've tried onValueChanged, but that only fires if I type something in the
field.
I've tried onUpdate ...got nothing ...afterInit...same.
Can anybody point me in the right direction?
Some questions.
1) Do you want the BackColor to change when the search fills the text boxes?
2) Define got nothing? Do you mean the color did not change? The reason
I ask is that I have seen issues with BackColor. It could be the event
is actually firing. Have you tried putting in a print string to verify?
Thanks
Carey
--
Adrian Klaver
[email protected]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]