EditTable & F2 Question (OpenInsight Specific)
At 23 MAR 1998 04:00:22PM Jeff Blinn wrote:
We're on a roll today - thanks for the previous responses.
Another question - we've discovered that the F2 key allows the users to edit a particular cell within an edit table. What is the procedure or event that we can call to do this programatically? Aparently the F2 function is an 'undocumented' feature?
Thanks again,
Jeff
At 23 MAR 1998 04:44PM Oystein Reigem wrote:
Jeff,
Don Bakke probably answered this once in the posting below.
- Oystein -
Subject:
re: Simple data entry protocol question.Category:
OpenInsight SpecificAuthor:
Don BakkeDate:
12/08/97
Can this F2 toggle be changed since all the users are addicted to F2 as a "List Popup"?!
You bet. Put the following code in the CREATE event of your form:
Declare function SendMessage
Equ DTM_SETEDITKEY to 1118
Equ DT_BEGINEDIT to 1
Equ VK_CODE to 113
/* 113 is the virtual key code for F2. 114 is the virtual key code for F3 and so on. So just determine which function key you want to use and replace 113 with the appropriate value. */
hWnd=Get_Property(@Window:".ET_ITEM_DATE", "HANDLE")
rv=SendMessage(hWnd, DTM_SETEDITKEY, DT_BEGINEDIT, VK_CODE)
Don Bakke
SRP Computer Solutions
At 23 MAR 1998 05:15PM Jeff wrote:
Thanks for that info - it's not quite what we're looking for however. That code allows us to change the actual key that toggles the edit mode, but I'm looking for a way to actually toggle it myself. When the user has focus on a cell, I want to have the window act as though F2 (or whatever key) was pressed.
Is there a way to use SendMessage to send a keystroke to a control? Are these keys defined in an equate somewhere? I'm having trouble finding them.
Thanks,
Jeff
At 23 MAR 1998 05:28PM Dave Pociu wrote:
F2 is not an OI feature.
It is specific to an edit table (You can do the same thing in EXCEL to edit a cell).
At 23 MAR 1998 06:32PM Andrew P Mcauley wrote:
Checkout Cam Purdy's posting here
amcauley@sprezzatura.com
World Leaders in all things RevSoft
At 23 MAR 1998 08:00PM Jeff Blinn wrote:
Andrew - that did the trick. I know 2 of us were looking through the knowledge base and we managed to miss that article.
BTW - how do you add links/italics to the message on the discussion group here - I tried including the html code once, but it didn't quite act the way I thought it would.
Thanks again,
Jeff
At 23 MAR 1998 08:27PM Andrew P McAuley wrote:
Square brackets around the html.
amcauley@sprezzatura.com
World Leaders in all things RevSoft
At 24 MAR 1998 12:38AM Jeff Blinn wrote:
Thanks
![]()
jblinn@jii.com