Adding Markers in TScrMemo

Hi, i am using the following code to add marker to the Gutter on the GutterClick event.


[CODE]
void __fastcall TMainForm::ScriptEditorGutterClick(TObject *Sender, int LineNo)
{
  bool marker = ScriptEditor->HasMarkers();
  if (marker)
ScriptEditor->RemoveMarker(LineNo);
  else
ScriptEditor->AddMarker(LineNo, 1);
}

I am not sure about the MarkerImageIndex property. How can I set the MarkerImage Index ? I am using C++ Builder 10.3 

The 2nd parameter of the AddMarker() method is the image index for the marker image to be used.

Thanks for clearing that, i was simply missing the Image list..Now, the marker apperas on click..