From: <[EMAIL PROTECTED]> 1.How can I draw StatusBar with multiple panels in it? This topic was already discussed about 3 years ago. Answer was then "no(t yet :-)". And if I can, how can I put ProgressBar inside StatusBar?
The answer is still not yet:) The link below contains the message you would need to send to create additional parts in the statusbar. If you are desperate, then you could try that.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/status/messages/sb_setparts.asp
From the same documentation it looks like you can't (easily) add a
progressbar (only icons and text to each part).
4.I want give to user the possibility to launch my program from command line, with TaskPlaner etc. I tried to put GUI stuff in sub and don't start it when the program starts with some switch (e.g. MyApp.exe -c 1 -g 8). It works fine untill I close the program. I get the warning/error:
I couldn't reproduce your error - I may not have understood what you are trying to do. The code I used:
#!/usr/bin/perl -w use strict; use Win32::GUI; my $num = @ARGV; print $num if $num; my ($Window,$t1); #dont start GUI if command line arguments GUIStart() unless $num; sub GUIStart{ $Window = new Win32::GUI::Window( -pos => [100, 100], # no error,if I comment this out -size => [650, 600], -name => "Window", ); $t1 = $Window->AddTimer('T1',25000); # the same $Window->Show(); Win32::GUI::Dialog(); } sub Window_Terminate { return -1; } ; Cheers, jez. _________________________________________________________________ Send a funky MSN Messenger Christmas card http://www.msn.co.uk/christmascard