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.

triggering F1, using methods SaveState() and RestoreState()

Foro público de Xailer en español
Responder
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

triggering F1, using methods SaveState() and RestoreState()

Mensaje por Ingo »

Hello,
I'm just trying Xailer-Ide-demo prerelease 5 an having some questions to the
Xailer-people:
1. how to use the F1-key as the general help-key showing each topic ::HelpId
of any form without installing "FormKeyDown()" in every form
2. how to use SaveState() and RestoreState()
3. is the bugfixed prerelease 5 ready soon?
Regards
Ingo
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

triggering F1, using methods SaveState() and RestoreState()

Mensaje por jfgimenez »

Ingo,
> 1. how to use the F1-key as the general help-key showing each topic
> ::HelpId of any form without installing "FormKeyDown()" in every form
We are designing a global solution for :HelpId, but it's not ready yet.
Meanwhile, you can add this code to your application:
//---------------------------------------------------------- --------------------
CLASS TControl FROM XControl
METHOD WMHelp()
ENDCLASS
//---------------------------------------------------------- --------------------
METHOD WMHelp() CLASS TControl
IF !Empty( ::HelpId )
WITH OBJECT THelp():New( "YourHelpFile.chm" )
IF :ShowKeyword( ::HelpId, .F. )
RETURN 0
ENDIF
END
ENDIF
RETURN Nil
//---------------------------------------------------------- --------------------
> 2. how to use SaveState() and RestoreState()
SaveState() is a method from TForm which returns a string. This string
contains all needed information to restore the window to the state it had at
that moment. You can store this string in any way (a .ini file, a field in a
..dbf, a field in a SQL database, etc.).
To restore the window to that state, you need to call RestoreState() passing
the string as an argument.
> 3. is the bugfixed prerelease 5 ready soon?
Yes, it will be published next monday or tuesday.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
ingo[1]
Mensajes: 8
Registrado: Dom Ago 06, 2006 8:26 am

triggering F1, using methods SaveState() and RestoreState()

Mensaje por ingo[1] »

José.
muchas gracias!
Saludos
Ingo
Responder