Forum on trading, automated trading systems and testing trading strategies
How to Start with Metatrader 5
RaptorUK, 2013.07.24 10:18
How to post code on this forum . . .
Hi ankitag2010
I am also interested to know the fix for this issue as I have experienced it myself. Have you got around it?
Cheers.
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
Hi
I am using CAppDialog class to create a trading panel with buttons and labels.
using this code for the chart events :-
tradingPanel.ChartEvent(id, lparam, dparam, sparam);
Code of one the button creation:-
bool Testanel::CreateButtonLong(void)
{
//--- coordinates
int x1 = INDENT_LEFT;
int y1 = INDENT_TOP + ( 3 * EDIT_HEIGHT ) + ( 3 * CONTROLS_GAP_Y );
int x2 = x1 + BUTTON_WIDTH;
int y2 = y1 + BUTTON_HEIGHT;
//--- create
if( !button_long.Create( m_chart_id, LongButtonId, m_subwin, x1, y1 ,x2, y2 ))
return(false);
if( !button_long.ColorBackground( clrSpringGreen ))
return(false);
if( !button_long.Text( "Long" ))
return(false);
if( !Add( button_long ))
return(false);
button_long.Alignment( WND_ALIGN_RIGHT, 0, 0, INDENT_RIGHT, 0 );
//--- succeed
return(true);
}
Minimize is working fine but when i Maximize the panel, some of the Buttons just disappear and some of them changes there position.
Labels are in there correct place.
Please help with the issue.