Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Nov 21, 2018 4:31 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Fading out and in the whole screen
PostPosted: Thu Nov 08, 2012 12:43 pm 
Offline

Joined: Mon Oct 09, 2006 9:05 am
Posts: 145
Is it possible to fade out the whole screen and after a certain time to fade it in again?

Thx in adv.

_________________
Working system: Mac OS X 10.6.x
_________________________________
Note : I am not interested in any solutions that need custom Plug-ins of any kind


Last edited by DevMix on Thu Nov 08, 2012 1:34 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Fading out and in the whole screen
PostPosted: Thu Nov 08, 2012 1:27 pm 
Offline

Joined: Mon Aug 14, 2006 9:33 pm
Posts: 1774
Here is one example I found quickly...

http://www.monkeybreadsoftware.net/example-computercontrol-gamma-gammafade.shtml

_________________
Roger Clary
Class One Software
Educational Software for Lifelong Learning
http://www.classonesoftware.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Fading out and in the whole screen
PostPosted: Thu Nov 08, 2012 1:33 pm 
Offline

Joined: Mon Oct 09, 2006 9:05 am
Posts: 145
Thank you, classone.

I am not interested in any solutions that need custom Plug-ins of any kind.

_________________
Working system: Mac OS X 10.6.x
_________________________________
Note : I am not interested in any solutions that need custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: Fading out and in the whole screen
PostPosted: Thu Nov 08, 2012 1:45 pm 
Offline

Joined: Mon May 30, 2011 12:56 am
Posts: 702
Sticky tape and string solution:

Grab the screen
Open a full size window with no borders
Draw the grabbed screen on the window with no transparency
Use a timer to redraw the picture at more and more transparency until all you can see if the base window.
(The base window could be white or black)


Top
 Profile  
Reply with quote  
 Post subject: Re: Fading out and in the whole screen
PostPosted: Thu Nov 08, 2012 11:15 pm 
Offline
User avatar

Joined: Thu Feb 16, 2006 10:04 pm
Posts: 262
Sure, Display Services ....

http://bigdaddysurf.com/blog/?p=645


Top
 Profile  
Reply with quote  
 Post subject: Re: Fading out and in the whole screen
PostPosted: Fri Nov 09, 2012 8:55 am 
Offline

Joined: Mon Oct 09, 2006 9:05 am
Posts: 145
Thank you mauitom and kermit.

I followed the instructions of kermit. The result looks good so far.

Just a tipp, you don't need to grab the screen. Just play with window's transparency.

But finally I decided to use mauitom's recommendation. Using quartz is a system wide solution and offers you some other options.


Thank you all again.

_________________
Working system: Mac OS X 10.6.x
_________________________________
Note : I am not interested in any solutions that need custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: Fading out and in the whole screen
PostPosted: Fri Nov 23, 2012 1:47 pm 
Offline

Joined: Mon Oct 09, 2006 9:05 am
Posts: 145
mauitom, I played a little with DisplayServices project which you recommended.

The screen is faded and I keep the screen black in a while loop for 30sec using the following code.
While mytime<30 //means 30sec, mytime is an integer value from a timer
CaptureDisplayAndShowTextExample
wend

CaptureDisplayAndShowTextExample is modified so that the value of mytime is displayed at the screen.
The problem is that these value is overwritten at the same place on the screen and the background is not be refreshed.

Is there a refresh function or a draw a black rectangle function to use it before the next value of mytime comes?

_________________
Working system: Mac OS X 10.6.x
_________________________________
Note : I am not interested in any solutions that need custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: Fading out and in the whole screen
PostPosted: Fri Nov 23, 2012 6:05 pm 
Offline
User avatar

Joined: Thu Feb 16, 2006 10:04 pm
Posts: 262
It you make a call to set the text to "", this will act to clear the existing text, then make your next call to set the text to the new value. Sometimes you need to skip a few iterations inside the loop so you can read the text. I'll leave that as an exercise for you to figure out. The MOD function is one approach for this, or a simple counter is another as a flag.


Top
 Profile  
Reply with quote  
 Post subject: Re: Fading out and in the whole screen
PostPosted: Fri Nov 23, 2012 6:54 pm 
Offline

Joined: Mon Oct 09, 2006 9:05 am
Posts: 145
mauitom wrote:
It you make a call to set the text to "", this will act to clear the existing text, ...


I did try it before. Unfortunately it does not work. Once you draw a text, it remains on the screen. So a call with text="" does not change anything. It overwrites the screen just with "" (nothing). All numbers are on top of each other.

I think, there must be a background-refresh-function or if not, a rectangle in black may overwrite the last value. Unfortunately I can not find any function like that in the project.

_________________
Working system: Mac OS X 10.6.x
_________________________________
Note : I am not interested in any solutions that need custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group