[CLOSED] Count open windows on the desktop

  1. #1

    [CLOSED] Count open windows on the desktop

    Hi!

    I'm using in my desktop project. I need to get the amount of windows open on the desktop. How can I get this information?

    What is the setting to use? Tray on the taskbar have a combobox for selecting the company that the user will work. While no window is open the combo can be accessed. To open the first window the combobox should be disabled.

    What say you? You can create this control?

    Thank you!

    Ermanni
    Last edited by Daniil; Aug 15, 2014 at 9:49 AM. Reason: [CLOSED]
  2. #2
    Hi @ermanni.info,

    I can suggest this code.
    var wins = App.Desktop1.desktop.windows
        isAnyWindowVisible = false;
    
    wins.each(function(win) {
        if (win.isVisible()) {
            isAnyWindowVisible = true;
            return false;
        }
    });
    
    alert(isAnyWindowVisible);
  3. #3
    Hi Daniil,

    Your suggestion worked perfectly!

    Many thanks for the help!

    Ermanni

Similar Threads

  1. [CLOSED] Get all windows desktop
    By ermanni.info in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 01, 2013, 6:04 AM
  2. [CLOSED] How should I work with windows in Desktop?
    By ermanni.info in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Feb 10, 2013, 5:26 PM
  3. desktop windows and tabs
    By lhalfon in forum 1.x Help
    Replies: 0
    Last Post: Mar 04, 2010, 2:12 PM
  4. [CLOSED] Desktop BUG: Modal windows can be minimized and you can interact with the other windows
    By juanpablo.belli@huddle.com.ar in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 31, 2009, 2:49 PM
  5. Replies: 1
    Last Post: Mar 17, 2009, 1:17 AM

Tags for this Thread

Posting Permissions