08-11-2011 04:12 PM
This is just an idea.
You have to have 2 fields
One Password and a common one.
When the checkbook is selected you will have to remove the passwordfield from the manager and add the other one and also take the text value and assign it to the other field.
08-11-2011 04:52 PM
A very sound advice by juanmab. A couple of small additions:
1) You don't have to remove and insert - there is replace for that
2) You might want to save and restore cursor position as a customer service effort.
08-11-2011 04:55 PM
I'm Still learning, guess I'll have to take your additions too.
08-11-2011 05:47 PM
Thanks for both of you!
I was in the process of coding juanmab's idea - arkadyz pointed out two great improvements.
I didn't know about replace and didn't think about cursor.
btw, when using replace, I learned you have to make double certain you are specifying the correct manager or you get an exception. Some errors are so obvious you miss the cause.
Mine is a little more complicated than just a replace because I use a custom button that can be enabled & disabled. So I had to modify the listener for the fields to ensure I was listening to the 'visible' field. But the result is just perfect.
08-11-2011 11:59 PM
Can you mark this thread as solved then? Thank you!