[perl-win32-gui-users] Unicode and RichEdit controls

2002-11-19 Thread Christian Kappler
Hello listers! I would like to display extended unicode characters inside a RichEdit control. I found out that I can type unicode in the RichEdit field by entering the character number on the keyboard. But it seems to me that the Text(), Load(), Save(), etc. functions of Win32::GUI's Ric

Re: [perl-win32-gui-users] How to display unicode charset in Win32::GUI?

2011-02-25 Thread Octavian Rasnita
From: "gff gffg" > > Hi, > I'm working on a project and i added the multilanguage support. > Perl : (v5.12.2) MSWin32-x86 build 1203 294165,OS : Windows 7 x86,Installed > languages in OS : English,Turkish > How to display the unicode charset in Win32::GUI Label

[perl-win32-gui-users] Rich Text and Unicode characters

2001-11-13 Thread Kevin . ADM-Gibbs
Has anyone found out how to display unicode characters in a text or rich edit control? It doesn't seem to work for me. 'ç' comes out as '├º' when I try to use it (apologies if various email systems have destroyed the original character but it was a unicode 00E7 character). Cheers, Kev.

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

2005-07-18 Thread Robert May
not perfect. By using the clipboard viewer it's possible to see that the correct unicode chars are copied, and it looks like the paste is doing a conversion back to ANSI code-page. Don't know how to solve that :-( Rob. Glenn Linderman wrote: On approximately 7/17/2005 4:46 PM, came the f

Re: [perl-win32-gui-users] [perl-win32-gui-hackers] Plans for a 1.06 release

2008-01-28 Thread Reini Urban
2008/1/27, Glenn Linderman: > I would hope (and I think it is your intention from things you've said > in the past) that a new code base would include support for Unicode > windows. While it may be needful to convert between UTF-8 and UTF-16 to > access the wide character Windo

Re: [perl-win32-gui-users] [perl-win32-gui-hackers] Plans for a 1.06 release

2008-01-28 Thread Reini Urban
2008/1/27, Glenn Linderman: > I would hope (and I think it is your intention from things you've said > in the past) that a new code base would include support for Unicode > windows. While it may be needful to convert between UTF-8 and UTF-16 to > access the wide character Windo

[perl-win32-gui-users] Unicode in AxWindow - Iexplorer

2006-02-14 Thread Chris Wearn
Hi All, A few months back, I posted a few questions regarding the printing of Unicode characters in a RichEdit window, which Glenn helped me with, after modifying one of Rob’s Unicode examples. The application I am currently building also displays reports formatted in HTML using AxWindow

[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->Tex

Re: [perl-win32-gui-users] charset

2006-11-29 Thread Octavian Rasnita
; character type. > > After doing this, only the first special char was displayed correctly, > > because it can be also found in the ISO-8859-1 charset. > > The other chars were replaced with non - correct characters. > > > > So I think that Win32::GUI somehow transla

Re: [perl-win32-gui-users] SOLUTION --> Newlines disappearing inrichedit(unicode-content)

2008-11-08 Thread Raphael Stoeckli
Sory, some corrections of the last post (there was also a bug in the GetText-sub): You need the pragmas: use utf8; # If you want to write unicode in your perl-file use use Encode qw/decode/; If you want to define constants (you only need them, if you use the commented out lines in the function

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

2005-07-17 Thread Robert May
Glenn Linderman wrote: Hi Rob, I've been trying for a year to get some form of Unicode support into Win32::GUi, and you did it in an afternoon! (it seems) I was aware that you had been looking at this, but hadn't realised the scope: I though that you were looking for a 'full

Re: [perl-win32-gui-users] charset

2006-11-27 Thread Santeri Paavolainen
) { $SetWindowTextW_fn = Win32::API->new("user32", "SetWindowTextW", "NP", "N"); die unless $SetWindowTextW_fn; } $SetWindowTextW_fn->Call($control->{-handle}, t2w($text)); } # t2w - convert arbitrary string (may be unicode or not) to

Re: [perl-win32-gui-users] Newlines disappearing in richedit (unicode-content)

2008-11-05 Thread Glenn Linderman
On approximately 11/5/2008 12:05 PM, came the following characters from the keyboard of Raphael Stoeckli: > Hi @ all > > I’m working on an program, that can handle Unicode-text in richedit-fields. > The fields sets and gets the text using some modifications of the > richedit-fi

[perl-win32-gui-users] How to display unicode charset in Win32::GUI ?

2011-02-25 Thread gff gffg
Hi, I'm working on a project and i added the multilanguage support. Perl : (v5.12.2) MSWin32-x86 build 1203 294165,OS : Windows 7 x86,Installed languages in OS : English,Turkish How to display the unicode charset in Win32::GUI Label->Text?Example; added "russian language"

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 informat

Re: [perl-win32-gui-users] SOLUTION --> Newlines disappearing in richedit(unicode-content)

2008-11-06 Thread Raphael Stoeckli
Hi Octavian and Glenn The thing with the '\par' was the point. The RTF-format is documented here: http://msdn.microsoft.com/en-us/library/aa140283(office.10).aspx i had to turn the '\r\n' into '\\par\r\n'. So here is my solution to handle multiline-unicode-text w

Re: [perl-win32-gui-users] Win32-GUI Installation

2001-01-31 Thread Aldo Calpini
(2.1.2) - type 'help' for available > commands. > PPM> install --location=c:/ win32-gui > Install package 'win32-gui?' (y/N): y > Installing package 'win32-gui'... > Can't find unicode character property definition via main->e > or e.pl a

[perl-win32-gui-users] Listview control - Unicode aware

2006-02-15 Thread Chris Wearn
Hi All, The ListView control has a property ->SetUnicodeFormat(FLAG) which, from the XS shows it to be a Boolean value. Doesn’t appear to have a default, and if setting to 1, enables Unicode is this set as $lvwControl->SetUnicodeFormat(1); Is this all there is to enable gra

[perl-win32-gui-users] Newlines disappearing in richedit (unicode-content)

2008-11-05 Thread Raphael Stoeckli
Hi @ all I’m working on an program, that can handle Unicode-text in richedit-fields. The fields sets and gets the text using some modifications of the richedit-field. These mods are also from this mailinglist. The problem is, that Newlines (\r\n) in strings (whether if it’s ASCII or Unicode

Re: [perl-win32-gui-users] charset

2006-11-28 Thread Octavian Rasnita
new("user32", "SetWindowTextW", > > "NP", "N"); > > die unless $SetWindowTextW_fn; > > } > > $SetWindowTextW_fn->Call($control->{-handle}, t2w($text)); > > } > > > >

Re: [perl-win32-gui-users] charset

2006-12-02 Thread Octavian Rasnita
t to support multiple languages in one program, that you should make it Unicode. Figure 2 explains why: that if your program's ANSI localized language doesn't match that of the system, that you can get inappropriate characters displayed. Further, http://www.microsoft.com/globaldev

Re: [perl-win32-gui-users] Newlines disappearing in richedit(unicode-content)

2008-11-05 Thread Octavian Rasnita
mber 05, 2008 10:05 PM Subject: [perl-win32-gui-users] Newlines disappearing in richedit(unicode-content) > Hi @ all > > I’m working on an program, that can handle Unicode-text in > richedit-fields. > The fields sets and gets the text using some modifications of the > riched

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

2005-07-17 Thread Robert May
ed out the magic by which "\u305?" gets translated to a dotless i That's RTF magic.\u305? is an RFT escape, with the unicode codepoint in decimal. The equivalent in a (interpolated) perl string is \x{0131} Could it be that one must bypass $re->Text( ... ) also, and use

Re: [perl-win32-gui-users] Richedit - Unicode UCS2

2005-10-08 Thread Chris Wearn
the keyboard of Chris Wearn: > > I am working with UCS2 encoded strings: eg 3114 3116 3127 3119 (Chinese > > in this case). > > > > Is there a way of converting or encoding these pairs, to show their > > Unicode characters in a Richedit control? The obvious, > &g

Re: [perl-win32-gui-users] charset

2006-11-27 Thread Octavian Rasnita
... which > has been known not to support Unicode for some time (other than in > RichEdit controls)... Unicode is on Robert's list, I think. > > Win32::GUI does use the "A" version of the Win32 APIs... so given that, > I would expect (but have never tested) that any single

[perl-win32-gui-users] Win32-GUI Installation

2001-01-31 Thread Eoin_Butler
ckage 'win32-gui?' (y/N): y Installing package 'win32-gui'... Can't find unicode character property definition via main->e or e.pl at unicode/ Is/e.pl line 0 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 30 January 2001 09:47 To: -

RE: [perl-win32-gui-users] Win32-GUI Installation

2001-01-31 Thread Eoin_Butler
install --location=c:/ win32-gui Install package 'win32-gui?' (y/N): y Installing package 'win32-gui'... Can't find unicode character property definition via main->e or e.pl at unicode/ Is/e.pl line 0 Rgds Eoin: EMF2 Test Engineering mailto:[EMAIL PROTECTED] -Orig

[perl-win32-gui-users] Intro to Tk

2001-11-13 Thread Faraz Faheem
wn or kill the window once I bring it up using the Show() method. Regards, Faraz At 05:27 PM 11/13/2001 +, you wrote: Has anyone found out how to display unicode characters in a text or rich edit control? It doesn't seem to work for me. 'ç' comes out as '├º' w

[perl-win32-gui-users] Richedit - Unicode UCS2

2005-10-07 Thread Chris Wearn
I am working with UCS2 encoded strings: eg 3114 3116 3127 3119 (Chinese in this case). Is there a way of converting or encoding these pairs, to show their Unicode characters in a Richedit control? The obvious, my $string = pack ("U*", 0x3114, 0x3116, 0x3127, 0x3119); $re->Text($s

Re: [perl-win32-gui-users] utilizare diacritice

2006-11-18 Thread Dan Dascalescu
Hello All, I've been recently asked how to display Unicode characters in controls other than RichEdit. The first answer that came to mind was to set the -charset parameter of the Win32::GUI::Font object to 65001, the code page for UTF-8. I tried that, but either the charset had no effect (

Re: [perl-win32-gui-users] printing UTF-8

2006-10-13 Thread Dan Dascalescu
Salut Octavian, I've attached an example displaying a Unicode string (encoded in perl's internal representation) in a RichEdit control. You can control the styling of the text using RTF control codes, whose specification can be found at http://del.icio.us/dandvd/rtf+Word . Th

[perl-win32-gui-users] how can I write german's umlauts?

2003-10-06 Thread YANDEX
Hello perl-win32-gui-users, how can I encode german letters ь,д,ц und Я in my GUI programm html-encoding don't help me: I already tried ü , ü . How can I use unicode? -- Best regards, Pawel Prostin

Re[2]: [perl-win32-gui-users] how can I write german's umlauts?

2003-10-06 Thread YANDEX
ml code I wrote "Köln" and this was right in all languages and any browser. >> How can I use unicode? JL> For the chars above, you don't have to, just stick with Latin-1. It's most JL> often the default if you use a Windows-editor (Notepad, UltraEdit etc). If

Re: [perl-win32-gui-users] Re: Web Browser

2003-05-14 Thread Laurent ROCHER
Sorry, work on my french windows 98 ;o) It's a problem only with Google.pl sample or any Win32::GUI::AxWindow samples ? I don't know if AxWindow is Unicode compliant. Laurent. - Original Message - From: "Hirosi Taguti" <[EMAIL PROTECTED]> To: Sent: Wedne

