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
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.
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
Change nClrPane on DBMEMO
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
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
Change nClrPane on DBMEMO
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
"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