Project

General

Profile

browse-outside-entry.p

Stanislav Lomany, 10/05/2019 06:11 PM

Download (868 Bytes)

 
1
DEF TEMP-TABLE tt FIELD f1 AS integer
2
                  field f2 as char.
3

    
4
def var i as integer.
5
def var str as char.
6
def buffer xtt for tt.
7

    
8
repeat i = 1 to 20:
9
   create tt. tt.f1 = i. tt.f2 = "test" + string(i).
10
end.
11

    
12
DEFINE QUERY q FOR tt SCROLLING.
13
OPEN QUERY q FOR EACH tt.
14

    
15
DEF BROWSE brws QUERY q 
16
DISPLAY 
17
     tt.f1 width-chars 10
18
     tt.f2 width-chars 10
19
     enable tt.f2
20
     WITH size 30 by 10 TITLE "Static browse" separators.
21

    
22
DEF FRAME fr brws skip str
23
   WITH TITLE "Frame" SIZE 70 BY 20 NO-LABELS.
24
   
25
def var cnt as integer.
26
on "row-entry" of browse brws do:
27
  cnt = cnt + 1.
28
  message "row-entry" cnt.  
29
end.       
30
   
31
ENABLE ALL WITH FRAME fr.
32

    
33
message "test 1: click on the bottom fill-in, click on the cell with '5'".
34
message "test 2: click on the bottom fill-in, click on the cell with 'test5'".
35

    
36
WAIT-FOR WINDOW-CLOSE OF DEFAULT-WINDOW.
37

    
38

    
39