Just recently started using KixGUI and im having a ton of fun writing with it.
Attached below is a simple script that copies all files from my documents to network drive with a progress bar.
My question is: How can a control the progress bar if a user clicks cancel or kills its. Im trying to display a message to the user in the event the user hits the cancel or kills the PB.
Any help greatly appreciated
$lbl1=$frm.addlabel("lbl1","Copying files from MY DOCUMENTS folder to your" +chr(10)+ "Network H: DRIVE" + chr(10)+chr(10)+ "PLEASE WAIT",10,2,300,200)
;Copies all files from my documents to H: drive
$frm1=$root.createform("copyfrm","copy form", 200,200,300,100)
$frm1.CopyFilePB("c:\Documents and Settings\@userid\My Documents\*.doc","H:\My Documents",0,1)