RE: [perl-win32-gui-users] Formatting of text in a RichEdit

2001-07-03 Thread Piske, Harald
There is a SetCharFormat method to the RichEdit control. $Rich->Select ($from_here, $to_there); $Rich->SetCharFormat (-color => $flashy_pink) Look up http://www.jeb.ca/ for tons of information and knowledge (-> Win32-GUI -> FAQ), also contains links to Aldo's docum

RE: [perl-win32-gui-users] Formatting of text in a RichEdit

2001-07-03 Thread Peter Eisengrein
I've never had any success changing it once it is created, but to set the font at the beginning you can use: my $Font = new Win32::GUI::Font( -name => "Courier New", -height => 16, -bold => 0, ); ### or the font/style of your choice... ### and then in your AddRichEdit us

[perl-win32-gui-users] Formatting of text in a RichEdit

2001-07-03 Thread paul . barker
Hi All I'm currently playing with a RichEdit to display the output of a report. Does anyone have any experience setting formatting inside a RichEdit ? I guess I should be able to use Bold / Italics / Color but am having problems working out how. I looked on MSDN and I think I may have to use Send

RE: [perl-win32-gui-users] RichEdit & KeyPress

2001-07-03 Thread Piske, Harald
I'm just guessing, I don't really know it: maybe you need to make sure that your sub Text_KeyPress returns 1. If it returns 0, the default action (which is typing into the field) would not get carried out. Btw, if it returns -1, the Dialog() call would return and the script would continue after tha

[perl-win32-gui-users] TextField, Font and space

2001-07-03 Thread Andrea Maestrutti
Hello! A space appear before the prompt in the Textfield when I use some fonts and disappear in Textfield without fonts... Could you tell me why!?! Thanks! Andrea Maestrutti ### # SPACE ### use Win32::GUI; my $win = new Win32::GUI::Window( -title=> "Space before text", -l

[perl-win32-gui-users] RichEdit & KeyPress

2001-07-03 Thread Andrea Maestrutti
Hi all! With this code I want to paste the clipboard content in the RichEdit when I click the button. Also I want to prevent CTRL-A and CTRL-C press in the RicheEdit from the user (i.e. I redirect the focus to the button ... not very elegant but works) [The really problem is: after some manipolat