Project

General

Profile

chui_colors.p

test case - Marius Gligor, 04/15/2014 05:19 AM

Download (704 Bytes)

 
1
define var ed as character view-as editor size 20 by 2 label "Editor".
2
define var fi as int label "Fill-in" initial 0 view-as fill-in. 
3
def button b0 default label "Message".
4
def button b1 auto-go label "Quit".
5
def rectangle poly size 30 by 10 dcolor 25 pfcolor 28 graphic-edge tooltip "bubu...".
6

    
7
define frame fr ed fi b0 b1 skip(1) poly with color display blue/black.
8
 
9
color display red/black ed with frame fr.
10
color display yellow/black b0 with frame fr.
11
color display yellow/black b1 with frame fr.
12

    
13
b1:dcolor = 17.
14
fi:dcolor = 1.
15
fi:pfcolor = 2.
16

    
17
on choose of b0
18
do:
19
   message color blue/black "Blue/black alert message" view-as alert-box error.
20
end.
21

    
22
enable all with frame fr.
23
wait-for go of b1.