Take a look at the
ReportView Control that is available in the WIL Dialog Editor.
The WIL Dialog Editor offers quick production of custom dialog boxes for your WinBatch programs. It provides a convenient method of creating dialog box templates for use with the Dialog function. For more information about the Dialog function see the Windows Interface Language help file.
Note: See the Windows Interface Language Reference help file for more details on how to use the Dialog function to further customize your dialogs, including adding callback procedures with in subroutines to make your dialogs dynamic.
It displays a graphical representation of a dialog box, and allows you to create, modify, and move individual controls which appear in the dialog box.
After you have defined your dialog box, the Dialog Editor will generate the appropriate WIL code, which you can save to a file or copy to the Clipboard for pasting into your WIL program.
;Create an array of data to display
arrTunes = ArrDimension(6,2)
; Artists
arrTunes[0,0] = 'Artist' ; Header
arrTunes[1,0] = 'The Knack'
arrTunes[2,0] = 'Glenn Miller'
arrTunes[3,0] = 'Bee Gees'
arrTunes[4,0] = 'B-52s'
arrTunes[5,0] = 'The Champs'
; Songs
arrTunes[0,1] = 'Song' ; Header
arrTunes[1,1] = 'My Shirona'
arrTunes[2,1] = 'In the Mood'
arrTunes[3,1] = 'Staying Alive'
arrTunes[4,1] = 'Rock Lobster'
arrTunes[5,1] = 'Tequila'
style = 1048576|4194304 ;first header & single select
SongsFormat=`WWWDLGED,6.2`
SongsCaption=`Songs`
SongsX=236
SongsY=124
SongsWidth=152
SongsHeight=109
SongsNumControls=004
SongsProcedure=`DEFAULT`
SongsFont=`DEFAULT`
SongsTextColor=`DEFAULT`
SongsBackground=`DEFAULT,DEFAULT`
SongsConfig=0
Songs001=`029,087,034,014,PUSHBUTTON,"PushButton_OK",DEFAULT,"OK",1,1,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
Songs002=`071,087,034,014,PUSHBUTTON,"PushButton_Cancel",DEFAULT,"Cancel",0,2,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
Songs003=`017,031,108,048,REPORTVIEW,"ReportView_1",arrTunes,DEFAULT,DEFAULT,3,%style%,DEFAULT,DEFAULT,DEFAULT`
Songs004=`019,011,104,014,STATICTEXT,"StaticText_1",DEFAULT,"Choose your favorite song:",DEFAULT,4,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
ButtonPushed=Dialog("Songs")
Message("Your Favorite Song is:",arrTunes[0,0]:" - ":arrTunes[0,1])