ButtonDown->Hint = "Decrease the plugin priority";\r
ButtonDown->ShowHint = true;\r
}\r
+ else\r
+ {\r
+ ButtonUp = NULL;\r
+ ButtonDown = NULL;\r
+ }\r
\r
/* panel height */\r
Height = CleanCheckListBox->Top + CleanCheckListBox->Height\r
* started on an item */\r
if( CleanCheckListBox->ItemIndex == -1 )\r
{\r
- ButtonUp->Enabled = false;\r
- ButtonDown->Enabled = false;\r
+ if ( ButtonUp != NULL ) ButtonUp->Enabled = false;\r
+ if ( ButtonDown != NULL ) ButtonDown->Enabled = false;\r
return;\r
}\r
\r
return;\r
\r
/* enable up and down buttons */\r
- if ( b_multi_plugins )\r
+ if ( b_multi_plugins && ButtonUp != NULL && ButtonDown != NULL )\r
{\r
- if ( CleanCheckListBox->ItemIndex != -1 )\r
- {\r
- if ( CleanCheckListBox->ItemIndex == 0 )\r
- ButtonUp->Enabled = false; else ButtonUp->Enabled = true;\r
- if ( CleanCheckListBox->ItemIndex\r
- == CleanCheckListBox->Items->Count - 1 )\r
- ButtonDown->Enabled = false; else ButtonDown->Enabled = true;\r
- }\r
+ if ( CleanCheckListBox->ItemIndex == 0 )\r
+ ButtonUp->Enabled = false; else ButtonUp->Enabled = true;\r
+ if ( CleanCheckListBox->ItemIndex\r
+ == CleanCheckListBox->Items->Count - 1 )\r
+ ButtonDown->Enabled = false; else ButtonDown->Enabled = true;\r
}\r
\r
/* look for module 'Name' */\r