I would avoid taking away the focus from the other object. Might be that the user wants to spell check this one.
By the way, I use GOTO OBJECT(wp)sets the focus to wp but not for the spell checker in the same object method. The refresh of the area happens only after the object method is finished. Therefor wp has not yet the focus for the spell checker in the same method. So, no bug, way it works. Disabling is the best choice. Achim -----Ursprüngliche Nachricht----- Von: 4D_Tech [mailto:[email protected]] Im Auftrag von Pat Bensky via 4D_Tech Gesendet: Samstag, 17. Februar 2018 12:54 An: 4D iNug Technical <[email protected]> Cc: Pat Bensky <[email protected]> Betreff: Re: Giving an object the focus Good suggestion Sujit. I will do that. Pat On 17 February 2018 at 08:58, Sujit Shah via 4D_Tech <[email protected]> wrote: > I would disable the button if the 4D Write Pro is not in focus.. > > > > On Sat, Feb 17, 2018 at 2:43 AM, Pat Bensky via 4D_Tech < > [email protected]> wrote: > > > How do I make an object on a form the focus object programmatically? > > I have a *Check Spelling* button which runs the spelling checker on > > a > Write > > Pro area. But if another field has the focus, it doesn't work. So I > > can check which object has the focus and if it isn't the Write Pro > > area, how > do > > I make it become the focus object? Just going to the object with > > *GOTO OBJECT *doesn't work. > > > > -- > > ************************************************* > > CatBase - Top Dog in Data Publishing > > tel: +44 (0) 207 118 7889 > > w: http://www.catbase.com > > skype: pat.bensky > > ************************************************* > > ******************************************************************** > > ** > > 4D Internet Users Group (4D iNUG) > > FAQ: http://lists.4d.com/faqnug.html > > Archive: http://lists.4d.com/archives.html > > Options: https://lists.4d.com/mailman/options/4d_tech > > Unsub: mailto:[email protected] > > ******************************************************************** > > ** > > > > > -- > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > "There must be ingenuity as well as intention, strategy as well as > strength. " > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** > -- ************************************************* CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky ************************************************* ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

