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.

Change nClrPane on DBMEMO

Xailer professional forum in English
Responder
FRANK[1]
Mensajes: 63
Registrado: Jue May 20, 2010 11:25 am

Change nClrPane on DBMEMO

Mensaje por FRANK[1] »

Hello,
i have this necessity:
i want change the nClrPane when double click, but this way don't work,
someone can tell me how can I do?
METHOD DBMemo4DblClick( oSender, nKeyFlags, nPosX, nPosY ) CLASS
StampaFatture
oSender:nClrPane := clYellow
::oDDTDLI:Edit()
RETURN Nil
//---------------------------------------------------------- --------------------
METHOD DBMemo4Exit( oSender, oNextCtl ) CLASS StampaFatture
::oDDTDLI:UpDate()
oSender:nClrPane := clWindow
RETURN Nil
Tanks,
FRANK
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

Change nClrPane on DBMEMO

Mensaje por jlalin »

FRANK,
when you click on the memo it already has the focus so you should use:
> METHOD DBMemo4DblClick( oSender, nKeyFlags, nPosX, nPosY ) CLASS
> StampaFatture
oSender:nClrPaneFocus := clYellow
> ::oDDTDLI:Edit()
> RETURN Nil
It is better if you set the nClrPaneFocus in the objet inspector. This way
it will change the color allways: with the mouse and with the keyboard.
Regards,
José Lalí­n
FRANK[1]
Mensajes: 63
Registrado: Jue May 20, 2010 11:25 am

Change nClrPane on DBMEMO

Mensaje por FRANK[1] »

Thanks so much
"José Lalín" <dezac@corevia.com> ha scritto nel messaggio
news:4d94559e$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
FRANK,
when you click on the memo it already has the focus so you should use:
> METHOD DBMemo4DblClick( oSender, nKeyFlags, nPosX, nPosY ) CLASS
> StampaFatture
oSender:nClrPaneFocus := clYellow
> ::oDDTDLI:Edit()
> RETURN Nil
It is better if you set the nClrPaneFocus in the objet inspector. This way
it will change the color allways: with the mouse and with the keyboard.
Regards,
José Lalín
Responder