- Click on the text displayed in the Grid object and the text is captured and displayed in a message box.
If I compile the script and run the executable.
- Click on the text displayed in the Grid object and the text is not captured and does not display in the message box.
Any thoughts?
Code: Select all
GetTextInit
Dialog>Dialog1
object Dialog1: TForm
Left = 504
Top = 266
HelpContext = 5000
BorderIcons = [biSystemMenu]
Caption = 'CustomDialog'
ClientHeight = 223
ClientWidth = 484
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = True
ShowHint = True
OnTaskBar = False
PixelsPerInch = 96
TextHeight = 13
object MSStringGrid1: tMSStringGrid
Left = 36
Top = 30
Width = 320
Height = 120
RowCount = 1
FixedRows = 0
TabOrder = 8
end
end
EndDialog>Dialog1
AddDialogHandler>Dialog1,MSStringGrid1,OnMouseDown,CaptureTheTag
Let>FileProperties="Files","Properties","Date","Time","Size"
SetDialogProperty>Dialog1,MSStringGrid1,LoadFromCSV,FileProperties
Show>dialog1,res1
SRT>CaptureTheTag
GetCursorPos>CurX,CurY
GetTextAtPoint>CurX,CurY,GetTextResult,CharPos
MDL>GetTextResult
END>CaptureTheTag