Página 1 de 1

Closing tabs

Publicado: Mié Dic 01, 2010 10:37 am
por Maarten Roos
Hello Xailers!
How can I stop tabs from being close by Ctrl+F4 or where to catch this action?

Closing tabs

Publicado: Mié Dic 01, 2010 11:31 am
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?

Closing tabs

Publicado: Mié Dic 01, 2010 11:53 am
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


Closing tabs

Publicado: Mié Dic 01, 2010 12:12 pm
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

Closing tabs

Publicado: Mié Dic 01, 2010 12:20 pm
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

Closing tabs

Publicado: Mié Dic 01, 2010 12:22 pm
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.

Closing tabs

Publicado: Mié Dic 01, 2010 12:25 pm
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

Closing tabs

Publicado: Mié Dic 01, 2010 12:42 pm
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!