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
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
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.
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
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
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
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
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
; 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
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
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
) {
$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
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
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"
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
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
(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
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
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
new("user32", "SetWindowTextW",
> > "NP", "N");
> > die unless $SetWindowTextW_fn;
> > }
> > $SetWindowTextW_fn->Call($control->{-handle}, t2w($text));
> > }
> >
> >
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
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
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
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
... 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
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: -
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
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
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
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
(
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
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
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
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
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
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
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.
> 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
// = (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
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
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
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 :
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
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
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
45 matches
Mail list logo