In Thursday, June 17, 2004, 5:23:19 PM, Ricardo wrote:
How can I use international characters in a maskededit control?
When I use the SetValue method of the control, works fine, for ex:
control.SetValue('ç') but when I try to enter a international
character from the keyboard, the following error is raised:
[snip]
I once played with a wxMaskedComboBox and only could get it to work
with accented characters passing a includeChars parameter:
bookname = wxMaskedComboBox(self, -1, livros[0],
useFixedWidthFont = False,
mask = 20*'X',
includeChars = "ÁÉÍÓÚáéíóúÃÕãõÂÊÎÔÛâêîôûÇç",
choices = livros,
autoSelect = True,
formatcodes = 'V_',
validRegex = "(%s)" % join(livros,'|'),
)
(Here 'livros' is a list of strings that may contain accented
characters; note that you should include à or ü if you need them.)
Well there must be a more elegant way to make it work, but this worked
for me.
HTH
-- tacão