The first dialog item is focused when list view is exited

A place where plug-in developers can share their knowledge and experience.
Locked
prikryl
Posts: 9
Joined: Wed Aug 17, 2005 8:43 pm
Contact:

The first dialog item is focused when list view is exited

Post by prikryl » Wed Aug 17, 2005 9:15 pm

Hello,

I do not know if it is feature or bug:

When DI_LISTBOX dialog item loses focus, the focus is moved always to the first item on the dialog, despite the right tab order.

I'm using DialogEx(). I haven't tried that with Dialog().

Martin.

User avatar
t-rex
Admin
Posts: 417
Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:

Post by t-rex » Thu Aug 18, 2005 12:13 am

Which FAR version? What you mean be loses focuse - when tab is pressed?

prikryl
Posts: 9
Joined: Wed Aug 17, 2005 8:43 pm
Contact:

Post by prikryl » Thu Aug 18, 2005 7:20 am

t-rex wrote:Which FAR version?
Any, which I have ever used. Including the latest alpha.
What you mean be loses focuse - when tab is pressed?
Any way. Tab. Mouse click on another control. Alt-<highlighted letter>. Arrows. etc.

As an example see WinSCP plugin 1.4.1 and older. On session configuration dialog, select tab "SSH" (in 1.4.1 it is labeled as second "SCP" tab by mistake :-)). There is encryption list. Set focus to the list and press any dialog item on the dialog (for example any button). Instead of moving focus to the clicked item, the "Session" tab is shown. The reason is that "Session" button (which shows the tab) is the very first item on the dialog.

In 1.4.2 there is a workaround for the bug. I have added fake empty DI_TEXT item on top of the dialog. It cannot receive focus so the bug does not show.

Locked