In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Closing tabs

Xailer professional forum in English
Responder
Maarten Roos
Mensajes: 126
Registrado: Lun Mar 29, 2010 10:24 am

Closing tabs

Mensaje por Maarten Roos »

Hello Xailers!
How can I stop tabs from being close by Ctrl+F4 or where to catch this action?
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Closing tabs

Mensaje por ignacio »

Maarten,
Do you mean inside the IDE? Then I'm afraid is not possible
Maybe I'm missing something, please explain exactly on which controls and on
which conditions are you talking about.
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Maarten Roos" escribió en el mensaje de
noticias:4cf6176b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
Hello Xailers!
How can I stop tabs from being close by Ctrl+F4 or where to
catch this action?
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Maarten Roos
Mensajes: 126
Registrado: Lun Mar 29, 2010 10:24 am

Closing tabs

Mensaje por Maarten Roos »

Within the TFolder class, you can add a tab, and close it by pressing Ctrl+f4. But the method OnCloseTab will be ignored if the user uses Ctrl+F4 to close the tab

Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Closing tabs

Mensaje por jfgimenez »

Maarten,
> Within the TFolder class, you can add a tab, and close it by
> pressing Ctrl+f4. But the method OnCloseTab will be ignored
> if the user uses Ctrl+F4 to close the tab
Xailer doesn't use the Ctrl+F4 key to fire the OnCloseTab event. It's only
fired when the user clicks on the red x in the tab. Surely it's in your
code. We do so also in the IDE code.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Closing tabs

Mensaje por ignacio »

Maarten,
Ctrl+F4 does not close any folder tab ????? :-o
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Maarten Roos" escribió en el mensaje de
noticias:4cf62923$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
Within the TFolder class, you can add a tab, and close it by
pressing Ctrl+f4. But the method OnCloseTab will be ignored
if the user uses Ctrl+F4 to close the tab
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Maarten Roos
Mensajes: 126
Registrado: Lun Mar 29, 2010 10:24 am

Closing tabs

Mensaje por Maarten Roos »

Jose,
Use the example DBFData6 in the DataControls folder. Go to Clientes and press Ctrl+F4. Than you see what is happening.
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Closing tabs

Mensaje por jfgimenez »

Maarten,
> Use the example DBFData6 in the DataControls folder. Go to
> Clientes and press Ctrl+F4. Than you see what is
> happening.
See the method WMKeyDown() in FrmFolder.prg from that sample ;-)
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Maarten Roos
Mensajes: 126
Registrado: Lun Mar 29, 2010 10:24 am

Closing tabs

Mensaje por Maarten Roos »

You are right...
I found the bad guy! It was a method in frmFolder.prg. Probably an unfinished piece of code of my I have totally forgotten off.
Sorry guys!
Responder