Hi All,
In the app I'm building, I'd like to have a HUD panel pop up over my main user interface when certain conditions occur but I don't want to require the user to click an 'OK' button to dismiss it. Instead, I'd prefer to have the panel disappear when the user clicks anywhere within the app. If I put the "orderOut" code within a mouseDown event, it only fires when I click in the narrow blank areas around the controls, since most of the area is covered by a split panel and an ImageView. Is there any way to tell the other controls to pass the mouse click along to the underlying window -- or perhaps just interpret the next mouse click as a 'dismiss' command?
BTW -- I'm also having a little trouble with closing the HUD panel with the "X" close button: The first time the panel comes up, I can close it with the "X" but the second time the "X" does nothing.
Thanks,
Mark
P.S. Please don't hesitate to tell me if this is a dumb approach and not the "Mac Way". I've used interface devices like this in other contexts and rather like them but I'll accepted other suggestions.
In the app I'm building, I'd like to have a HUD panel pop up over my main user interface when certain conditions occur but I don't want to require the user to click an 'OK' button to dismiss it. Instead, I'd prefer to have the panel disappear when the user clicks anywhere within the app. If I put the "orderOut" code within a mouseDown event, it only fires when I click in the narrow blank areas around the controls, since most of the area is covered by a split panel and an ImageView. Is there any way to tell the other controls to pass the mouse click along to the underlying window -- or perhaps just interpret the next mouse click as a 'dismiss' command?
BTW -- I'm also having a little trouble with closing the HUD panel with the "X" close button: The first time the panel comes up, I can close it with the "X" but the second time the "X" does nothing.
Thanks,
Mark
P.S. Please don't hesitate to tell me if this is a dumb approach and not the "Mac Way". I've used interface devices like this in other contexts and rather like them but I'll accepted other suggestions.