Hello,
I have these functions:
I am trying to make the dialog box to open in the same place where it was last time before closed it. So I call PositionSave() in OnDeinit() and PositionGet() in the OnInit(). But something is wrong because is not working ( it is opening with diferent shape). I use the same functions on another dialog box in a indicator. This one is an EA. Kindly advice!
I don't know how the dialogs library updates the position of the dialog but it probably is on drag end so , if you place a change detector on the events code under the passing of the event to the dialog
if(AppDialogTop!=MyDialog.Top()||AppDialogLeft!=MyDialog.Left()){
}
and do the save inside those.
If the dialogs library updates this on mouse move though you'll need to establish the drag end (if detectable) in a custom way.
(Also ,different shape as in the contents of the box have an offset ? If yes the above may not be the solution)I don't know how the dialogs library updates the position of the dialog but it probably is on drag end so , if you place a change detector on the events code under the passing of the event to the dialog
and do the save inside those.
If the dialogs library updates this on mouse move though you'll need to establish the drag end (if detectable) in a custom way.
(Also ,different shape as in the contents of the box have an offset ? If yes the above may not be the solution)This is what I got after I reopen
- 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 these functions:
I am trying to make the dialog box to open in the same place where it was last time before closed it. So I call PositionSave() in OnDeinit() and PositionGet() in the OnInit(). But something is wrong because is not working ( it is opening with diferent shape). I use the same functions on another dialog box in a indicator. This one is an EA. Kindly advice!