[perl-win32-gui-users] RichEdit->Text or ->GetSelText loses Unicode

2005-07-15 Thread Dan Dascalescu
I'm trying to get a useful Perl representation of the Unicode string edited by the user in a RichEdit. It turned out that if I use $RichEdit->Text, some Unicode characters are corrupted (transformed to Latin equivalents). The same happens for GetSelText. In other words, $RichEdit->Text($RichEdit->

Re: [win32gui] [perl-win32-gui-users] RichEdit->Text or ->GetSelText loses Unicode

2005-07-15 Thread Robert May
Dan, $re->Text() behind the scenes calls the win32api GetWindowText API, which in turn sends a WM_GETTEXT message to the richedit control. As far as I can see there is no Unicode version of GetWindowText.. You actually need to send a EM_GETTEXTEX message (see msdn for more information). Thi

Re: [win32gui] [perl-win32-gui-users] Iterating through the controls of a window

2005-07-15 Thread Robert May
Dan Dascalescu wrote: Hello everyone, I've been using Win32::GUI for a while, but this is my first post on the mailing list. Welcome. What I'm wondering is if there is a way to iterate through all the controls in a window, by name. After creating a window, I examined the object in Komodo