Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Win32 GUI freeze

by eco (Novice)
on Feb 18, 2013 at 12:57 UTC ( #1019336=note: print w/replies, xml ) Need Help??

in reply to Win32 GUI freeze

You basically have two options

  • Add a progress bar to show the computer is doing something, eventually letting the user cancel the task
  • Divide your task into subtasks which can be run from the event loop

The first solution is the easiest to code

-- ecocode

Replies are listed 'Best First'.
Re^2: Win32 GUI freeze
by ckant8 (Acolyte) on Feb 19, 2013 at 06:02 UTC
    I have added progress bar to my script. but gettinng error saying "can not call method SetRange on an undefined value". I have added use Win32::GUI(); my $progress_bar = $main->AddProgressBar ( -name => 'ProgressBar', -pos => 10, 10, -size => 270, 20, -smooth => 1, -vertical => 0, ); $progress_bar->SetRange(0,50); $progress_bar->SetStep($y); $progress_bar->StepIt();

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019336]
LanX grins
[marto]: anyway, don't come to Glasgow for the football :)
[holli]: the hell? i have a scriptblocker on.
[holli]: how do you update a different window without javascript?
[holli]: ah, chatterbox right
[marto]: it's a normal HTML form, with some hidden input fields
[holli]: forgot that thing exists for a moment.
LanX welcome to the twilight zone ...
[Eily]: LanX well since the onion is your eye you should see it everywhere
[marto]: sounds eye watering

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2017-12-14 16:16 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (398 votes). Check out past polls.