cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

acl is 'any' Editor dialogue open

ChrisWestern
7-Bedrock

acl is 'any' Editor dialogue open

Hi All,


Wondered if anyone knows an easy way to detect if 'any' dialogue is open, not just the main menu ones.


For example below, this works fine to prevent a message pop-up from coming when using 'message' in a timer loop and you open 'save as' dialogue. However open Ctrl-D / Modify Attributes, and you still get a pop-up with this message looping over the top.


Or if it is easier to show the status of something without using 'message' at all?


 dbActive = windows_disabled();

 if (dbActive != 1){

 message "Timer widget is active $nticks"

}


Many thanks


Chris

4 REPLIES 4

Take a look at window_list() to detect whether dialogs/windows are open.

What do you want to do instead of message if a window is open? Just curious
...

On Fri, Mar 20, 2015 at 3:47 AM, chris western <->
wrote:

> Hi All,
>
> Wondered if anyone knows an easy way to detect if 'any' dialogue is open,
> not just the main menu ones.
>
> For example below, this works fine to prevent a message pop-up from coming
> when using 'message' in a timer loop and you open 'save as' dialogue.
> However open Ctrl-D / Modify Attributes, and you still get a pop-up with
> this message looping over the top.
>
> Or if it is easier to show the status of something without using 'message'
> at all?
>
> dbActive = windows_disabled();
>
> if (dbActive != 1){
>
> message "Timer widget is active $nticks"
>
> }
>
> Many thanks
>
> Chris
>

Thanks Paul, will look into that.



I just want to use 'message' to show the user that my widget is running in the status bar, but without it creating a pop-up message when some diogues are opened, which looks to be the default behaviour.



Thanks


Chris


Hi Chris—

If you just want to post a message to the status bar that always goes to the status bar, you can use

window_set(window_id, “message”, “Some status bar text to display”);

instead of the message command.

--Clay

Great thanks Clay,


I was clearly searching the docs for the wrong terms! 😉


-C

Top Tags