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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...