Answer the question
In order to leave comments, you need to log in
Perl Win32::GUI need an example?
Perl Win 32 :: GUI help with a simple example
of clicking on the button to open a .txt file, read it into the interface window
and so that there is a progress bar.
That is, we click on the button, open the file, display its contents line by line in the text field, the progress bar works out,
the contents of the file, for example, such a palan
аавыавыа
вавыаы
аываы
аываыа
авыа
аываыва
аываыва
Answer the question
In order to leave comments, you need to log in
Open the file with for example search.cpan.org/~jenda/Win32-FileOp-0.16.02/FileOp.pm
Determine its size, divide by x pieces of your progress bar and get the SIZE size for your progress bar
Start reading line by line, determining the length of each read line and displaying it in the field using perl-win32-gui.sourceforge.net/cgi-bin/docs.cgi?do...
As you count SIZE bytes, draw the wand in the progress bar, and so on until everything is calculated .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question