realbasic-nug
[Top] [All Lists]

Window drawing problems

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Window drawing problems
From: Chris Griffin <cgriffin at host1web dot com>
Date: Mon, 29 Nov 2004 15:45:42 -0800
Delivered-to: realbasic-nug at lists dot realsoftware dot com
First the stats:

Mac OS X 10.3.6
RB 5.5.4

Problem 1:

I have a composite, metal window. On this window I have a canvas (call it CanvasA) that contains another canvas (call this one CanvasB). Inside CanvasB I have 4 canvas items, a StaticText item and a ListBox item. Drawing is only done inside the Paint method. The 3 of the 4 canvas items on CanvasB have pictures in them. When I open this window the pictures flash and then disappear. If I switch out of the application then everything draws correctly.

Problem 2:

I am trying to implement an interface for creating items and then being able to change there size and drag them to new positions like a drawing program. I have two canvases on top of each other. Both are the same size. The idea is to draw things like the selection marque on the top canvas. When I call ClearRect on the top canvas it clears the canvas area to white. The canvas has no background set. I want to just clear the contents of the canvas not fill it with white.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>
  • Window drawing problems, Chris Griffin <=