- BMP File Not Loading
- Problem with OBJ_BITMAP_LABEL not showing the content properly
- Merging Standard MACD and Stochastic Indicators into one?? (Combined Code)
Making charts more interesting: Adding a background
Daniel Jose, 2022.04.27 11:08
Many workstations contain some representative image which shows something about the user. These images make the working environment more beautiful and exciting. Let's see how to make the charts more interesting by adding a background.Rahat, the #resource declaration and OBJPROP_BMPFILE use different path forms.
For a BMP at MQL5\Images\logo.bmp, the declaration is #resource "\\Images\\logo.bmp". When assigning that embedded image to OBJPROP_BMPFILE, use "::Images\\logo.bmp": omit the declaration's leading root backslash after ::. These are documentation-based examples, not tested here.
A Windows drive path or a parent-folder ..\ segment is not valid in #resource. If this is a compiler error, check the declaration and file location first.
Could you post the exact #resource line, the ObjectSetString call and full error text, and say whether it appears in the compiler or the Experts log?
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use