SOME! Dialog Elements are not visible

 

Hello,

i have a strange problem and just want to post it, first, without code.

I have CAppDialog derived Dialog with some CLabels, CButtons etc.

All this in an indicator.
When i attach this Indicator to a chart, all is fine.

Switchting timeframe, all works. All Dialog elements visible.


Now i save the chart as template. So with indicator thats contains my dialog.

Open new chart, load template and now just some of the Dialog elements are visible.


In both cases, OnInit is called.

Where should i look to fix this ?

Thank you

 

On MetaTrader 4 the behaviour when loading indicator per template is much more strange.

The dialog is created twice even the ctor just called once.

<Deleted> This jungle software steals your time!

Sorry, i am really angry how much time you need to invest to workaround the simples task.

Like the jumping dialog, when swiching between chart.

Or, the dialog get's minimized, when switching between chart.
And you get answers that make no sense, like "this is standard windows behaviour"...

No, it is not standard behaviour. It is far away from standard and quality is poor!

 

How to reproduce this: On MT4, go in indicators / Examples / SimplePanel.mq4.

Comment out:

//#property indicator_separate_window


and set

#property indicator_chart_window

Compile. Attach to chart. Save as template. Open new chart. Load this template.

You will see.

(Perhaps support is checking this. If the support likes to make a benefit to his customers, it also checks the problem of flashing frames, when switching between charts

and dialog gets minimized when switching between charts. That would be great. For me, these are 3 fat bugs).

 

The template problem can be fixed by add

int  ret=ObjectsDeleteAll(0);

in function OnInit.

Reason: