NxAlertWindow
#1
Posted 13 December 2007 - 01:37 PM
Could you add some features to the NxAlertWindow in the next release?
1) A sound parameter that calls a MessageBeep at popup (so a systemsound is played)
2) A Popup function version where you specify the CloseDelay for each popup (and including -1 for forever).
#2
Posted 13 December 2007 - 07:36 PM
1) I think that this may be added. I will more like to we have some custom sound for this, but untill then MessageBeep may help (with property)
2) I think that I will add it.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#3
Posted 17 December 2007 - 12:30 PM
Just support the messagebeep parameter and you have access to all system sounds (-1 is the default beep).
1) I think that this may be added. I will more like to we have some custom sound for this, but untill then MessageBeep may help (with property)
Best regards
#4
Posted 17 December 2007 - 08:52 PM
I am not sure how to do this (supporting all system sounds). Can you please give me some hint. I will definitelly like to add it
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#5
Posted 18 December 2007 - 01:42 PM
Just add an integer/dword property for the sound to be played (there are only a couple of them)
Also see:
http://www.latiumsof...elphi/00023.php
and for enumerating them all:
http://delphi.about....systemsound.htm
BOOL MessageBeep(
UINT uType // sound type
);
Parameters
uType
Specifies the sound type, as identified by an entry in the [sounds] section of the registry. This parameter can be one of the following values:
Value Sound
0xFFFFFFFF Standard beep using the computer speaker
MB_ICONASTERISK SystemAsterisk
MB_ICONEXCLAMATION SystemExclamation
MB_ICONHAND SystemHand
MB_ICONQUESTION SystemQuestion
MB_OK SystemDefault
I am not sure how to do this (supporting all system sounds). Can you please give me some hint. I will definitelly like to add it
Best regards
#6
Posted 18 December 2007 - 03:27 PM
I think that I will add 2 properties (not definite names):
SoundKind (ICON_ASTERIX,....Custom)
SoundCode (value when SoundKind = Custom).
I think that this may be the best
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#7
Posted 18 December 2007 - 08:18 PM
I am confused now a little bit. As you may see from your links there are 2 sound functions in use
MessageBeep and PlaySound.
I have add new property PopupSound with next values:
For this kind of sounds all work fine, but how to organize sounds used in PlaySound API function? Maybe to add new value in PopuSound - mbSystem or something similar. Then we will have one more property for picking system sound.
Which one we m
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#8
Posted 18 December 2007 - 08:54 PM
I have add CloseDelay parameter for overloaded existing function Popup (with Text parameter). I will see now how to add infinite popup with -1 as value for CloseDelay.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#9
Posted 19 December 2007 - 03:28 PM
Great! Does this mean that you now can have different closedelays for each popup?
I have add CloseDelay parameter for overloaded existing function Popup (with Text parameter). I will see now how to add infinite popup with -1 as value for CloseDelay.
Best regards
#10
Posted 19 December 2007 - 04:03 PM
Yes, setting CloseDelay param will automatically set CloseDelay property to new value.
Can you please tell me what do you think about PopupSound property which I have mentioned in previous post?
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#11
Posted 20 December 2007 - 02:39 PM
Looks good, but please add the default sounds too (as mbDefault = -1 or as Dword(-1)). Than you have a complete access to the windows sounds that are present on all Pc's.
The other systemsounds cannot be easily integrated into a property as their names and numbers vary.
#12
Posted 26 December 2007 - 10:32 PM
Maybe it will be better that for other system sounds (PlaySound API function), that I create new event OnPopup and user may add them manually inside this event to avoid complications.
best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#13
Posted 07 January 2008 - 06:23 PM
Event would be nice. But then add the OnPopDown (or OnClose) too if your busy fixing things.
Maybe it will be better that for other system sounds (PlaySound API function), that I create new event OnPopup and user may add them manually inside this event to avoid complications.
best regards
#14
Posted 10 January 2008 - 01:38 AM
I have already add it (you may download version with this event from Members Section). I will add now OnClose event too.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











