Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

define windows

Status
Not open for further replies.

theman2000

IS-IT--Management
Jun 26, 2007
4
US
how do you define a window that has got a scrole bar on to scrole up and down a page of text

thanx
 
Strictly speaking windows themselves can't be defined with scroll bars (see DEFINE WINDOW command). You may wish to display the data in an Edit Box (see EditBox Control and ScrollBars Property).

Jim
 
is there any way then to just make it so the user can scrole up and down the page ?
 
The user can use the arrow keys, Page Up, Page Down, etc. to get through the data.

Jim

 
it wont let me do that. the code im using for the procedure is

procedure print_inventory
clear
USE A:\TABLES\cdfile.DBF in 1
SET COLOR OF FIELDS TO N/W*
print1=0

set safety off
set alternate to A:\CDFILE
set alternate on
list FIELD cd_num,title,artist,style off
set alternate off
@33,65 GET Print1 FUNCTION '* PRINT;EXIT' FONT 'TIMES',8 SIZE 1, 10
READ
IF PRINT1 =1
list FIELD cd_num,title,artist,style off TO PRINT
endif
clear
set safety on
close database

return

when i press the page up or down nothing happens when a press the arrow keys it activates the button
 
In looking at your code, it seems to me that you'd produce what you want much easier with the BROWSE command than the LIST command. BROWSE will give you the scroll bars you need automatically.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top