One of the most useful features of LBB is the ability to create child controls in a loop. User Turtleman asked this question at the LB Community Forum:
Quote:I'm now trying to construct a GUI having 60 input blocks consisting of 20 rows and 3 columns. On each row, the first block (column 1) contains a number from 1 to 500, representing dollars. The next two blocks on each row (columns 2 and 3) represent Pass or Fail and are populated with numbers 1-20 |
|
There's no simple way of doing that in LB but it's straightforward in LBB:
Code: WindowHeight = 700
for row = 1 to 20
textbox #w.tb, 10, row*30, 30, 20
maphandle #w.tb, "#w.tb1.";row
textbox #w.tb, 50, row*30, 20, 20
maphandle #w.tb, "#w.tb2.";row
textbox #w.tb, 80, row*30, 20, 20
maphandle #w.tb, "#w.tb3.";row
next row
open "Grid test" for window as #w
for row = 1 to 20
h$ = "#w.tb1.";row
#h$ str$(int(500*rnd(1))+1)
h$ = "#w.tb2.";row
#h$ str$(int(20*rnd(1))+1)
h$ = "#w.tb3.";row
#h$ str$(int(20*rnd(1))+1)
next row
wait
Perhaps somebody can give the OP this information.
Richard.