Subject Re: Focus on editor
From Andy Taylor <andy.taylor.1959@outlook.com>
Date Fri, 16 Feb 2024 22:06:42 +0000
Newsgroups dbase.getting-started

Hi Mustansir,

I wrote up the problem with a sample form and a fix for it in
dbase.bug-reports on 19 March 2023, the title was:

Weird ComboBox & Editor Tab bug - with FIX!

Regards,
Andy

> Dear Ken Sir
>
> Thank you sir.
>
> Alternatively setfocus method also helped.
>
> Regards
> Mustansir
>
> Ken Mayer Wrote:
>
>> On 2/15/2024 5:47 AM, Mustansir A Ghor wrote:
>>> Dear All
>>>
>>> I am observing another error. When a focus moves from Comboxbox to Editor using Tabkey it skips going to Editor and moves on object next to editor. but if an Entryfield  is replaced iwith Editor it works fine.
>>>
>>> Can I anybody guide as what could be the error
>>
>> I suspect this is a case of checking the "z-order" -- the order of the
>> components on the form. I just did a very quick test, dropping a
>> combobox and an editor on a form with nothing else, ran it, tabbed from
>> the combobox directly into the editor with no issue.
>>
>> The odds are that some other component is "between" these two in the
>> z-order. There are two ways to fix this, one is, with the form in the
>> designer, go to the Layout menu, and select "Set Component Order" and go
>> from there. Every component will have a number, find the one  you need
>> to move and use the up/down arrows ...
>>
>> The other method is, in the source code editor, cut and paste the
>> constructor code into the appropriate location. I find the first option
>> easier to do because it's visual ...
>>
>> Ken
>>
>> --
>> *Ken Mayer*
>> Ken's dBASE Page: http://www.goldenstag.net/dbase
>> The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
>> dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
>> dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
>> dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
>> dBASE DOS to Windows Tutorial:
>> http://www.goldenstag.net/dbase/DtoWTutorial/00_Menu.htm
>>
>