BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TActionMainMenuBar and Threads

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Achim Berg
Guest





PostPosted: Fri Nov 21, 2003 11:32 pm    Post subject: TActionMainMenuBar and Threads Reply with quote



TActionMainMenuBar starts 2 Threads when clicked for the first time. They
stay active until the application is closed.
Who knows why?

Achim


Back to top
Steve Trefethen (Borland)
Guest





PostPosted: Sun Nov 23, 2003 5:27 pm    Post subject: Re: TActionMainMenuBar and Threads Reply with quote



Quote:
TActionMainMenuBar starts 2 Threads when clicked for the first time. They
stay active until the application is closed.
Who knows why?

Most likely what you are seeing are the threads used to process the Window's
sndPlaySound API which is used by the ActionBand menus to play menu sounds
asynchronously. The ActionBand menus themselves do not use threads.

--
-Steve
C# Builder/Delphi.NET R&D
Borland Software Corporation
My website: http://www.geocities.com/delphihelp
Save time search first: http://groups.google.com
ActionBand FAQ: http://www.geocities.com/delphihelp/info/ABFAQ.htm
How to Ask Questions the Smart Way: http://tinyurl.com/7r35



Back to top
Achim Berg
Guest





PostPosted: Tue Nov 25, 2003 8:59 am    Post subject: Re: TActionMainMenuBar and Threads Reply with quote



Hello Steve,
Well, if sndPlaySound( ) opened threads, they would not belong to the
Delphi-application, would they?
I set all sndPlaySound calls in unit ActnMenus to comment and still the 2
threads appear (visible in Task Manager).
So the miracle seems to persist..

besides- an old question again:
The ActionToolbar does not always reset the MouseOver-selection, when the
mouse leaves the symbols. This effect seems stronger on slow computers. Same
effect occured with your preliminary version in Delphi 6.
Got an idea?

best wishes, Achim

Steve Trefethen (Borland) wrote:
Quote:
TActionMainMenuBar starts 2 Threads when clicked for the first time.
They stay active until the application is closed.
Who knows why?

Most likely what you are seeing are the threads used to process the
Window's sndPlaySound API which is used by the ActionBand menus to
play menu sounds asynchronously. The ActionBand menus themselves do
not use threads.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.