gettingstarted
[Top] [All Lists]

Re: Back color on/off

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Back color on/off
From: Tristan <tornado at athenet dot net>
Date: Tue, 31 May 2005 20:58:40 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <4ea36547c8219ce58a07821bef16bb7c at frontiernet dot net>
well I decided to give my users a choice between a 50x50 window, 500x500 window, or full screen window that flashes visible/not visible.

On May 31, 2005, at 8:11 PM, Harrie Westphal wrote:

The only way I found to get it to work is to place a canvas over the window. Use g.fillrect to paint the canvas the color you want and then in the timers action event simply use:

  canvas1.visible = not canvas1.visible

When the canvas becomes invisible the metal window again appears. The problem here is how many controls you have on the window. They all need to be on top of the canvas and then in their open events you need to say something like:

  me.parent = nil

Getting the canvas behind the controls is no problem. The chore is adding the me.parent = nil to each controls open event.

If you don't do that they will become invisible when the canvas is made invisible since their parent is the canvas by default. Give that a try, it worked in 5.5.5 under OS X 10.3.9.

=== A Mac addict in Tennessee ===

_______________________________________________
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>


_______________________________________________
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>