Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Demo_BitmapOffset (OBJPROP_XOFFSET and OBJPROP_YOFFSET) - MetaTrader 5 script

author EAcpu | 5 reads | 0 comments |

Demo_BitmapOffset (OBJPROP_XOFFSET and OBJPROP_YOFFSET) - script for MetaTrader 5

Here is an example using the OBJPROP_XOFFSET and OBJPROP_YOFFSET properties. Watch the video: https://www.mql5.com/en/forum/3509/page1#comment_55145 .

This feature will allow you to use images with a set of multiple images (like CSS sprites used in the web).

Demo_BitmapOffset (OBJPROP_XOFFSET and OBJPROP_YOFFSET) - script for MetaTrader 5

Important: To use the OBJPROP_XOFFSET and OBJPROP_YOFFSET properties, you must specify the size of the visible area using the OBJPROP_XSIZE and OBJPROP_YSIZE properties.

To compile the script, extract the files from archive files.zip to the terminal data folder \MQL5\Files\.

To launch the compiled version of the script (Demo_BitmapOffset.ex5), download and place it to the terminal data folder \MQL5\Scripts\.

suggestion:


Attachment download

📎 demo_bitmapoffset.mq5 (3.67 KB)

📎 demo_bitmapoffset.ex5 (1672.72 KB)

Source: MQL5 #325

Verification code Refresh