realbasic-nug
[Top] [All Lists]

4b1 don't try this

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: 4b1 don't try this
From: Jim Miller <James dot T dot Miller at jhuapl dot edu>
Date: Thu, 06 Dec 2001 08:19:33 -0500

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


<Prev in Thread] Current Thread [Next in Thread>