User Tools

Site Tools


simple_20list_20box

This is an old revision of the document!


Simple list box

by Richard Russell, February 2012

A simple List Box may be used to display a list of items which is too big to fit in the output window in its entirety. The List Box provides the ability to scroll through the list, without the overheads associated with a dialogue box:

      LB_ADDSTRING = 384
      WS_BORDER = &800000
      WS_VSCROLL = &200000
      INSTALL @lib$+"WINLIB5"
      hlb% = FN_listbox("", 50, 50, 200, 100, 1, WS_BORDER+WS_VSCROLL)
      FOR item% = 1 TO 10
        READ item$
        SYS "SendMessage", hlb%, LB_ADDSTRING, 0, item$
      NEXT
      END
      DATA Here, are, some, items, to, put, in, the, list, box
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
simple_20list_20box.1522502382.txt.gz · Last modified: 2024/01/05 00:16 (external edit)