2026-02-24 10:16:05 -05:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| AboutTab.mqh |
|
|
|
|
|
//| Copyright 2025, Niquel Mendoza. |
|
|
|
|
|
//| https://www.mql5.com/es/users/nique_372 |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
#property copyright "Copyright 2025, Niquel Mendoza."
|
|
|
|
|
#property link "https://www.mql5.com/es/users/nique_372"
|
|
|
|
|
#property strict
|
|
|
|
|
|
2026-02-25 11:10:09 -05:00
|
|
|
#ifndef AIDATATASKRUNER_UI_ABOUT_ABOUTTAB_MQH
|
|
|
|
|
#define AIDATATASKRUNER_UI_ABOUT_ABOUTTAB_MQH
|
|
|
|
|
|
|
|
|
|
|
2026-02-24 10:16:05 -05:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
#include "..\\Defines.mqh"
|
|
|
|
|
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
class CTaskRunerAiTabAbout : public CLoggerBase
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
CTextLabel m_label_titulo;
|
2026-02-25 11:10:09 -05:00
|
|
|
CTextBox m_label_text;
|
2026-02-24 10:16:05 -05:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
CTaskRunerAiTabAbout(void) {}
|
|
|
|
|
~CTaskRunerAiTabAbout(void) {}
|
|
|
|
|
|
|
|
|
|
//---
|
|
|
|
|
bool Create(CWndCreate* p, CWindow& main_window, CTabs& general_tabs, int tab_index, int top_gap, int left_gap, int right_gap, int bottom_gap);
|
|
|
|
|
};
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
bool CTaskRunerAiTabAbout::Create(CWndCreate *p, CWindow &main_window, CTabs &general_tabs, int tab_index, int top_gap, int left_gap, int right_gap, int bottom_gap)
|
|
|
|
|
{
|
|
|
|
|
//---
|
2026-02-25 11:10:09 -05:00
|
|
|
int x = left_gap + 5;
|
|
|
|
|
int y = top_gap + 5;
|
2026-02-24 10:16:05 -05:00
|
|
|
|
|
|
|
|
//---
|
|
|
|
|
m_label_titulo.BackColor(AIDATATASKRUNER_COLOR_FONDO);
|
|
|
|
|
m_label_titulo.FontSize(14);
|
|
|
|
|
m_label_titulo.Font("Arial");
|
2026-02-25 11:10:09 -05:00
|
|
|
if(!p.CreateTextLabel(m_label_titulo, "Nique_372 \\ Leo", main_window, 0, general_tabs, tab_index, x +4, y, 150))
|
2026-02-24 10:16:05 -05:00
|
|
|
{
|
|
|
|
|
AIDATATASKRUNER_ERROR_CREATION(m_label_titulo);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2026-02-25 11:10:09 -05:00
|
|
|
y += 25;
|
2026-02-24 10:16:05 -05:00
|
|
|
|
|
|
|
|
|
2026-02-25 11:10:09 -05:00
|
|
|
//--- TextBox
|
|
|
|
|
m_label_text.MainPointer(main_window);
|
|
|
|
|
m_label_text.FontSize(10);
|
|
|
|
|
m_label_text.Font("Arial");
|
|
|
|
|
m_label_text.SelectedBackColor(clrAquamarine);
|
|
|
|
|
m_label_text.DefaultTextColor(clrBlack);
|
|
|
|
|
m_label_text.MultiLineMode(true);
|
|
|
|
|
m_label_text.WordWrapMode(false);
|
|
|
|
|
m_label_text.ReadOnlyMode(true);
|
|
|
|
|
m_label_text.AutoXResizeMode(true);
|
|
|
|
|
m_label_text.AutoXResizeRightOffset(right_gap + 10);
|
|
|
|
|
m_label_text.AutoYResizeMode(true);
|
|
|
|
|
m_label_text.AutoYResizeBottomOffset(bottom_gap + 10);
|
|
|
|
|
m_label_text.SelectedTextColor(clrBlue);
|
|
|
|
|
m_label_text.BackColor(AIDATATASKRUNER_COLOR_FONDO);
|
|
|
|
|
m_label_text.BackColorHover(AIDATATASKRUNER_COLOR_FONDO);
|
|
|
|
|
m_label_text.BackColorPressed(AIDATATASKRUNER_COLOR_FONDO);
|
|
|
|
|
general_tabs.AddToElementsArray(tab_index, m_label_text);
|
2026-02-24 10:16:05 -05:00
|
|
|
|
2026-02-25 11:10:09 -05:00
|
|
|
//--- Cargar texto por defecto
|
|
|
|
|
//
|
|
|
|
|
string arr[] =
|
2026-02-24 10:16:05 -05:00
|
|
|
{
|
2026-02-25 11:10:09 -05:00
|
|
|
"Esta aplicacion fue creada por Leo, con el objetivo de",
|
|
|
|
|
"Automatizar la generacion de datos y entrenamientos de los modelos IA",
|
|
|
|
|
"Creados por AiDataGenByLeo"
|
|
|
|
|
};
|
|
|
|
|
//
|
|
|
|
|
m_label_text.ClearTextBox();
|
|
|
|
|
int size = ArraySize(arr);
|
|
|
|
|
for(int i = 0; i < size; i++)
|
|
|
|
|
{
|
|
|
|
|
if(i == 0)
|
|
|
|
|
m_label_text.AddText(0, arr[i]);
|
|
|
|
|
else
|
|
|
|
|
m_label_text.AddLine(arr[i]);
|
2026-02-24 10:16:05 -05:00
|
|
|
}
|
|
|
|
|
|
2026-02-25 11:10:09 -05:00
|
|
|
//---
|
|
|
|
|
if(!m_label_text.CreateTextBox(x, y))
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
p.AddToElementsArray(0, m_label_text);
|
2026-02-24 10:16:05 -05:00
|
|
|
//---
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
//+------------------------------------------------------------------+
|
2026-02-25 11:10:09 -05:00
|
|
|
#endif // AIDATATASKRUNER_UI_ABOUT_ABOUTTAB_MQH
|