LISTBOXCREATEparentnamexposyposwidthheight
Creates a listbox control. A listbox control shows the user a set of items and lets them select one of them.
The parent input is the name of the window that owns the new listbox.
If no window or dialog with that name exists, then the FMSLogo screen window is used as the parent.
The name input identifies the new listbox and must be a unique word.
The xpos input is the X coordinate where the upper-left corner of the new listbox is placed.
The ypos input is the Y coordinate where the upper-left corner of the new listbox is placed.
The width input is the width of the new listbox.
The height input is the height of the new listbox.
If the parent of the listbox is the FMSLogo screen window, then the xpos, ypos, width, and height inputs are all given in turtle coordinates.
Otherwise, they are given in "dialog units", the origin is the upper-left corner of the parent, and Y values increase as you move down the screen.
Create a listbox in a new window:
WINDOWCREATE "main "mywindow "mytitle 0 0 100 100 []
LISTBOXCREATE "mywindow "mylist 25 25 50 50
; Delete the parent window and its listbox control.
WINDOWDELETE "mywindow
Create a listbox on the FMSLogo screen window:
LISTBOXCREATE "main "mylist 25 25 100 100
; Delete all windows.
WINDOWDELETE "main