John Fabiani wrote:

>>>> Regards,  Jim
>>>
>>> This is interesting - because I use dMaskedTextBoxes and I believe that
>>> the tab key does work.  At least for the formats I'm using such as
>>> phone, ssan, on number.
>>>
>>> Johnf
>>
>> Both the Tab and the Enter key work for me in dMaskedTextBoxes.  Right
>> now I have a mixture of the two and want to be consistent throughout the
>> form.  For numeric data entry I prefer using the Enter key so I am
>> looking to make the Enter key work on all fields.
>>
>> Regards,  Jim
>
> I do some like the following:
> if evt.keyCode in
> [dKeys.key_F1,dKeys.key_F2,dKeys.key_F3,dKeys.key_F5,dKeys.key_F6,dKeys.key_F8,dKeys.key_F9,dKeys.key_F10,dKeys.key_F11,dKeys.key_F12]:
>              return
>          if evt.keyCode in [dKeys.key_F7, dKeys.key_F4, dKeys.key_Return]:
>              thestr= self.Form.lookup(evt)
>              return
>          #print keyChar
>          keyChar=evt.keyChar
>          if (keyChar in """,./<>?;':"[]\\{}|`...@#$%%^&*()_=+"""):  ## removed
> the dash
>              evt.stop()
>
> also check
>   if sys.platform == 'win32':
>              vendcomp._addWindowStyleFlag(wx.TE_PROCESS_ENTER)
>
> Johnf

Hey John, thanks for the code.

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]

Reply via email to