Changeset 578 for trunk/ab5.0
- Timestamp:
- Aug 5, 2008, 9:17:51 PM (16 years ago)
- Location:
- trunk/ab5.0/ablib/src/Classes/System/Media
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Media/SystemSound.ab
r303 r578 1 Namespace System 2 Namespace Media 3 4 1 5 Class SystemSound 6 Protected 2 7 SoundID As Long 3 8 … … 5 10 Sub SystemSound() 6 11 SoundID=SND_ALIAS_SYSTEMDEFAULT 7 End Sub8 Sub SystemSound(value As Long)9 SoundID=value10 End Sub11 Sub SystemSound(ByRef ss As SystemSound)12 SoundID=ss.SoundID13 12 End Sub 14 13 … … 23 22 End Function 24 23 End Class 24 25 26 Namespace Detail 27 28 Class _System_SystemSound 29 Inherits SystemSound 30 Public 31 Sub _System_SystemSound( id As Long) 32 SoundID = id 33 End Sub 34 End Class 35 36 End Namespace 37 38 39 End Namespace 40 End Namespace -
trunk/ab5.0/ablib/src/Classes/System/Media/SystemSounds.ab
r286 r578 1 Namespace System 2 Namespace Media 3 1 4 Class SystemSounds 2 5 Public 3 6 Static Function Asterisk() As SystemSound 4 Return New SystemSound(SND_ALIAS_SYSTEMASTERISK)7 Return New Detail._System_SystemSound(SND_ALIAS_SYSTEMASTERISK) 5 8 End Function 6 9 Static Function Beep() As SystemSound 7 Return New SystemSound(SND_ALIAS_SYSTEMDEFAULT)10 Return New Detail._System_SystemSound(SND_ALIAS_SYSTEMDEFAULT) 8 11 End Function 9 12 Static Function Exclamation() As SystemSound 10 Return New SystemSound(SND_ALIAS_SYSTEMEXCLAMATION)13 Return New Detail._System_SystemSound(SND_ALIAS_SYSTEMEXCLAMATION) 11 14 End Function 12 15 Static Function Hand() As SystemSound 13 Return New SystemSound(SND_ALIAS_SYSTEMHAND)16 Return New Detail._System_SystemSound(SND_ALIAS_SYSTEMHAND) 14 17 End Function 15 18 Static Function Question() As SystemSound 16 Return New SystemSound(SND_ALIAS_SYSTEMQUESTION)19 Return New Detail._System_SystemSound(SND_ALIAS_SYSTEMQUESTION) 17 20 End Function 18 21 19 22 Override Function ToString() As String 20 Return "SystemSounds"23 Return New System.String("SystemSounds") 21 24 End Function 22 25 End Class 26 27 End Namespace 28 End Namespace
Note:
See TracChangeset
for help on using the changeset viewer.