Give focus to the cell of a browse

Posted by Lieven Cardoen on 18-Dec-2012 09:41

Is it possible to give focus to the cell of a browse?

For instance:

APPLY "ENTRY" TO TheWidget.

TheWidget being a cell of a browse (type = FILL-IN).

I tried it and it doesn't seem to work.

All Replies

Posted by Lieven Cardoen on 18-Dec-2012 09:43

Result should be a cursor in the cell.

Posted by Admin on 18-Dec-2012 09:48

Try setting the browse's CURRENT-COLUMN attribute.

Posted by Lieven Cardoen on 18-Dec-2012 09:50

I'll try that first thing tomorrow.

Problem is that in pure ABL this works:

- Give focus to a cell of a browse.
- Click away from the browse (on another frame for instance)
- Give focus back to the browse
- Focus is still in the cell.

In .NET, this doesn't happen. Off course in .NET, if you click away from the browse, you'll probably click on a .NET Object (like another floating form). Clicking back to the form with the browse or giving focus to the browse (even with APPLY "ENTRY" TO TheBrowse) won't put the focus back in the cell.

Posted by Lieven Cardoen on 18-Dec-2012 09:53

Won't you need the current column and the current row? (the record has focus so maybe column is enough).

Posted by Admin on 18-Dec-2012 09:54

In that case the column should be enough.

Posted by Lieven Cardoen on 19-Dec-2012 02:18

Doesn't seem to work, Mike. I'll have to create a sample project to check for sure.

This thread is closed