Daniel,
I did some Tests ( changes ) with Class TMeterEx,
to create a Vertical running Gradient.
It works, but stops at the End at Center ( must be complete Green ).
Is it possible to add this Function to the Class ?
@ 280, 40 METEREX oMeter3 VAR nActual3 SIZE 135, 20 TOTAL 50 PIXEL;
GRADIENT CHUNK { { 0, 255, 6472704 }, { 0, 6472704, 255 } }; // Defined Red / Green
GRADIENT TRACK { { 0, 255, 255 }, { 0, 255, 255 } }; // Start with 100 % red
ROUND LINECOLORS CLR_BLACK, CLR_WHITE
For my Test I changed in Method Paint :
GradientFill( ::hDC, 0, 0, ::nHeight, ::nWidth, ::aGrad, .F. ) // ! ::lVertical )
GradientFill( ::hDC, nTop, nLeft, nHeight, nWidth, ::aGradMet, .F. ) // ! ::lVertical )
Best Regards
Uwe