Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-10-2008, 08:24 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Dialogs msgbox

I runt my application in systray and need to bring all dialogs.msgBox'es to top and make them to stay on top... even if i click on other applications.

Is it possible and how? :S

Im also struggeling with another problem. I have in flash, if Alert is visible... the a certain code is not executed... how do i do same thing with Dialogs.msgBox ?
At the moment, if i get the msgBox up.. and klick ok (if i cant read messages at the moment), then flash alert is still open (in systray)... and if this is open, i cant runt call this function.

function myFunction(r:ResultEvent) {
if (r.result>0) {
if (!flash_Alert_window._visible) {
flash_Alert_window = Alert.show("You have "+r.result+" new messades", "Message", Alert.OK, this);
Dialogs.msgBox("You have "+r.result+" new messages!",Name+"!",48)
SysTray.balloonTip = "New Message";
SysTray.balloonTitle = Name+"!";
SysTray.balloonIcon = "info";
SysTray.balloonTimeout = 3000;//600000;
SysTray.showBalloonTip();
//Global.getMainWnd().bAlwaysOnTop(Dialogs.msgBox);
Global.getMainWnd().bringToTop();

}
}
}
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 06:12 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Dialogs msgbox

Really sorry that don't quite understand what you mean. Can you upload a screen shot? Thank you very much.
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 06:45 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Dialogs msgbox

Well ni need for screen.

its simple. i call a function with setInterval in flash. every time this functionis called, before setting balloonTip title and so on, i check with
if(!Alert._visible)
if flash internal alert component already is visible. IF it is, then balloontip and title and timeout wont be triggered.

but since i also use Dialogs.msgBox.... i also need to check if this Dialogs.msgBox is visible too.. i mean if it has triggered.

if thisDialogs.msgBox is up and visible the ballonTip title and so on wont be set/trigered
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 09:54 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Dialogs msgbox

You can use a variable to check this

Code:
var has_msgbox = true;
Dialogs.msgBox("hello");
has_msgbox = false;
Reply With Quote
  #5 (permalink)  
Old 01-20-2008, 12:56 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Dialogs msgbox

Thank you for your reply!

I think its not quite the solution to my problem.

Anyhow, instead of cheking if messageBox, created by SWFKIT is visible, i use flash internal alert.
By this i mean, if:
Code:
if(!myAlert._visible){
   //trace something
} else {
    //do something else
}
It is working very well, it is alerting the user every (set_interval = 60 sec) about new messages. It had some impact that i had not counted with!
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:48 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.