[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Disabling buttons in window title bar
From:       David Jarvie <lists () astrojar ! org ! uk>
Date:       2005-02-09 19:59:22
Message-ID: 200502091959.23048.lists () astrojar ! org ! uk
[Download RAW message or body]

On Wednesday 09 Feb 2005 14:59, Lubos Lunak wrote:
> On Wednesday 09 of February 2005 14:35, David Jarvie wrote:
> > In some circumstances I want to disable the minimise, maximise and close
> > buttons in a window decoration for a short time after the window is first
> > displayed. Ideally I would like them to appear greyed out. Is there any
> > simple way of disabling them, or do I have to remove the min/max buttons
> > and use KMainWindow::closeEvent() to prevent closing?
>
>  Whether the titlebar buttons are shown or not depends on the actual
> functionality available. E.g. maximize is disabled when the window can't be
> resized to the required geometry. I don't see any good reason why you'd
> want to control that manually.

I want to do this on a popup window, to prevent any possibility that the user 
might happen to click on the button positions just at the moment that the 
window appears, i.e. to prevent unintentional closure or hiding of the 
window.

Cheers,
David.
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic