Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Rookie question about focus and buttons Date: Wed, 24 May 2017 08:01:42 +0200 Lines: 21 Message-ID: References: <1d99e068-2fc5-4c12-9610-5de6bcd4cbc9@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net I/UbE0kJYYiFX01tc6iwFQh8MedHu8M1N/S/SZ01NDnyZDIcE= Cancel-Lock: sha1:QMqusj/8fTKuf1pDJD/sOeFvHAQ= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:10602 Hi Stu, > I've got a small app that I'm migrating to touchscreen. I have a few > SLE and have created large buttons for input into the SLE. > > Dumb question I know, but how do I return focus to the appropriate > SLE after the button is clicked? > > I can't seem to suss out how to determine where to return focus to. declare an own class for the pushbutton and put a reference of the correct SLE to the pushbutton class. After the button click, you can retrieve the SLE object from the pressed pushbutton and set the focus there. Wolfgang --