Professional Web Applications Themes

windows: show vs activate? - Mac Programming

I have generally managed windows in two ways in the past. I either close them and recreate them later, or hide them and show them later. I see another thing is possible, to activate or deactive a window. And this, unliking hiding, can be queried. You can't ask if a window is hidden (which is annoying because you can't toggle show/hide if you don't know the present state), but you can query activate and use it as a toggle. What's going on here? Is activate more like bringtofront and select or is it more like show and hide? __________________________________________________ ______________________ ...

  1. #1

    Default windows: show vs activate?

    I have generally managed windows in two ways in the past. I either close
    them and recreate them later, or hide them and show them later. I see
    another thing is possible, to activate or deactive a window. And this,
    unliking hiding, can be queried. You can't ask if a window is hidden
    (which is annoying because you can't toggle show/hide if you don't know
    the present state), but you can query activate and use it as a toggle.

    What's going on here? Is activate more like bringtofront and select or is
    it more like show and hide?

    __________________________________________________ ______________________
    Keith Wiley unm.edu
    http://www.unm.edu/~keithw http://www.mp3.com/KeithWiley

    "Yet mark his perfect self-contentment, and hence learn his lesson,
    that to be self-contented is to be vile and ignorant, and that to
    aspire is better than to be blindly and impotently happy."
    -- Edwin A. Abbott, Flatland
    __________________________________________________ ______________________
    Keith Guest

  2. #2

    Default Re: windows: show vs activate?

    Keith Wiley <unm.edu> wrote in message news:<cs.unm.edu>... 

    ActivateWindow() is related to BringToFront() and SelectWindow().
    However, generally you should only need SelectWindow().

    Also, you can query if a window is visible or hidden using
    IsWindowVisible().

    Cheers,
    Marcus
    Marcus Guest

  3. #3

    Default Re: windows: show vs activate?

    In article <cs.unm.edu>,
    Keith Wiley <unm.edu> wrote:
     

    The activation state of a window simply tells you which window the user
    is currently working with. Only visible windows may be active. Usually,
    the frontmost window in a layer is active, and floating windows used to
    be always active, but this has changed in 10.3 somewhat.

    So, basically "active" just means you can see the pinstripes/gradient in
    a window's title as opposed to it being transparent/pinstriped
    (pre-Panther/Panther and later).

    I wouldn't use the activation state to determine whether a window is
    visible, you'll get too many false negatives.

    Rather, you should be using IsWindowVisible(), aka MacIsWindowVisible()
    in <MacWindows.h>.

    Cheers,
    -- M. Uli Kusterer
    http://www.zathras.de
    Uli Guest

Similar Threads

  1. Show PDF File in Windows Form using Visual Basic 2005
    By fmmfgs@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 24
    Last Post: July 30th, 07:35 PM
  2. Activate License on Mac
    By mmm_fritzdimmel in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: April 28th, 05:51 PM
  3. Replies: 1
    Last Post: June 7th, 10:48 PM
  4. Activate XP
    By Molly in forum Windows XP/2000/ME
    Replies: 2
    Last Post: July 28th, 12:28 AM
  5. Files don't show on Windows/MSIE
    By Lee Mahan in forum PHP Development
    Replies: 0
    Last Post: July 2nd, 05:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139