Real Software Forums

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

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: System Alert Flash [OSX Only]
PostPosted: Sun Jun 20, 2010 10:40 pm 
Offline
User avatar

Joined: Thu Feb 16, 2006 10:04 pm
Posts: 262
On a Mac, as of OS X 10.5, a nifty system alert was added that allows you to flash your screen. If you have an app where the user might have the sound off or if they are hearing impaired, you have a way to get your users attention. Think of this method as an alternative to Rb's Beep() call.

Sub FlashScreenAlert()
// OS X only, 10.5 and greater.
Dim kSystemSoundID_FlashScreen As Integer = &h00000FFE

Soft Declare Sub AudioServicesPlayAlertSound Lib "AudioToolbox.framework" (inSystemSound As Integer)
AudioServicesPlayAlertSound kSystemSoundID_FlashScreen
End Sub


You could add this Method to a Module or perhaps the App class of your project.

_________________
Thomas C.
Real Studio Blog
http://bigdaddysurf.com/blog/

https://itunes.apple.com/us/app/maui-dragstrip-2013/id604516033?mt=8
https://itunes.apple.com/us/book/how-to-waterstart/id576214730?mt=11


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

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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group