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

Method DrawGridClick

source/formhl.cpp:221–252  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

219//---------------------------------------------------------------------------
220// show params of current rule
221void __fastcall THighlightForm::DrawGridClick(TObject *Sender)
222{
223 if( DrawGrid->Row < 1 )
224 {
225 ActiveCB->Visible = false;
226 MessMatchFr->Visible = false;
227 MessStyleFr->Visible = false;
228 return;
229 }
230 else
231 {
232 ActiveCB->Visible = true;
233 MessMatchFr->Visible = true;
234 MessStyleFr->Visible = true;
235 }
236
237 int ARow = DrawGrid->Row - 1;
238 TMessHighlightList * p = localHPL->GetCurrentProfile();
239 if( p )
240 {
241 TMessHighlight * mh = p->Get(ARow);
242 if( mh )
243 {
244 ActiveCB->OnClick = NULL;
245 ActiveCB->Checked = mh->bEnable;
246 ActiveCB->OnClick = OnFrameValuesChange;
247
248 MessMatchFr->ToDialog(&mh->Match);
249 MessStyleFr->ToDialog(&mh->Style);
250 }
251 }
252}
253//---------------------------------------------------------------------------
254void __fastcall THighlightForm::DrawGridDblClick(TObject *Sender)
255{

Callers

nothing calls this directly

Calls 3

GetCurrentProfileMethod · 0.80
GetMethod · 0.45
ToDialogMethod · 0.45

Tested by

no test coverage detected