Creating a rectangle object in MQL4 - not showing up

 

I'm attempting to create a simple panel on the chart with an EA. It's my first time to create one by the way.

My first step was to create a simple rectangular object but it doesn't seem to show up in the chart when the EA is initialized. I could create buttons and labels but the rectangular object does not seem to be visible in the chart (although it exists in the object lists). Please help me see what could I have been doing wrong or what could have been lacking.

   ObjectCreate(0, PanelBase, OBJ_RECTANGLE, 0, 0, 0);
   ObjectSetInteger(0, PanelBase, OBJPROP_CORNER, CORNER_LEFT_UPPER);
   ObjectSetInteger(0, PanelBase, OBJPROP_XDISTANCE, 15);
   ObjectSetInteger(0, PanelBase, OBJPROP_YDISTANCE, 15);
   ObjectSetInteger(0,PanelBase,OBJPROP_XSIZE, 200);
   ObjectSetInteger(0,PanelBase,OBJPROP_YSIZE, 250);
   ObjectSetInteger(0,PanelBase,OBJPROP_BGCOLOR,Gray);
   ObjectSet(PanelBase,OBJPROP_SELECTABLE,false);

Thanks in advance!

 

Nevermind my post, I found the problem why a rectangle isn't showing up. It's supposed to be 

   ObjectCreate(0, PanelBase, OBJ_RECTANGLE_LABEL, 0, 0, 0);

not

   ObjectCreate(0, PanelBase, OBJ_RECTANGLE, 0, 0, 0);