[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]] ==== Want to call popup from Edit Line using Double Click (OpenInsight Specific) ==== === At 03 OCT 1998 07:19:57AM Bill Ridout wrote: === {{tag>"OpenInsight Specific"}} I need to call a Popup in an Edit line, using preferably a double click or if not possible a function key eg F2. ---- === At 03 OCT 1998 10:46AM Don Bakke wrote: === Bill, Using a double-click would not be intuitive since this is generally used to select the text of an edit control. (Besides, you'd have to perform some advanced coding to get this to work.) The easiest way to go about it is to use the QuickEvent designer for your edit line and have the OPTIONS event launch a PopUp, making sure the return value goes the TEXT property of @SELF. Then go into the Menu designer and change the accelerator keystroke for Options from Alt-DownArrow to F2. Now any control with an OPTIONS event will be called by pressing F2 (like in AREV). One caveat: Edit Tables use F2 to go into edit mode within a cell. Therefore, you may want to have your Options function get called by a different keystroke (which is the easiest) or change the keystroke that edit tables use to go into edit mode (which is more complex). Some time ago I posted the code to do the latter so you could do a search if you are really ambitious. dbakke@srpcs.com [url=http://www.srpcs.com]SRP Computer Solutions[/url] [img]http://www.srpcs.com/srpicon1.gif[/img] ---- === At 04 OCT 1998 04:55AM Bill Ridout wrote: === Thanks Don for your help I had already found a way of recognising the Function keys by using the CHAR script and then matching the Scancode variable with 113 for F2. But I shall look at your method as it cuts out the coding [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=C7834950ABA79CDB85256692003E405D|View this thread on the forum...]]