MQL4 using MQL5 Standard Library PANEL AND DIALOGS. Showing Object Description in Pop_Up, while Mouse Hover
I mean this window under mouse cursor, on attached file (sorry for the photo quality, it does not work when screen recorder is running at the same time )
Unfortunately I cannot see that in OnChartEvent events : https://docs.mql4.com/basis/function/events
Which function is responsible for it ?
I mean enabling/disabling and editing window content ....
- docs.mql4.com
Mistyfikator:I have question, which method from Panel and Classes Library is responsible for displaying Pop_up with item description? I can see it is predefinied somewhere, cause after implement CLabel object in my AppDialog I can see this pop-up, but have no idea, how to edit its content. Of course I have found it here: https://docs.mql4.com/constants/chartconstants/charts_samples#chart_show_object_descr. But I believe there is faster way, and I would like to use way provided by MQL5 Standard Libary. Any idea ?
Do you mean the Tooltip? Please show a screenshot of what you mean by "pop-up".
Yes, from the image, that is the Tooltip that graphical objects have. It has nothing to do with chart events.
Your topic title refers to MQL5 Standard Library, but keep referencing to the MQL4 documentation. Which is it — MQL5 or MQL4?
Do you mean the Tooltip? Please show a screenshot of what you mean by "pop-up".
Hi Fernando!
Thanks a lot for Your answer !
Unfortunately I can't do screenshoot, cause this window dissapears when my screenshooter is ON
I have attached the photo above and below
I mean window below mouse cursor :
Yes, from the image, that is the Tooltip that graphical objects have. It has nothing to do with chart events.
Your topic title refers to MQL5 Standard Library, but keep referencing to the MQL4 documentation. Which is it — MQL5 or MQL4?
I am using Panel And Dialogs from MQL5 Standard Library, but it works in MetaTrader4,
I am developing MQL4
I am sorry for confusion,
Then, please correct your topic title to say MQL4 and not MQL5. They are different libraries, even if similar.
The Panel and Dialogs are just classes that use basic Chart Graphical Objects to implement them. The Panel and Dialogs classes themselves don't have methods for directly accessing the Tooltip. So you will have to extend the classes with your own implementations or just access the graphical object themselves directly and set the tooltip with ObjectSetString and OBJPROP_TOOLTIP.
Identifier
Description
Property Type
OBJPROP_TOOLTIP
The text of a tooltip. If the property is not set, then the tooltip generated automatically by the terminal is shown. A tooltip can be disabled by setting the "\n" (line feed) value to it
string
Then, please correct your topic title to say MQL4 and not MQL5. They are different libraries, even if similar.
The Panel and Dialogs are just classes that use basic Chart Graphical Objects to implement them. The Panel and Dialogs classes themselves don't have methods for directly accessing the Tooltip. So you will have to extend the classes with your own implementations or just access the graphical object themselves directly and set the tooltip with ObjectSetString and OBJPROP_TOOLTIP.
Identifier
Description
Property Type
OBJPROP_TOOLTIP
The text of a tooltip. If the property is not set, then the tooltip generated automatically by the terminal is shown. A tooltip can be disabled by setting the "\n" (line feed) value to it
string
Okay, topic title has been updated ;)
Thanks a lot!
Thanks to You my work is moving forward, it is really one of last problems with GUI that I couldn't find solution.
Have a great day Fernando
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
I have question, which method from Panel and Classes Library is responsible for displaying Pop_up with item description ?
I can see it is predefinied somewhere, cause after implement CLabel object in my AppDialog I can see this pop-up, but have no idea, how to edit its content.
Of course I have found it here: https://docs.mql4.com/constants/chartconstants/charts_samples#chart_show_object_descr
But I believe there is faster way, and I would like to use way provided by MQL5 Standard Libary
Any idea ?