MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / DrawGridClick

Method DrawGridClick

source/formprocess.cpp:169–196  ·  view source on GitHub ↗

--------------------------------------------------------------------------- show params of current rule

Source from the content-addressed store, hash-verified

167//---------------------------------------------------------------------------
168// show params of current rule
169void __fastcall TProcessForm::DrawGridClick(TObject *Sender)
170{
171 if( DrawGrid->Row < 1 )
172 {
173 ActiveCB->Visible = false;
174 MessMatchFr->Visible = false;
175 MessProcessFr->Visible = false;
176 return;
177 }
178 else
179 {
180 ActiveCB->Visible = true;
181 MessMatchFr->Visible = true;
182 MessProcessFr->Visible = true;
183 }
184
185 int ARow = DrawGrid->Row - 1;
186 TMessProcessRule * p = localPRL->Get(ARow);
187 if( p )
188 {
189 ActiveCB->OnClick = NULL;
190 ActiveCB->Checked = p->bEnable;
191 ActiveCB->OnClick = OnFrameValuesChange;
192
193 MessMatchFr->ToDialog(&p->Match);
194 MessProcessFr->ToDialog(&p->Process);
195 }
196}
197//---------------------------------------------------------------------------
198void __fastcall TProcessForm::DrawGridDblClick(TObject *Sender)
199{

Callers

nothing calls this directly

Calls 2

GetMethod · 0.45
ToDialogMethod · 0.45

Tested by

no test coverage detected