Página 1 de 1
lTabCloseButtons
Publicado: Mar Oct 12, 2010 12:58 pm
por Maarten Roos
When put to .t. I see indeed the close buttons, but how to make them work?
Well forget this question
Found it, but didn't work the first time...
lTabCloseButtons
Publicado: Vie Oct 15, 2010 12:03 pm
por jfgimenez
Maarten,
> When put to .t. I see indeed the close buttons, but how to
> make them work?
You need to assign the event OnCloseTab. The simplest way to manage it is
like this:
METHOD Folder1CloseTab( oSender, nIndex )
oSender:aItems[ nIndex ]:Delete()
RETURN Nil
However, you should do here all whatever you need to close that tab
gracefully (f.e. close a table showed in a browse, close a connection, ask
the user to save a document, etc.).
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info