Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: itemselect listbox
You can move the itembox around, and you can size it by putting your cursor on the bottom right corner (or right side) and dragging it to the size you want.
DirChange("a:\")
Then add a FileItemize line which is saved in a variable with the same name as the name you gave to your ItemSelect Listbox variable, in this case, "myfiles". This line would look like:
myfiles=FileItemize("*.*")
Now go to the bottom of the file, and after the ButtonPushed part, add a message statement, so we can see what files have been selected:
Message("Files Selected", myfiles)
So the entire .WDL file would look like:
scannerFormat=`WWWDLGED,5.0` scannerCaption=`File Scanner` scannerX=3 scannerY=16 scannerWidth=304 scannerHeight=196 scannerNumControls=3 myfiles=FileItemize("*.*") scanner01=`36,27,51,DEFAULT,PUSHBUTTON,DEFAULT,"OK",1` scanner02=`123,27,51,DEFAULT,PUSHBUTTON,DEFAULT,"Cancel",0` scanner03=`152,57,113,84,ITEMBOX,myfiles,DEFAULT` ButtonPushed=Dialog("scanner") Message("Files Selected", myfiles)
Article ID: W12845
Filename: How to Set up ItemSelect Listbox in Dialog Editor.txt
File Created: 1999:04:15:16:50:02
Last Updated: 1999:04:15:16:50:02