Download MetaTrader 5

missing buttons on expert properties window - page 2

To add comments, please log in or register
qjol
3243
qjol  

and what about a MessageBox launched by a script (without "#property show_inputs")

does it show the buttons ok and cancel ?

Sameer
804
Sameer  

it shows two buttons , OK and cancel ,

but it shows them in different language !!!!

I have used this code.


//+------------------------------------------------------------------+
//|                                            Possible_Messagebox_Bug.mq4 |
//|                      Copyright © 2007, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"
#include <WinUser32.mqh>

bool AutoPlaceOrders_On = false;

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   if (!AutoPlaceOrders_On)
     int temp = MessageBox("A Message...","*** A Heading ***",MB_YESNO|MB_ICONQUESTION);
    else temp = 0;
    
    if (AutoPlaceOrders_On || temp == IDYES)
     Print("Placing Orders...");
    else Print("Not Allowed...");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
   Print("Main Sub...");
//----
   return(0);
  }
//+------------------------------------------------------------------+
Sameer
804
Sameer  

anyone ? help !

currently we are pressing "Enter" button , to get it on the chart. It is just another way to press "Ok"

12
To add comments, please log in or register