Re: Disabling the cancel button

Konrad Hinsen <[email protected]> Fri, 29 Nov 2002 11:20:13 +0100
Newsgroups gmane.comp.handhelds.zaurus.devel
Message-ID <[email protected]>
> I have found that if you reimplement keypressevent slot(?) and in
> that you ev->ignore the events you are not interested in (eg cancel
> button), this will do what you want. Maybe it is not supposed to do
> that ? It does that for me anyway.

That was my first idea, because a similar trick had worked well for
regaining control over the tab key. But none of my keypress event
handlers is even called when the cancel button is pressed.

As for overwriting the close event, that is not what I really want. I
want the application terminated immediately when the user taps on the
close icon in the window title bar, for example. I just don't want the
cancel button to initiate the same procedure. Ideally, I would even
like to be able to use it for other purposes, but that is less
important.

Konrad.


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en