#include <Controls\Dialog.mqh> #include <Controls\Label.mqh> CAppDialog MyAppDialog; CPanel MyPanel; CLabel MyLabel; //-------------------------------------------------------------------- int OnInit() { MyAppDialog.Create(0,"MyAppDialog",0,10,20,300,300); MyPanel.Create(0,"MyPanel",0,10,20,100,80); MyPanel.ColorBackground(clrLightGray); /*MyPanel.Text("Panel"); MyPanel.Color(clrBlue); MyPanel.Font("Arial Bold"); MyPanel.FontSize(8);*/ MyLabel.Create(0, "Label-1", 0, 30, 40, 0, 0); MyLabel.Text("Panel"); MyLabel.Color(clrBlue); MyLabel.Font("Arial Bold"); MyLabel.FontSize(8); MyAppDialog.Add(MyLabel); MyAppDialog.Add(MyPanel); MyAppDialog.Run(); return(INIT_SUCCEEDED); }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This code will display the AppDialog and Panel.
The Panel color shows as LightGray, but I cannot make the Text appear.
This may be a simple example but I cannot make it work. Any ideas?
Thanks for the help.