start a specified programm if row number x is clicked.
I want to show a list of logfiles ...and if u click the row the logfile
gets opend.. so i also want to add an comment to the logfile..
Code: Select all
ReadFile>C:\Users\olllllliii\Desktop\Abr\ERP\testlogfile.log,CSVData
Dialog>Dialog3
object Dialog3: TForm
Left = 247
Top = 96
HelpContext = 5000
BorderIcons = [biSystemMenu]
Caption = 'EB'#220' SHOP Vorgangshilfe'
ClientHeight = 924
ClientWidth = 1499
Color = 12320725
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = 'Times New Roman'
Font.Style = [fsBold]
OldCreateOrder = True
ShowHint = True
OnTaskBar = False
PixelsPerInch = 96
TextHeight = 19
object MSStringGrid1: tMSStringGrid
Left = 0
Top = 72
Width = 1497
Height = 825
BevelKind = bkSoft
BevelOuter = bvRaised
BevelWidth = 3
Color = 12910532
ColCount = 10
DefaultColWidth = 140
FixedColor = 13041601
RowCount = 1
FixedRows = 0
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'MS Sans Serif'
Font.Style = []
ParentFont = False
TabOrder = 0
end
object TEdit
Left = 8
Top = 32
Width = 433
Height = 27
TabOrder = 1
end
object MSButton1: tMSButton
Left = 448
Top = 32
Width = 108
Height = 27
Caption = 'Suchen'
TabOrder = 2
DoBrowse = False
BrowseStyle = fbOpen
end
object MSButton2: tMSButton
Left = 1400
Top = 5
Width = 97
Height = 60
Caption = 'Beenden'
TabOrder = 11
DoBrowse = False
BrowseStyle = fbOpen
end
end
EndDialog>Dialog3
// Add Handler for editing ?
AddDialogHandler>Dialog3,MSStringGrid1,OnClick,editgrid
AddDialogHandler>Dialog3,MSStringGrid1,OnClickROW,startexecute
// Set Dialog
SetDialogProperty>Dialog3,MSStringGrid1,LoadFromCSV,CSVData
// Edit Dialog
Show>Dialog3,dlgResult
SRT>editgrid
// how can i get the information where the mstringgrid has been
// clicked
END>editgrid
SRT>startexeute
IF>ROW=40
executefile>........
ENDIF
END>startexeute