@@ -35,7 +35,6 @@ void CSiTRadar::OnRefresh(HDC hdc, int phase)
3535 }
3636
3737 RECT radarea = GetRadarArea ();
38- AddScreenObject (SCREEN_BACKGROUND, " " , radarea, false , " " );
3938
4039 // time based functions
4140 double time = ((double )clock () - (double )halfSec) / ((double )CLOCKS_PER_SEC);
@@ -567,14 +566,26 @@ void CSiTRadar::OnClickScreenObject(int ObjectType,
567566 altFilterOn = !altFilterOn;
568567 }
569568
570- if (ObjectType == SCREEN_BACKGROUND) {
571- if (Button == BUTTON_MIDDLE) {
572- // open Free Text menu
569+
570+
571+ if (Button == BUTTON_MIDDLE) {
572+ // open Free Text menu
573573
574+ RECT freeTextPopUp;
575+ freeTextPopUp.left = Pt.x ;
576+ freeTextPopUp.top = Pt.y ;
577+ freeTextPopUp.right = Pt.x + 20 ;
578+ freeTextPopUp.bottom = Pt.y + 10 ;
579+
580+ GetPlugIn ()->OpenPopupList (freeTextPopUp, " Free Text" , 1 );
581+
582+ GetPlugIn ()->AddPopupListElement (" ADD FREE TEXT" , " " , ADD_FREE_TEXT);
583+ GetPlugIn ()->AddPopupListElement (" DELETE" , " " , DELETE_FREE_TEXT, FALSE , POPUP_ELEMENT_NO_CHECKBOX, true , false );
584+ GetPlugIn ()->AddPopupListElement (" DELETE ALL" , " " , DELETE_ALL_FREE_TEXT);
574585
575- }
576586 }
577587
588+
578589}
579590
580591void CSiTRadar::OnFunctionCall (int FunctionId,
0 commit comments