Need help understanding ObjectCreate Types and required Object Properties per type if required

 
Reading these documents and ObjectCreate() and "properties"
https://docs.mql4.com/constants/objectconstants

I am expecting that changing the object type should change on the chart but only a few actually show changes on the chart. 
 
//creates a button as expected
ObjectCreate(0,"Whatever",OBJ_BUTTON,0,0,0)

//does not create object
ObjectCreate(0,"Whatever",OBJ_TEXT,0,0,0)

//does not create object
ObjectCreate(0,"Whatever",OBJ_LABEL,0,0,0)

What am I missing here ?

Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
  • docs.mql4.com
Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
 
Agent86: What am I missing here ?

You created a text/label object with no text. Why does it surprise you that you see nothing?

Perhaps you should read the manual. Especially the examples. OBJ_TEXT - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
   How To Ask Questions The Smart Way. (2004)
      How To Interpret Answers.
         RTFM and STFW: How To Tell You've Seriously Screwed Up.

 
Agent86:
Reading these documents and ObjectCreate() and "properties"
https://docs.mql4.com/constants/objectconstants

I am expecting that changing the object type should change on the chart but only a few actually show changes on the chart. 
 
What am I missing here ?

What are you missing?

You are missing reading the documentation for ObjectCreate()!

ObjectCreate

Return Value

When the function is used on the current chart, the chart is accessed directly (a usual behavior in MQL4), and the return of true means a successful creation of an object; otherwise false is returned. In this case, you should call GetLastError() for further information about the error.



 
William Roeder #:

You created a text/label object with no text. Why does it surprise you that you see nothing?

Perhaps you should read the manual. Especially the examples. OBJ_TEXT - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
   How To Ask Questions The Smart Way. (2004)
      How To Interpret Answers.
         RTFM and STFW: How To Tell You've Seriously Screwed Up.

Thanks, I think I get it now. 

I need the ObjectSetText "property". 





 
I have this worked out. I can use OBJ_LABEL, and ObjectSetText with wingdings for my arrows in a set location.
That is working well. Thanks all
 
Agent86 #:
I have this worked out. I can use OBJ_LABEL, and ObjectSetText with wingdings for my arrows in a set location.
That is working well. Thanks all

YOU have this worked out??!!

Don't you mean that I told you how to do it in your other topic?

https://www.mql5.com/en/forum/392535#comment_28704587

Keith Watford #:

You can use OBJ_LABEL with the Wingdings font

https://www.mql5.com/en/forum/16867

I don't even see that it is related to this topic!

Do graphical objects all require time and price properties ?
Do graphical objects all require time and price properties ?
  • 2022.04.02
  • www.mql5.com
I'm reading through the book and reference docs. Regarding "properties" for OBJ_ARROW Are the time and price coordinates required for this type...
 
Keith Watford #:

YOU have this worked out??!!

Don't you mean that I told you how to do it in your other topic?

https://www.mql5.com/en/forum/392535#comment_28704587

I don't even see that it is related to this topic!

Well, yes sort of. 
ObjectSetInteger,wingdings and the examples shown in that forum post gave errors or produced double and triple wingdings as others indicated too.
The conclusion of that forum indicated CharToStr() was also needed and I worked from there. 

In the end my solution was this.

   ObjectSet(name,OBJPROP_XDISTANCE,0);
   ObjectSet(name,OBJPROP_YDISTANCE,300);  
   ObjectSetText(name,CharToStr(54),25,"Wingdings",clrYellow);

So yes you showed me how, and for some reason that post was no longer in my profile so I could not respond there. 

Thanks