how can read a value inside a editbox in paneldialog.mqh ?

 

Hi guys  i have  a part of panel dialog that create a  edit box 

 
//+------------------------------------------------------------------+
//| Create the "Edit_Lott" button                                    |
//+------------------------------------------------------------------+
bool CPanelDialog::CreateEdit(void)
  {
//--- coordinates
   int x1=101;//INDENT_LEFT+90;
   int y1=11;//INDENT_TOP;
   int x2=136;//ClientAreaWidth()-(INDENT_RIGHT+175+CONTROLS_GAP_X);
   int y2=31;//y1+EDIT_HEIGHT;
//--- create
   if(!m_edit.Create(m_chart_id,m_name+"Edit",m_subwin,x1,y1,x2,y2))
      return(false);
   if(!m_edit.ReadOnly(false))
      return(false);
   if(!Add(m_edit))
      return(false);
   m_edit.Alignment(WND_ALIGN_WIDTH,INDENT_LEFT,0,INDENT_RIGHT+BUTTON_WIDTH+CONTROLS_GAP_X,0);
   m_edit.Text(LotSize); 
//--- succeed

   return(true);
  }

for write  inside i can use this function

void CPanelDialog::OnClickButtonSell(void)
  {
   m_edit.Text(__FUNCTION__);
  }
  but if  i want   read ?? how  can do ?

thanks

 
If interprete your question correctly , you want to select a panel ?
If not i dont now what you try to archive.

If yes:
Look in the discribtion



inherit from Class CObject
Prev, Prev, Next, Next, Save, Load, Type, Compare
 
inherit from Class CWnd
Destroy, OnMouseEvent, Name, ControlsTotal, Control, ControlFind, Rect, Left, Left, Top, Top, Right, Right, Bottom, Bottom, Width, Width, Height, Height, Size, Size, Size, Move, Move, Shift, Contains, Contains, Alignment, Align, Id, Id, IsEnabled, Enable, Disable, IsVisible, Visible, Show, Hide, IsActive, Activate, Deactivate, StateFlags, StateFlags, StateFlagsSet, StateFlagsReset, PropFlags, PropFlags, PropFlagsSet, PropFlagsReset, MouseX, MouseX, MouseY, MouseY, MouseFlags, MouseFlags, MouseFocusKill, BringToTop
 

inherit from Class CWndObj
OnEvent, Text, Text, Color, Color, ColorBackground, ColorBackground, ColorBorder, ColorBorder, Font, Font, FontSize, FontSize, ZOrder, ZOrder
 
Stefano Cerbioni:

Hi guys  i have  a part of panel dialog that create a  edit box 

for write  inside i can use this function

void CPanelDialog::OnClickButtonSell(void)
  {
   m_edit.Text(__FUNCTION__);
  }
  but if  i want   read ?? how  can do ?

thanks

Isn´t it simply m_edit.Text(); ?
In case of doubts natively:

string mytext=__MT_Object_GetText(NULL, m_edit.Name());

string __MT_Object_GetText(long chartid, string name)
   {
   if (chartid==NULL) chartid=__CHARTID;
   string text=__MT_Object_GetString(chartid,name,OBJPROP_TEXT);
   if (text=="\n ") text=NULL;
   return text;
   }       

string __MT_Object_GetString(long chartid, string &name, ENUM_OBJECT_PROPERTY_STRING id, int modifier=0)
   {
   string value=NULL;
   ::ObjectGetString(chartid,name,id,modifier,value);
   return value;
   }