program T6963C
include "__lib_t6963c"
include "__lib_images"
sub procedure NewWindow(dim x as integer, dim y as integer,
dim sx as integer, dim sy as integer,
dim byref title as string[16], dim byref msg as string[64],
dim byref pic24x24 as byte[72], dim okBtn as byte)
T6963C_box(x, y , x + sx, y + sy, T6963C_White)
T6963C_rectangle(x, y ,x + sx ,y + sy ,T6963C_BLACK)
T6963C_box(x + 2, y + 2, x + sx - 2, y + 12, T6963C_BLACK)
T6963C_write_text(title, x + 10, y + 10, T6963C_ROM_MODE_XOR)
T6963C_write_text(msg, x + 40, y + 32, T6963C_ROM_MODE_XOR)
'T6963C_sprite(x+8, y+24, pic24x24, 24, 24)
end sub
main:
ADPCFG = 0xFFFF
TRISB = 0xFFFF
TRISF = 0
PORTD = %00000000
T6963C_init(240, 128, 8, PORTF, PORTD, 2, 1, 0, 4)
T6963C_graphics(1)
T6963C_text(1)
T6963C_cursor(0)
while TRUE
NewWindow(16,64,48,160,"WindowsTest","Windows works!!!","",1)
wend
end .