C++ ObjectGet/ObjectSet text alignment doesn't work

Bug reports and errors in the program
Message
Author
jamesj629
Posts: 4
Joined: Sun Feb 24, 2013 4:40 pm
Location: United Kingdom

C++ ObjectGet/ObjectSet text alignment doesn't work

#1 Postby jamesj629 » Thu Feb 28, 2013 9:36 pm

Create a screen text from C++ in an indicator.

Code: Select all

ObjectSet("id1", OBJPROP_SCRHALIGNMENT, 1);
ObjectGet("id1", OBJPROP_SCRHALIGNMENT); // always returns 0.0


same for OBJPROP_SCRVALIGNMENT.

You can also test by changing text alignment in FT2 of the text "id1", but the value returned from ObjectGet is always 0.0

I believe the Delphi interface does not have this problem: http://www.forextester.com/forum/viewtopic.php?t=2595&postdays=0&postorder=asc&start=15

Could you please check?

Thanks again
J
Attachments
temp.gif
text in yellow is right aligned but returned value is 0
temp.gif (8.8 KiB) Viewed 26274 times

Return to “Bug reports”

Who is online

Users browsing this forum: No registered users and 2 guests