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.
The first dialog item is focused when list view is exited
Any, which I have ever used. Including the latest alpha.t-rex wrote:Which FAR version?
Any way. Tab. Mouse click on another control. Alt-<highlighted letter>. Arrows. etc.What you mean be loses focuse - when tab is pressed?
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.