Re: [perl-win32-gui-users] how can I write german's umlauts?

2003-10-06 Thread Johan Lindstrom
This works for me when assigning -text options in e.g. a Label. If it doesn't work for you, please provide failing code samples. How can I use unicode? For the chars above, you don't have to, just stick with Latin-1. It's most often the default if you use a Windows-editor (No

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

2005-07-18 Thread Dan Dascalescu
Robert, Thanks for the code. I tried to tweak it around the 1024-char limitation: > sub btnChange_Click { > my $text1 = $re->Text(); > my $maxlen = 1024; I changed that to: my $maxlen = 2+ 2 * length $text1; and left everything else the same. The problem now is that there is a limit

Re: [perl-win32-gui-users] [win32-gui] Win32::GUI::AxWindow and UTF-8

2006-10-11 Thread Robert May
k at a complete re-factoring or not. If you search the list archives (sorry, I don't remember if it was on the user list of the hackers list) you should find some code that I posted showing how it was possible to display unicode characters in a RichEdit control. Regards, Rob.

Re: [perl-win32-gui-users] [win32-gui] Win32::GUI::AxWindow and UTF-8

2006-10-12 Thread Octavian Rasnita
> If you search the list archives (sorry, I don't remember if it was on > the user list of the hackers list) you should find some code that I > posted showing how it was possible to display unicode characters in a > RichEdit control. I haven't seen it, so it might

Re: [perl-win32-gui-users] Rich text field

2007-04-22 Thread Sean Healy
// = (WPARAM) () wParam; (LPARAM) lParam // = 0; not used, must be zero ); Parameters wParam Specifies the maximum number of TCHARs the user can enter. For ANSI text, this is the number of bytes; for Unicode text, this is the number of characters. This number does not inc

Re: [perl-win32-gui-users] Rich text field

2007-04-23 Thread Jason Plum
maximum number of TCHARs the user can enter. For ANSI text, this is the number of bytes; for Unicode text, this is the number of characters. This number does not include the terminating null character. Rich edit controls: If this parameter is zero, the text length is set to 64,000 chara

Re: [perl-win32-gui-users] Rich text field

2007-04-23 Thread Octavian Rasnita
ero ); Parameters wParam Specifies the maximum number of TCHARs the user can enter. For ANSI text, this is the number of bytes; for Unicode text, this is the number of characters. This number does not include the terminating null character. Rich edit controls: If this parameter is zero, the tex

[perl-win32-gui-users] Win32::GUI ListBox Group - Why display text values in Chinese charset?

2011-03-27 Thread FPerl
Hi, I'm testing ListView Groups on my Windows 7 os.This code working perfect but text values displaying in Chinese charset. I writing value in latin char but this app displaying Unicode char.I not understand. Where is the wrong? Thank you. ( Perl v5.10 Win32::GUI v1.06 ). Image :

[perl-win32-gui-users] Re: Perl-Win32-GUI-Users digest, Vol 1 #455 - Timers and fonts etc.

2002-08-09 Thread Alan Lindsey
more at a time. Hereis something that works for me in a multi-lingual dictionary I use intensively. I have found that it is best to use "old-fashioned" fonts, i.e. those that use only the chars 0 - 255. (e.g. Windows 1251). The RichEdit will happily accept Unicode, but I have y

Re: [perl-win32-gui-users] Win32::GUI ListBox Group - Why display text values in Chinese charset?

2011-03-28 Thread Rob May
perfect but > text values displaying in Chinese charset. > I writing value in latin char but this app displaying Unicode char.I not > understand. > Where is the wrong? Thank you. > ( Perl v5.10 Win32::GUI v1.06 ). > > Image : > http://old.nabble.com/file/p31250335/2c7119b6.pn

Re: [perl-win32-gui-users] Combobox

2001-01-23 Thread Jonathan Southwick
BAD MSG: ric, Add the following to your code: $HostName ->Select(0); Jonathan Southwick Technical & Network Services Allegheny College, Meadsville, PA [EMAIL PROTECTED] - Original Message - From: "Erick J. Bourgeois" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 23, 2001 1:44 PM S