Is it possible to have a non-updateable browser displaying several columns from a table and have the user double click on a particular cell and know what the fieldname of the cell is that they clicked on?
Brian
on MOUSE-SELECT-DBLCLICK trigger of browse widget use the next code to obtain the field name for the column:
DEF VAR c-h AS WIDGET-HANDLE NO-UNDO.
DEF VAR X AS INT NO-UNDO.
X = LAST-EVENT:X.
c-h = BROWSE {&self-name}:FIRST-COLUMN.
DO WHILE VALID-HANDLE(c-h) :
IF X GE c-h:X AND X LE c-h:X + c-h:WIDTH-PIXELS THEN
MESSAGE c-h:buffer-field:NAME VIEW-AS ALERT-BOX.
c-h = c-h:NEXT-COLUMN.
END.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.