Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Dec 7, 1998



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Response window looses focus in DW

I have a datawindow with a couple of fields where users can double-click to see a code table. The code table window is a response window. The problem is that when control returns to the field, users cannot type anything until they click on that field. If the user tabs to the next field, it behaves as if it were locked—you cannot type anything there until you first click on it.

It sounds as though the focus has moved from the datawindow control to the window or another object on your window. In your double-clicked event, after you have opened the response window, you should issue a set focus on the datawindow.

I would suggest that you post the focus command to make sure that some other code is not interfering with the focus:

dw_1.POST FUNCTION SetFocus()
DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date