--------------------------------------------------------------------------- show params of current rule
| 219 | //--------------------------------------------------------------------------- |
| 220 | // show params of current rule |
| 221 | void __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 | //--------------------------------------------------------------------------- |
| 254 | void __fastcall THighlightForm::DrawGridDblClick(TObject *Sender) |
| 255 | { |
nothing calls this directly
no test coverage detected