| Function CreateListBox:TGadget(x,y,w,h,group:TGadget,style=0) |
| SuperStrict Local MyWindow:TGadget=CreateWindow("ListBox Example", 200,200,320,240) Local ListBox:TGadget=CreateListBox(10,10,200,100,MyWindow) Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |
| Function AddGadgetItem(gadget:TGadget,text$,flags=0,icon=-1,tip$="",extra:Object=Null) |
| SuperStrict Local MyWindow:TGadget=CreateWindow("ListBox Example", 200,200,320,240) Local ListBox:TGadget=CreateListBox(10,10,200,100,MyWindow) AddGadgetItem ListBox, "This is my first list item" Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |
| Function AddGadgetItem(gadget:TGadget,text$,flags=0,icon=-1,tip$="",extra:Object=Null) |
| SuperStrict Local MyWindow:TGadget=CreateWindow("ListBox Example", 200,200,320,240) Local ListBox:TGadget=CreateListBox(10,10,200,100,MyWindow) AddGadgetItem ListBox, "This is my first list item",1 Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |
| SuperStrict Local MyWindow:TGadget=CreateWindow("ListBox Example", 200,200,320,240) Local ListBox:TGadget=CreateListBox(10,10,200,100,MyWindow) AddGadgetItem ListBox, "This is my first list item",1 AddGadgetItem ListBox, "This is my second list item",1 Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |
![]() |
| SuperStrict Local MyWindow:TGadget=CreateWindow("ListBox Example", 200,200,320,240) Local ListBox:TGadget=CreateListBox(10,10,200,100,MyWindow) Local IconStrip:TIconStrip=LoadIconStrip("D:\My Documents on E\_Tutorials\toolbar.bmp") SetGadgetIconStrip(ListBox, IconStrip) AddGadgetItem ListBox, "This is my first list item",0,1 AddGadgetItem ListBox, "This is my second list item",0,9 Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |
![]() |
| AddGadgetItem ListBox, "This is my first list item",0,1 AddGadgetItem ListBox, "This is my second list item",0,9 |
| SuperStrict Local MyWindow:TGadget=CreateWindow("ListBox Example", 200,200,320,240) Local ListBox:TGadget=CreateListBox(10,10,200,100,MyWindow) AddGadgetItem ListBox, "This is my first list item",0,-1,"ToolTip for Item 1" AddGadgetItem ListBox, "This is my second list item",0,-1,"ToolTip for Item 2" Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Forever |