Still trying to figure out how to save any settings changes when it comes to the dialog box. Just thought I would give it one last shot to see if anyone could help me. No worries if no replies. Appreciate anyone taking the time to even scan over this.
Again, Cheers and thank you in advance.
Hello, I am using mainInterface.Height(YourValue); and mainInterface.Move(YourXPos,YourYPos); to change the postion of the Interface. Unfortunately I do have got another problem. Even if i resized the window by setting Buttom, Top, Left and Right, it remembers the original first size and resizes back to them when it's agian maximized. So maybe you we could find a solution together or somebody else knows about that.
Best regards, and have nice Christmas
Hi everyone,
I'm starting to learn more about GUI panels using the appdialog box to add a panel to an indicator I'm writing. I have a basic understanding of how to create a panel and various buttons and labels. I just had one question about saving the location of the panel.
If I move the panel on the chart and then change symbols or change time frames it resets the panel to the original location. I know on the "OnDeinit" section it has the line to destroy the panel so I'm guessing that is why its changing it back to the original spot when it loads it back up. I'm just curious if there is a way to save the location if you move the panel so you don't have to move it every time you change something.
Any advice would be greatly appreciated. Here is the code I created for a basic panel just to test stuff out.
Cheers, and thank you in advance.
Panels are ****, place it in an indicator window, this dont affect the chart
mainInterface.Create(0,"TestPanel",0,100,150,292,350); //main panel
mainInterface.Run();
I think you miss: mainInterface.Run(), I test it, it run ok
This is your best solution:
CAppDialog mainInterface; int PanelXlocation=mainInterface.Left(); int PanelYlocation=mainInterface.Top();
If you want Panel Width and Panel Height: use
mainInterface.Width() mainInterface.Height()
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everyone,
I'm starting to learn more about GUI panels using the appdialog box to add a panel to an indicator I'm writing. I have a basic understanding of how to create a panel and various buttons and labels. I just had one question about saving the location of the panel.
If I move the panel on the chart and then change symbols or change time frames it resets the panel to the original location. I know on the "OnDeinit" section it has the line to destroy the panel so I'm guessing that is why its changing it back to the original spot when it loads it back up. I'm just curious if there is a way to save the location if you move the panel so you don't have to move it every time you change something.
Any advice would be greatly appreciated. Here is the code I created for a basic panel just to test stuff out.
Cheers, and thank you in advance.