[Gambas-user] Re: Overload the form close?

Benoit Minisini gambas at ...1...
Mon Nov 14 21:06:43 CET 2005


On Monday 14 November 2005 19:35, Andre Saccomani wrote:
> I could workaround the minimize problem by using the form_deactivate
> function. I have put a MainDlg.Hide into it, and that solved the minimize
> problems. However, I couldn't find anything to put in the form_close that
> could make it change its behavior. Does anybody knows how to deal with the
> form_close?
>
> Andre
>
> On 11/14/05, Andre Saccomani <andre.gambas at ...626...> wrote:
> > Hi,
> >
> > I'm making a simple software to my father that will allow him to
> > estabilish/drop his PPPoE connection. I'm making a program that lays on
> > the KDE tray bar. when he double click the tray icon, a dialog box
> > apears. By default the box have the regular minimize/close buttons on the
> > upper right corner. that is where my problems are. I want to change the
> > minimize/close buttons behavior. I want that both do the exactly same
> > thing, that is: Minimize the program back to tray, without closing it. I
> > want that the only way to close the program be trough a righ click/exit
> > over the tray icon.
> > so...
> > Is therer anyhow to change the minimize/close buttons behavior? make them
> > minimize my program to tray instead of closing it? It would be very
> > usefull to prevent an undesired close.
> >
> >
> > Thanks,
> > Andre Silveira

Did you try to cancel the form_close event, and to minimize the window in it ?

-- 
Benoit Minisini





More information about the User mailing list