Edit Table & ENTER key (OpenInsight 32-bit Specific)
At 29 DEC 2006 11:27:27AM Andrew Wilson wrote:
OI 7.2.1 question: I want the end user to be able to hit the ENTER key on an edit table cell which will cause a value to be inserted. If I enter a value in the cell (including BACKSPACE) and hit the ENTER key, a POSCHANGED event is triggered. If I do not enter any value before I hit the ENTER key, it does not seem to fire any event.
The cell is getting focus programatically:
x=Set_Property(@Window:".TABLE_PAY","SELPOS",4:@FM:LPVM)
x=Set_Property(@Window:".TABLE_PAY","FOCUS",1)
Column 4 is the only column with the protected and skipped properties unchecked.
Any ideas how to get around this behavior?
At 30 DEC 2006 12:40PM Richard Hunt wrote:
In the OpenInsight Help "Programmers Reference Manual" ] "Chapter 4 Proprties" ] " "Focus property"… It does state that the sentence you are using… x=Set_Property(@Window:".TABLE_PAY","FOCUS",1) suppresses all events.
You might want to use this sentence instead… RESULT=SET_PROPERTY('SYSTEM','FOCUS',@WINDOW:'.TABLE_PAY') This sentence does not suppress events.
Hope this helps!
At 31 DEC 2006 06:00AM John Godfrey wrote:
It certainly seems to solve my Dynamic Dropdown Lists in Edit Tables conundrum.
Thanks very much Richard.
At 02 JAN 2007 02:08PM Andrew Wilson wrote:
Thanks, Richard, but that did not solve my problem. It did not change the behavior of the ENTER key once focus was on the table and cell. You must enter a character or backspace before the ENTER key is recognized. I would like it to act the same as a TAB as it does on other controls.
At 02 JAN 2007 02:10PM Andrew Wilson wrote:
Thanks, Richard, but that did not solve my problem. It did not change the behavior of the ENTER key once focus was on the table and cell. You must enter a character or backspace before the ENTER key is recognized. I would like it to act the same as a TAB as it does on other controls.
At 02 JAN 2007 02:27PM Andrew Wilson wrote:
My protected property was checked to prevent insertions. I guess that stops the ENTER key. Problem solved. Thanks for the help!