Hi ...is there a way to open Dialog window using this version of the library. Dialog window is working only with color picker , and if I try to create one just empty to insert some table or extra buttons then is not working at all, just is on and is not movable .
Please help ..this is absolutely beautiful library, and thank you very much for sharing but this detail is reducing a lot the functionality
if we use single window everything is ok only dialog window is not working correctly, or this was a plan from the beginning ??:)
PS
In case if I'm wrong is there example how to open a dialog window and have single button inside or something else (just not color picker) ??
Hi ...is there a way to open Dialog window using this version of the library. Dialog window is working only with color picker , and if I try to create one just empty to insert some table or extra buttons then is not working at all, just is on and is not movable .
Please help ..this is absolutely beautiful library, and thank you very much for sharing but this detail is reducing a lot the functionality
if we use single window everything is ok only dialog window is not working correctly, or this was a plan from the beginning ??:)
PS
In case if I'm wrong is there example how to open a dialog window and have single button inside or something else (just not color picker) ??
Im using MT5
Hi Marcin, write your function for crreate objects(dialog windows included). For example:
First, declare the dialog windows and other controls(buttons, textboxes,checkboxes and whatever) in the Program.mqh:
//--main window function:bool CProgram::CreateWindow(conststring caption_text)
{
//--- Add the window pointer to the window array
CWndContainer::AddWindow(m_window);
//--- Coordinatesint x=(m_window.X()>0) ? m_window.X() : 20;
int y=(m_window.Y()>0) ? m_window.Y() : 30;
//--- Properties
m_window.XSize(253);
m_window.YSize(350);
m_window.IsMovable(true);
m_window.Alpha(200);
m_window.IconXGap(3);
m_window.IconYGap(2);
m_window.WindowType(W_MAIN);
m_window.CloseButtonIsUsed(true);
m_window.CollapseButtonIsUsed(true);
m_window.TooltipsButtonIsUsed(false);
//--- Set the tooltips
m_window.GetCloseButtonPointer().Tooltip("Close");
m_window.GetCollapseButtonPointer().Tooltip("Collapse/Expand");
// m_window.GetTooltipButtonPointer().Tooltip("Tooltips");//--- Creating a formif(!m_window.CreateWindow(m_chart_id,m_subwin,caption_text,x,y))
return(false);
//---return(true);
}
//----for dialog(subwindow): bool CProgram::CreateSubWindow(CWindow &win,constint xSize,constint ySize,conststring caption_text)
{
//--- Add the window pointer to the window array
CWndContainer::AddWindow(win);
//--- Coordinatesint x=(win.X()>0) ? win.X() : 150;
int y=(win.Y()>0) ? win.Y() : 70;
//--- Properties
win.XSize(xSize);//350
win.YSize(ySize);//170
win.IsMovable(true);
win.Alpha(200);
win.IconXGap(3);
win.IconYGap(2);
win.WindowType(W_DIALOG);
win.CloseButtonIsUsed(true);
win.CollapseButtonIsUsed(true);
win.TooltipsButtonIsUsed(false);
// m_window.IconFile("\\Images\\EasyAndFastGUI\\Icons\\bmp16\\advisor.bmp");//--- Set the tooltips
win.GetCloseButtonPointer().Tooltip("Close");
win.GetCollapseButtonPointer().Tooltip("Collapse/Expand");
// m_window.GetTooltipButtonPointer().Tooltip("Tooltips");//--- Creating a formif(!win.CreateWindow(m_chart_id,m_subwin,caption_text,x,y))
return(false);
//---return(true);
}
For other controls(buttons,textboxes..) use the mainpoiner(window or tab) and the index of it(“windex” in my case) from the beginning:
bool CProgram::CreateTextBox(CTextBox &t_box,CWindow &win,constint windex,constint x_gap,constint y_gap,constint Xsize,constint Ysize,
string text,constuint line_index,constint fontSize,constbool mlinemode)
{
t_box.MainPointer(win);
//--- Properties
t_box.XSize(Xsize);
t_box.YSize(Ysize);
t_box.FontSize(fontSize);
t_box.Font("Calibri"); // Consolas|Calibri|Tahoma
t_box.TextYOffset(2);
t_box.TextXOffset(2);
t_box.BackColor(clrWhite);
t_box.BorderColor(C'150,170,180');
t_box.LabelColor(clrBlack);
t_box.WordWrapMode(true);
t_box.ReadOnlyMode(false);
t_box.IsCenterText(true);
t_box.MultiLineMode(mlinemode);
t_box.AutoYResizeBottomOffset(3);
t_box.AutoXResizeRightOffset(3);
t_box.AddText(line_index,text);
t_box.IsVisible(true);
//--- Attach to tab// tab.AddToElementsArray(tindex,t_box);//--- Create a controlif(!t_box.CreateTextBox(x_gap,y_gap))
return(false);
//--- Add the object to the common array of object groups
CWndContainer::AddToElementsArray(windex,t_box);
return(true);
}
//----------win button--------bool CProgram::CreateIconButton(CButton &i_but,CWindow &win,constint windex,constint x_gap,constint y_gap,constint Xsize,constint Ysize,
string text, bool twostate,color bckclr)
{
//--- Store the pointer to the main control
i_but.MainPointer(win);
//--- Properties
i_but.XSize(Xsize);
i_but.YSize(Ysize);
i_but.IconXGap(3);
i_but.IconYGap(3);
i_but.TwoState(twostate);
i_but.BackColor(bckclr);
i_but.BorderColor(clrBlack);
i_but.IsCenterText(true);
i_but.IsPressed(false);
if(i_but.TwoState()==true)
{i_but.BackColorPressed(bckclr);
i_but.BackColor(clrSilver);}
else
i_but.BackColor(bckclr);
//--- Attach to tab// tab.AddToElementsArray(tindex,i_but);//--- Create a controlif(!i_but.CreateButton(text,x_gap,y_gap))
return(false);
//--- Add the pointer to control to the base
CWndContainer::AddToElementsArray(windex,i_but);
return(true);
}
//-----------tab button--------------bool CProgram::CreatetabIconButton(CButton &i_but,CTabs &tab,constint tindex,constint x_gap,constint y_gap,constint Xsize,constint Ysize,
string text, bool twostate,color bckclr)
{
//--- Store the pointer to the main control
i_but.MainPointer(tab);
//--- Properties
i_but.XSize(Xsize);
i_but.YSize(Ysize);
i_but.IconXGap(3);
i_but.IconYGap(3);
i_but.TwoState(twostate);
i_but.BackColor(bckclr);
i_but.BorderColor(clrBlack);
i_but.IsCenterText(true);
i_but.IsPressed(false);
if(i_but.TwoState()==true)
{i_but.BackColorPressed(bckclr);
i_but.BackColor(clrSilver);}
else
i_but.BackColor(bckclr);
//--- Attach to tab
tab.AddToElementsArray(tindex,i_but);
//--- Create a controlif(!i_but.CreateButton(text,x_gap,y_gap))
return(false);
//--- Add the pointer to control to the base
CWndContainer::AddToElementsArray(0,i_but);
return(true);
}
//----check boxes----------bool CProgram::CreateCheckBox(CCheckBox &check,CWindow &win,constint windex,constint x_gap,constint y_gap,constint Xsize,constint Ysize,string text)
{
//--- Store the pointer to the main control
check.MainPointer(win);
//--- Set properties before creation
check.XSize(Xsize);
check.YSize(Ysize);
check.IsPressed(false);
//--- Create a controlif(!check.CreateCheckBox(text,x_gap,y_gap))
return(false);
//--- Add the object to the common array of object groups
CWndContainer::AddToElementsArray(windex,check);
return(true);
}
Good afternoon, compiled build 15 of the library under mt4, created a panel with tables, but the tables periodically flicker, under mt5 also noticed this. If I do not pass a parameter to the method, the flickering disappears, but the data in the table does not change. test code attached in the archive.
if(m_counter2.CheckTimeCounter())
{
SetValuesToTradeTable();
UpdateTradeTable(true);//--- Get the symbols of open positionsstring symbols_name[];
int symbols_total=GetPositionsSymbols(symbols_name);
//--- Update values in the table
SetValuesToPositionsTable(symbols_name);
//--- Sort if this has already been done by the user before the update//m_table_positions.SortData((uint)m_table_positions.IsSortedColumnIndex(),m_table_positions.IsSortDirection());//--- Update tableUpdatePositionsTable(true);
}
Hi Marcin, write your function for crreate objects(dialog windows included). For example:
First, declare the dialog windows and other controls(buttons, textboxes,checkboxes and whatever) in the Program.mqh:
In the MainWindow.mqh:
wow ..thank You for answer ..just to confirm from which article did You download the library ...my progress is 1 step forward, but all the object linked with dialog box are not draggable and not disappearing properly ...If You could send me also link to the article or just confirm if link below is correct :) ..from where did You download your library
wow ..thank You for answer ..just to confirm from which article did You download the library ...my progress is 1 step forward, but all the object linked with dialog box are not draggable and not disappearing properly ...If You could send me also link to the article or just confirm if link below is correct :) ..from where did You download your library
I will keep trying to have it working :) i have to not see some small mistake in my code :) ...thank You again
Hi Marcin, I downloaded the EasyAndFastGUI Build 16 from https://www.mql5.com/en/articles/3527 then replaced updates: Table.mqh in MQL5\Include\EasyAndFastGUI\Controls\ and Keys.mqh
The first article Graphical Interfaces I: Preparation of the Library Structure (Chapter 1) explains in detail what this library is for. You will find a list of articles with links at the end of each chapter. There, you can also download a complete version of the library at the current stage of development. Files must be placed under the same...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi ...is there a way to open Dialog window using this version of the library. Dialog window is working only with color picker , and if I try to create one just empty to insert some table or extra buttons then is not working at all, just is on and is not movable .
Please help ..this is absolutely beautiful library, and thank you very much for sharing but this detail is reducing a lot the functionality
if we use single window everything is ok only dialog window is not working correctly, or this was a plan from the beginning ??:)
PS
In case if I'm wrong is there example how to open a dialog window and have single button inside or something else (just not color picker) ??
Im using MT5
In MT4 version SimpleButton lack function to change the button text/caption .
SimpleButton.mqh
Add second line in order to get that functionality. Posted here hope helps someone who needs.
the library from this article is only for MT5 and if someone would like to change the text :
lableClassDeclarationName.LabelText(textValue); lableClassDeclarationName.Update(true);Is there any plans for a visual form designer?
Previously thought about it, but unfortunately there is no time for it yet.
A new version of the library will be released soon. It will be much easier and faster to create GUI. After that we can try to create a visual editor.
Hi ...is there a way to open Dialog window using this version of the library. Dialog window is working only with color picker , and if I try to create one just empty to insert some table or extra buttons then is not working at all, just is on and is not movable .
Please help ..this is absolutely beautiful library, and thank you very much for sharing but this detail is reducing a lot the functionality
if we use single window everything is ok only dialog window is not working correctly, or this was a plan from the beginning ??:)
PS
In case if I'm wrong is there example how to open a dialog window and have single button inside or something else (just not color picker) ??
Im using MT5
Hi Marcin, write your function for crreate objects(dialog windows included). For example:
First, declare the dialog windows and other controls(buttons, textboxes,checkboxes and whatever) in the Program.mqh:
In the MainWindow.mqh:
Good afternoon, compiled build 15 of the library under mt4, created a panel with tables, but the tables periodically flicker, under mt5 also noticed this. If I do not pass a parameter to the method, the flickering disappears, but the data in the table does not change. test code attached in the archive.
Hi Marcin, write your function for crreate objects(dialog windows included). For example:
First, declare the dialog windows and other controls(buttons, textboxes,checkboxes and whatever) in the Program.mqh:
In the MainWindow.mqh:
wow ..thank You for answer ..just to confirm from which article did You download the library ...my progress is 1 step forward, but all the object linked with dialog box are not draggable and not disappearing properly ...If You could send me also link to the article or just confirm if link below is correct :) ..from where did You download your library
https://www.mql5.com/en/code/19703
I will keep trying to have it working :) i have to not see some small mistake in my code :) ...thank You again
I've sorted out the flickering of the table, or rather the problem disappeared when writing data to a cell with the parameter true
and calling the method of updating the table without the parameter
wow ..thank You for answer ..just to confirm from which article did You download the library ...my progress is 1 step forward, but all the object linked with dialog box are not draggable and not disappearing properly ...If You could send me also link to the article or just confirm if link below is correct :) ..from where did You download your library
https://www.mql5.com/en/code/19703
I will keep trying to have it working :) i have to not see some small mistake in my code :) ...thank You again
Hi Marcin, I downloaded the EasyAndFastGUI Build 16 from https://www.mql5.com/en/articles/3527 then replaced updates: Table.mqh in MQL5\Include\EasyAndFastGUI\Controls\ and Keys.mqh
in MQL5\Include\EasyAndFastGUI\ from the article: https://www.mql5.com/en/articles/4715.
Recompiled the library, it says that the class is not found
class 'CWindow' is undefined Element.mqh