el-salam 3leekom
ana ramsa bent be lines 3ady we 7ta colors 3la buttons gnb el simpleopenglcontrol bt3ha 3yza ama el user y3ml click 3la button we ydoos 3la ay mkaan fel bent ylwnoh bnfs el color dh
ana 3mla variable color we m5lyah lma ydos 3la el red button mslaan y5ly el color dh =1 ...we fe function
simpleOpenGlControl1_MouseClick
if ((197 <= e.X) && (e.X <= 265) && (136 <= e.Y) && (e.Y <= 226))
{
if (color == 1)
{
Gl.glTranslated(130, 300, 0);
Drawlinefillbody();//btrsm square be gl_quads
}
}
we msh bylwn 7aga 7'ales we msh byrsm el square asln 3shan msh fe function paint wla eh ana msh 3arfa m3 en el coordinates sa7
we so2al kman m3lsh :D lw ana 3ndy rsmteen bel opengl we 2 button we 3yzah lma ydos el button elawl mslan ytl3loh el rasma el 2ola fe simpleopenglcontrol ezay....thnx
salaaam
