_TITLE "External ASCII Picker" f
= _LOADFONT("cour.ttf", 128) 'a nice large display font, not a 100% match to QB64's inbuilt version,_FONT f
' but it works easily here for a demo highlight character
IF temp
= 0 THEN 'static backgrounds so we don't have to make them over and over, or worry about freeing them LINE (x
* 40, 0)-(x
* 40, 480), _RGB32(255, 255, 0) LINE (0, y
* 30)-(640, y
* 30), _RGB32(255, 255, 0) counter = counter + 1
counter = 0
LINE (x
* 40, 0)-(x
* 40, 480), _RGB32(255, 255, 0) LINE (0, y
* 30)-(640, y
* 30), _RGB32(255, 255, 0) counter = counter + 1
x = 1: y = 1
x
= _MOUSEX \
40 + 1 'If mouse moved, where are we now?
num = (y - 1) * 16 + x - 1
text$ = ""
flashcounter = flashcounter + 1
IF LEN(text$
) = 1 THEN text$
= " " + text$
+ " " IF flashcounter
= 60 THEN flashcounter
= 1 LINE (x
* 40 - 40, y
* 30 - 30)-(x
* 40, y
* 30), _RGBA32(255, 255, 255, 150), BF
MouseClick = 0: MouseExit = 0
ret% = (y - 1) * 16 + x - 1
cleanexit: