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

Class СBmpButtonTransparent - MetaTrader 5 Library - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

Class СBmpButtonTransparent - library for MetaTrader 5

This class and examples are for contest organizer experts .

This class allows handling of cursor hovers and freeform button presses.

This button is implemented using the standard OBJ_BITMAP_LABEL purpose. The image should be set to the four button states (normal, hover, pressed, hover pressed). Determine the button shape by analyzing the default state image (normal button). A set of free-shaped areas on the image with non-zero transparency are considered buttons. Button shapes can be as complex as possible. This implementation works correctly for any anchor angle ( OBJPROP_ANGLE ) and for any chart subwindow.

The standard library is required for compilation.

This archive contains button classes and 3 examples:

Class СBmpButtonTransparent - library for MetaTrader 5


Attachment download

📎 code_12638.zip

Source: MQL5 #12638

Verification code Refresh