John Fabiani wrote:
> On Friday, October 01, 2010 11:43:09 am Jim Byrnes wrote:
>> Actually it seems to be easier than that to do. I opened the .cdxml
>> file for my test app and changed the line<dTextBox... to
>> <dMaskedTextBox.. After saving it and opening the CD it showed in the
>> Properties sheet as a dMaskedTextBox. I was able to give it a RegId and
>> change the border spacing. It respected changes I made using Edit Sizer
>> Settings control. Down in the EditCode section it showed up but had no
>> methods. I clicked on the New button and added the method:
>>
>> def afterInit(self):
>> self.setProperties({"Mask":"A{2} - #{3}"})
>>
>> I saved it and ran the form and it worked just like I expected a
>> dMaskedTextBox to work. It displayed a textbox with a - in it. To the
>> left of the - it would accept only 2 uppercase letters and 3 numbers to
>> the right. I printed its value and got the 2 letters and 3 numbers with
>> no - . To be sure I shutdown the CD and ran it from the cmdline and it
>> still worked as expected.
>>
>> So from this limited testing is seems you can without too much trouble
>> use a dMaskedTextBox in the CD. I'm going to backup a project I am
>> working on and try to replace a normal textbox with a masked one and see
>> if it still works.
> Just a heads up. The issues regarding the dMaskTextBox are not with the
> interactive side on the screen but making it work with the database correctly.
>
> Johnf
OK, thanks. That will be my next test then.
Regards, Jim
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]