Jump to content

SetFocus Not work?


k0de

Recommended Posts

How can I set focus on DBGrid?

 

Can you explain what you want to achieve. I do not understand you question.

Also I should explain setfocus of a Cell in delphi needs EM_SETSEL window message to change to editbox that message is not available in a web browser and other operating systems.

 

I do not know exact solution for you. But if you want focus where you mouse pointer is, you need scripting.

Please read document Farshad has described below

http://www.unigui.com/wpblog/2011/07/29/client-side-scripting-with-unigui/

 

and see example ClientEvents in http://prime.fmsoft.net/demo/ucdemo.dll

Link to comment
Share on other sites

Can you explain what you want to achieve. I do not understand you question.

Also I should explain setfocus of a Cell in delphi needs EM_SETSEL window message to change to editbox that message is not available in a web browser and other operating systems.

 

I do not know exact solution for you. But if you want focus where you mouse pointer is, you need scripting.

Please read document Farshad has described below

http://www.unigui.com/wpblog/2011/07/29/client-side-scripting-with-unigui/

 

and see example ClientEvents in http://prime.fmsoft.net/demo/ucdemo.dll

 

Thanks for the link, but it's not something that should be.

Put on the form button and DBGrid1.

What code I write to the event ButtonClick to switch the focus from the button to DBGrid1?

And this should work in the browser.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...