Jump to content


Photo

NxAlertWindow


  • Please log in to reply
13 replies to this topic

#1 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 13 December 2007 - 01:37 PM

Hi Boki,

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).
G.W. van der Vegt

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 13 December 2007 - 07:36 PM

Hello Wim,

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
boki@bergsoft.net | LinkedIn Profile
--
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 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 17 December 2007 - 12:30 PM

Hi Boki,

Just support the messagebeep parameter and you have access to all system sounds (-1 is the default beep).

QUOTE (Boki (Berg) @ Dec 13 2007, 07:36 PM) <{POST_SNAPBACK}>
Hello Wim,

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

G.W. van der Vegt

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 17 December 2007 - 08:52 PM

Hello Wim,

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 smile.gif

Best regards
boki@bergsoft.net | LinkedIn Profile
--
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 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 18 December 2007 - 01:42 PM

Hi Boki,

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

CODE
The MessageBeep function plays a waveform sound. The waveform sound for each sound type is identified by an entry in the [sounds] section of the registry.

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

QUOTE (Boki (Berg) @ Dec 17 2007, 08:52 PM) <{POST_SNAPBACK}>
Hello Wim,

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 smile.gif

Best regards

G.W. van der Vegt

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 18 December 2007 - 03:27 PM

Hello Wim,

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 smile.gif

Best regards
boki@bergsoft.net | LinkedIn Profile
--
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 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 18 December 2007 - 08:18 PM

Hello Wim,

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:

CODE
  TMessageBeepSound = (mbNone, mbIconExclamation, mbIconHand, mbOk, mbIconQuestion, mbIconAsterisk);


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
boki@bergsoft.net | LinkedIn Profile
--
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 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 18 December 2007 - 08:54 PM

Hello Wim,

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
boki@bergsoft.net | LinkedIn Profile
--
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 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 19 December 2007 - 03:28 PM

Hi Boki,

Great! Does this mean that you now can have different closedelays for each popup?

QUOTE (Boki (Berg) @ Dec 18 2007, 08:54 PM) <{POST_SNAPBACK}>
Hello Wim,

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

G.W. van der Vegt

#10 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 19 December 2007 - 04:03 PM

Hello Wim,

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
boki@bergsoft.net | LinkedIn Profile
--
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 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 20 December 2007 - 02:39 PM

Hi Boki,

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.

QUOTE (Boki (Berg) @ Dec 19 2007, 04:03 PM) <{POST_SNAPBACK}>
Can you please tell me what do you think about PopupSound property which I have mentioned in previous post?

G.W. van der Vegt

#12 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 26 December 2007 - 10:32 PM

Hello Wim,

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
boki@bergsoft.net | LinkedIn Profile
--
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 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 07 January 2008 - 06:23 PM

Hi Boki,

Event would be nice. But then add the OnPopDown (or OnClose) too if your busy fixing things.

QUOTE (Boki (Berg) @ Dec 26 2007, 10:32 PM) <{POST_SNAPBACK}>
Hello Wim,

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

G.W. van der Vegt

#14 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 10 January 2008 - 01:38 AM

Hello Wim,

I have already add it (you may download version with this event from Members Section). I will add now OnClose event too.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
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