You need to read the content of that file with:
my $content;
{
local $/;
open(FILE, $file_path);
$content = FILE;
close FILE;
}
Then insert the $content in the Win32::GUI control you want.
Teddy
- Original Message -
From: Mark Sutfin [EMAIL PROTECTED]
To:
As a special note: be sure to set the tab order when creating the contents
of your dialog considering its potential uses.
I am sure others will be able to help you further, so I will put myself back
to work (wish I spent more time coding @ work)
Also, it would be helpful for the screen readers
From: Robert May [EMAIL PROTECTED]
$Window-{dialogui} = 1;
Please try to avoid accessing the object hash directly, it's bad
practice. The ability to do this may well change in the future. Either
set the value when you create the window with the '-dialogui' option or
use the DialogUI()
Hi,
Is it possible to define a -onClick event for a menu instead of creating an
Menu_Click function?
Thank you.
Teddy
PROTECTED]
To: Octavian Rasnita [EMAIL PROTECTED]
Cc: perl-win32-gui-users@lists.sourceforge.net
Sent: Tuesday, December 27, 2005 01:52 AM
Subject: Re: [perl-win32-gui-users] a question about -style
On approximately 12/26/2005 2:38 PM, came the following characters from
the keyboard of Octavian
Hi,
I have seen that the multiline Textfield doesn't lose the focus when the tab
or shift+tab key are pressed, and I want to trap these keys in order to pass
the focus to other controls.
I have tried using:
$Win-AddTextfield(
#...
-onChar = \tab,
);
sub tab {
my ($self, $k1, $k2) = @_;
if
Hi,
I have started using nem instead of oem just because it is new and I think
that it might be better and might have some advantages, but is there a
practical reason for using nem instead of oem?
Sometime I feel that OEM is better because requires less coding...
Thank you.
Teddy
Hi,
I am trying to create a multiline textfield on a window that has
the -dialogui option set but the big problem is that I cannot move the focus
out of that window by pressing the tab key.
I have tried to use the onKeyDown, onKeyUp, onChar events and
GetKeyboardState method to trap the tab and
Oh great!
Thank you very much. I have tried to find more about the -style options and
its new variants on Win32::GUI docs, but I couldn't. It seems that I need to
search in MSDN.
Teddy
- Original Message -
From: Robert May [EMAIL PROTECTED]
To: Octavian Rasnita [EMAIL PROTECTED]
Cc
Are you asking? Of course it would be great to let us know.
Thank you very very much!
Teddy
- Original Message -
From: Jeremy White [EMAIL PROTECTED]
To: perl-win32-gui-users@lists.sourceforge.net
Sent: Friday, February 17, 2006 6:25 PM
Subject: [perl-win32-gui-users] Using HTML help
From: Plum, Jason [EMAIL PROTECTED]
Remember, you're using perl. Technically speaking *anything* can be done
:p
BTW, if anything can be done, I am interested if there is a way of
creating an mp3 player in perl that doesn't need another program for
communicating with the sound card. How it is
Hi,
I have tried to set an event handler -onLostFocus, but if the control loses
the focus when the application closes (alt+F4), it gives the following
error:
Can't call method Text on an undefined value at E:\lucru\agenda\agenda.pl
line 68 during global destruction.
How can I detect if the
Hi,
I want to create a part of a menu based on some settings from a
configuration file, so I want it to be created on runtime.
I want to have a menu item something like:
...
Languages = Languages,
English = {-name = english, -checked = 1, -onClick =
\change_interface('en')},
French = {-name =
Hi,
Does anyone have an example of using the Change() method (or another way)
for modifying the text that appears in the menus?
I want to let the user change the language of the interface without needing
to restart the application, so I need rewriting the menus.
Perhaps it is possible to create
From: Glenn Linderman [EMAIL PROTECTED]
didn't help either. I'm out of my depth here; given that this stuff
doesn't work in the case you are trying (which I had never tried), but
does work in other cases (like I use all over the place, and as above,
for Test, I don't have any more ideas.
From: Robert May [EMAIL PROTECTED]
Octavian Rasnita wrote:
I have tried to set an event handler -onLostFocus, but if the control
loses
the focus when the application closes (alt+F4), it gives the following
error:
Can't call method Text on an undefined value at
E:\lucru\agenda\agenda.pl
Hi,
Does anyone know why the system hangs with no reaction if I use
sleep 10;
in a Win_OnTimer subroutine?
It sleeps for 10 seconds, and I cannot even close the program in those 10
seconds.
Then the program works fine again until the timer runs again that function.
I want to use sleep() just
Hi,
I have downloaded and tried the experimental Win32::GUI::Coolbar module and
I have tested the included demo program, but it doesn't work. It gives this
error:
Can't find 'BTNS_SHOWTEXT' in package 'Win32::GUI::Coolmenu' used at
Coolbar.pm line 178. at D:/usr/site/lib/Win32/GUI.pm line 450.
From: Jeremy White [EMAIL PROTECTED]
I have downloaded and tried the experimental Win32::GUI::Coolbar module
and
I have tested the included demo program, but it doesn't work. It gives
this
error:
Can't find 'BTNS_SHOWTEXT' in package 'Win32::GUI::Coolmenu' used at
Coolbar.pm line 178. at
Hi,
I have tried the following start of program:
use strict;
use threads;
use Win32::GUI;
use Win32::Internet;
use Compress::Zlib;
my $thread = threads-new(\download);
###$thread-join();
$thread-detach();
my $exit;
$SIG{INT} = $SIG{BREAK} = $SIG{HUP} = sub {$exit++};
alarm(0);
my $Win =
From: Jeremy White [EMAIL PROTECTED]
Odd - works for me - see attached image - what OS you using?
I'm using 5.8.7 and Win32::GUI 1.03 (albeit built from CVS - but I can't
see
that being the difference)
Cheers,
I use Windows 2000. Here is the version of Win32::GUI::Coolbar:
: Plum, Jason [EMAIL PROTECTED]
To: Octavian Rasnita [EMAIL PROTECTED];
perl-win32-gui-users@lists.sourceforge.net
Sent: Wednesday, March 22, 2006 5:33 PM
Subject: RE: [perl-win32-gui-users] threads error
Ah...
Your problem is that you are using a indicator (aka semaphore) to stop
the child
for a certain operation (like sleep()?
Thanks.
Teddy
- Original Message -
From: Plum, Jason [EMAIL PROTECTED]
To: Octavian Rasnita [EMAIL PROTECTED];
perl-win32-gui-users@lists.sourceforge.net
Sent: Wednesday, March 22, 2006 6:51 PM
Subject: RE: [perl-win32-gui-users] threads error
Increment
Hi,
I am trying to create a program using Win32::GUI that uses more threads. A
few threads should connect to a server and download data permanently, and
other threads should updated some list views with that data
For doing this I need to use threads::shared and share some variables like
$Win and
From: Jeremy White [EMAIL PROTECTED]
Is there a Win32::GUI::Scintilla that can work with Perl 5.8.8?
Yes, version 1.8 - you'll have to build it from the sources (via VC or
mingw) - if you can wait a little longer a new build should be round the
corner.
Ok, thanks. I can try to compile it
Hi,
Will the new version of Win32::GUI::Scintilla be based on the latest version
of Scintilla?
I have seen that now Scintilla is very accessible for screen readers, but
the older version which is used on the actual version of
Win32::GUI::Scintilla is not accessible at all.
Thank you.
Teddy
From: Robert May [EMAIL PROTECTED]
I've not used it in anger for a project, but equally I've not had any
problems or had any problems reported. The 'experimental' label, is
mainly because I know there are some additional things I want to
complete, and the fact that there's no real
Hi,
I have create a program using Win32::GUI and perlapp.
I have made the main window a dialog window for making it usable with a
keyboard, so if I press the escape key, the program closes.
Well, this is pretty ok, but the problem is that perl interpreter doesn't
always close, and after closing
From: Robert May [EMAIL PROTECTED]
Do you have a multi-line edit control (Win32::GUI::Textfield) in the
dialog? Does this symptom only occur when the textfield has focus?
If so it's a known bug - I can generate a work around, let me know.
Hmm, strange! I was almost sure that this issue
Hi,
Is it possible to print UTF-8 strings in a Win32::GUI application?
For example, printing a Win32::GUI::MessageBox window...
Thank you.
Teddy
Hi,
If Win32::GUI doesn't support UTF-8 but some controls in Windows supports it
(like the multiline textfield in Notepad), can I include those controls in a
Win32::GUI application using Win32::GUI::AxWindow module?
If yes, how can I find the class names of those controls?
In fact I am
Hi Rob,
Win32::GUI has almost no support for UTF-8/UCS-2. It's near the top of
my list for a new Win32::GUI version, but will probably never happen on
top of the current codebase. We'll have to see if I ever get time to
look at a complete re-factoring or not.
If you search the list
]
To: Octavian Rasnita [EMAIL PROTECTED]
Cc: perl-win32-gui-users@lists.sourceforge.net
Sent: Friday, October 13, 2006 2:47 AM
Subject: Re: [perl-win32-gui-users] printing UTF-8
I built an application that displays UTF-8 successfully using
Win32::GUI::RichEdit.
As I'm not sure this is what you
Hi,
I have a default button on a form that I want to be pressed when I hit enter
on a few controls like textfields and list boxes, but I don't want to be
press when hitting enter on a few other list boxes. In the case of those
controls, I want to be able to process their onClick event and not
Hi,
I have tried the test script below, and if I press enter on the text field,
the onKeyUp event is not handled at all.
If I press other keys, that event appears, but not if I press enter.
onKeyUp is handled, but I also need the onKeyUp event.
Is it a bug, or am I doing something wrong?
Congratulations for Win32::GUI 1.04 to all who have developed it. I have
just seen some improvements and they are great!
(Until now I have tested only some samples of AxWindow)
Teddy
Hi,
I have installed Win32::GUI 1.04 using ppm, but the POD docs were not
installed.
How can I get the documentation for this version?
Should I copy it from the source, or there is a more elegant way?
Thanks.
Teddy
Hi,
I want to remember the object that has the focus, so the next time the user
switches to the application, the focus is set to the last object that had
the focus when the application was put in the background (with alt+tab).
I don't know if I have used the right method, but here is what I've
Hi,
Can you tell me how can I set the wanted charset for a certain web page I
want to display in an AxWindow object?
I want to set it to UTF-8.
I have tried some ways, but they are not OK.
I have printed the html page into a temporary file with the .htm extension
then I have given the path to
Hi,
Is the method UserData() thread safe?
Can it be used for associating some data with a certain window in a thread,
then read that data from another thread?
Thank you.
Teddy
Thank you very much for this code.
I will try to test it, although I am not sure that I know how to apply that
patch.
Teddy
- Original Message -
From: Kind, Uwe (AGIS) [EMAIL PROTECTED]
To: perl-win32-gui-users@lists.sourceforge.net
Sent: Sunday, October 29, 2006 1:35 AM
Subject: Re:
Hi,
I want to create a RichEdit field that handles the keyboard and mouse
events, and other events (like ENM_LINK).
I have imported all the events I want using:
use Win32::GUI qw(MB_OK MB_YESNO MB_ICONEXCLAMATION MB_ICONHAND ENM_CHANGE
ENM_KEYEVENTS ENM_LINK ENM_MOUSEEVENTS ENM_SELCHANGE);
Then
Hi,
Can you tell me if I can find somewhere a sample code that shows how to
check/uncheck some menu items, and if it is possible to change the status
bar text when the user moves the mouse cursor through the menus?
Also, where can I find the list of events that can be handled for a Richedit
Hi,
I have seen that the option -extensiondifferent of the GetSaveFileName
method doesn't have any effect, no matter if it is set to 0 or 1.
The user can choose any extension wants, and it is set instead of setting
the default extension.
The default extension is added to the file name only if
Hi,
I want to specify in a certain menu element that I want to right-align the
hotkey that can be used to activate that menu item, like:
CopyControl+C
Cut Control+X
Delete Control+D
Is it possible to do it with Win32::GUI in a better way than simply using
more spaces?
Thanks.
Teddy
Hi,
I know that Win32::GUI doesn't support UTF-8, but can you tell me if it is
possible to display characters from other charsets than ISO-8859-1?
I want to create the menus, labels, and so on, using ISO-8859-2.
More specificly, I need to be able to print the following special chars:
I can't actually help you here, off the top of my head, but it is an
area that I am interested in. Have you noted Dan Dascalescu's post on
Date: Sat, 18 Nov 2006 18:44:57 -0800
Hi,
Yes, I have also talked on private with Dan. He told me that he tried to
initialize some fonts, and to
Yes I also think that it should work. The big problem is that it already
works, but only on my computer. :-)
I have tested under Win 2k and Win XP and it works, but other users say
that
the special chars are not displayed correctly under their computers.
Thank you for any help.
.
Octavian
- Original Message -
From: Glenn Linderman [EMAIL PROTECTED]
To: Santeri Paavolainen [EMAIL PROTECTED]
Cc: perl-win32-gui-users@lists.sourceforge.net; Octavian Rasnita
[EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006 10:08 AM
Subject: Re: [perl-win32-gui-users] charset
Ok, thanks for confirming what I thought.
Too bad that I will need to start using other libraries which are less
accessible.
Octavian
- Original Message -
From: Glenn Linderman [EMAIL PROTECTED]
To: Octavian Rasnita [EMAIL PROTECTED]
Cc: perl-win32-gui-users@lists.sourceforge.net
Sent
From: Glenn Linderman [EMAIL PROTECTED]
Yes, maybe, or no.
How often and it how many different places do you need to display
characters that don't get displayed properly?
I need to display those strings in many places, because I need to create
interfaces in romanian language. For example,
to make a program that works always, no matter
the settings of Windows.
I think I will make a few tests with WXPerl, then maybe I will pass to C#
that surely works.
Octavian
- Original Message -
From: Glenn Linderman [EMAIL PROTECTED]
To: Octavian Rasnita [EMAIL PROTECTED]
Cc: perl
And one more thing that might be important for some users...
The programs created with Tk are not accessible for the blind computer users
at all, while the programs created with Win32::GUI are fully accessible for
screen readers.
Octavian
- Original Message -
From: [EMAIL PROTECTED]
To:
I have not tried with Install Shield, but only with Null Soft installer
(which is free) and you can do this very simple.
You just need to put an exec [program name] in the configuration script,
and the installer will launch that program.
Of course you can close the installer while the
Hi,
Is it possible to create a big Richtext field using Win32::GUI?
For example to hold more than 200 KB.
Thank you.
Octavian
From: Jason Plum [EMAIL PROTECTED]
Hi,
Yes, I believe it is quite possible, as unless I am mistaken, I have had
1MB loaded into a rich edit in one of my widely used programs.
The easy way to test it would simply be to create it, and load in 200KB
of text from some file (or randomly even).
Hi Sean,
Thank you for your help. I hope I will be able to do it.
Octavian
- Original Message -
From: Sean Healy [EMAIL PROTECTED]
To: perl-win32-gui-users@lists.sourceforge.net
Sent: Sunday, April 22, 2007 7:08 PM
Subject: Re: [perl-win32-gui-users] Rich text field
I have already
Hi,
Where can we find details about all those constants?
(I hope not on MSDN. :-)
Thanks.
Octavian
- Original Message -
From: Robert May [EMAIL PROTECTED]
To: Brian Rowlands (Greymouth High School) [EMAIL PROTECTED]
Cc: perl-win32-gui-users@lists.sourceforge.net
Sent: Tuesday, June
Hi,
I have tried to create a child window, but when I close it, the entire
application closes.
I open it with an option from the menu of the parent window that has
a -onClick = \Config, and I returned 0 or 1 from the sub Config {}
subroutine, but the application still closes when closing
,
have a look at the examples in your perl-lib-path.
j.
Original-Nachricht
Datum: Wed, 20 Jun 2007 15:34:03 +0300
Von: Octavian Rasnita [EMAIL PROTECTED]
An: perl-win32-gui-users@lists.sourceforge.net
Betreff: [perl-win32-gui-users] creating a child window
Hi,
I have tried
PROTECTED]
To: Octavian Rasnita [EMAIL PROTECTED]
Cc: perl-win32-gui-users@lists.sourceforge.net
Sent: Wednesday, June 20, 2007 10:05 PM
Subject: Re: [perl-win32-gui-users] creating a child window
On 20/06/07, Octavian Rasnita [EMAIL PROTECTED] wrote:
I have tried to create a child window, but when
Hi,
Is it possible to display a Flash annimation in a window created with
Win32::GUI?
If yes, please tell me how. I think that it should be possible to do it
using Win32::GUI::AxWindow but I don't know what control name to use in
the -control option.
BTW, for other type of controls, where
Hi,
I know that Win32::GUI doesn't support UTF-8 characters and maybe it won't
support it very soon, but is it possible to use characters in other european
languages in a Win32::GUI program?
I just want to use the charset ISO-8859-2 instead of ISO-8859-1, or... the
Windows1052/1050.
Is it
Hi,
Can you please tell me where from I can get Win32::GUI 1.06?
I have the Theoryx repository set in ppm, but the latest available version
is 1.03 there.
I have also tried to compile Win32::GUI using the cpan shell (I have VS6)
but as usually, it gave some compiling errors that I don't know
You can call your program with a parameter and if the program sees that it
was called with that parameter, it could first execute some code then exit,
without reaching to the part where it creates the GUI.
Octavian
- Original Message -
From: dwinkjr [EMAIL PROTECTED]
To:
If I remember well, you need to use
\par
in the RTF document for specifying a new line.
Find and read the RTF specifications. It will help you to do more other
things.
Octavian
- Original Message -
From: Raphael Stoeckli [EMAIL PROTECTED]
To: perl-win32-gui-users@lists.sourceforge.net
I thought only the main thread can be used to create GUI elements reliably.
Isn't that true?
Octavian
- Original Message -
From: Perl Rob [EMAIL PROTECTED]
To: perl-win32-gui-users@lists.sourceforge.net
Sent: Thursday, November 06, 2008 6:52 PM
Subject: [perl-win32-gui-users] Threads
Hi Kevin,
Congratulations for the program!
I have tested it with a screen reader and it works. I added the -dialogui = 1
option to the $winMain object to be able to use the keyboard for changing the
focus.
The only problem, which is an important one, is that if I arrow up or down in
the list
Hi Kevin,
I was asking this because all the standard controls which can be created with
Win32::GUI are accessible without doing anything special.
Octavian
- Original Message -
From: Kevin Marshall kejoh...@hotmail.com
To: Octavian Rasnita orasn...@gmail.com
Cc: perl-win32-gui-users
From: gff gffg tarak...@hotmail.com
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
70 matches
Mail list logo