10.1C Windows. I've created a dynamic browse thus:
I then created the rowDblClick procedure:
The browse works just fine, the rowDblClick proc gets called and a message of hFrame:name gives expected results. However, the event doesn't get fired. Is this a bug or is there an explanation for this? I've tried many permutations, no luck. Is there some work around, possible involving a CREATE CALL?
Code:
CREATE BROWSE hBrowse
ASSIGN
FRAME = hFrame
FONT = 8
ROW-MARKERS = FALSE
MULTIPLE = TRUE
QUERY = hQuery
NAME = ttName
TITLE = IF cTitle = "" OR cTitle = ? THEN ? ELSE cTitle
X = 0
Y = 0
WIDTH-PIXELS = hFrame:WIDTH-PIXELS - hFrame:BORDER-LEFT-PIXELS - hFrame:BORDER-RIGHT-PIXELS
HEIGHT-PIXELS = hFrame:HEIGHT-PIXELS - hFrame:BORDER-TOP-PIXELS - hFrame:BORDER-BOTTOM-PIXELS
VISIBLE = TRUE
READ-ONLY = ro
SENSITIVE = YES
SEPARATORS = TRUE
ALLOW-COLUMN-SEARCHING = TRUE
COLUMN-RESIZABLE = TRUE
TRIGGERS:
ON 'MOUSE-SELECT-DBLCLICK'
PERSISTENT RUN rowDblClick IN THIS-PROCEDURE.
END.
.
I then created the rowDblClick procedure:
Code:
PROCEDURE rowDblClick :
DEF VAR hFrame AS HANDLE NO-UNDO.
hFrame = SELF:FRAME.
m_hBrws = SELF.
APPLY "MOUSE-SELECT-DBLCLICK" TO hFrame.
END PROCEDURE.
The browse works just fine, the rowDblClick proc gets called and a message of hFrame:name gives expected results. However, the event doesn't get fired. Is this a bug or is there an explanation for this? I've tried many permutations, no luck. Is there some work around, possible involving a CREATE CALL?