4b1 comes with an example project "CanvasFocusExample.rb"
which doesn't work. Codes says it should produce 99 canvas areas,
but I only got 2. (Same thing happens in 3.5.2. also). Looking at
the code in the open event for the window, I adding one line of code
in the second loop (see below) to see if I could change things.
DON'T DO THAT unless you have everything saved. It locks up my
machine (MAC) and requires a reboot almost every time.
OPEN EVENT CODE:
dim i,j as integer
dim c as canvas
for i = 1 to 99
c = new canvas1
next
for i = 0 to 99
canvas1(i).top = floor(i/10) * 25 + 25
canvas1(i).left = (i mod 10) * 25 + 25
canvas1(i).visible = true // added line
next
--
Jim
|