Windows

ID #1026

How to make smooth scrolling of rows in LIST?

See below for an example:
SmoothScrolling  PROGRAM

MAP
END

NameQueue QUEUE,PRE(NMQ)
Name STRING(30)
END
Items LONG

Window WINDOW('Smooth Scrolling'),AT(,,352,219),CENTER,TIMER(100),GRAY,DOUBLE
LIST,AT(79,11,178,168),USE(?List),VSCROLL,FROM(NameQueue)
END

CODE
OPEN(Window)
Items = ?List{PROP:Items}
ACCEPT
CASE EVENT()
OF EVENT:Timer
DO LoadQueue
END
END

LoadQueue ROUTINE

NMQ:Name = ALL(CHR(RANDOM(65,122)),30)
ADD(NameQueue)
IF RECORDS(NameQueue) > Items
GET(NameQueue,1)
DELETE(NameQueue)
END
Categories for this entry

Tags: smoth scrolling, list, listbox

Related entries:

Last update: 2007-07-13 14:33
Author: Marius Luidens
Revision: 1.0

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You can comment on this entry