 |
|
 |
I really liked your control a lot!
I needed something like this for a .NET Compact Framework application so I translated it to .NET in C# and it is working great. Since the Compact Framework does not support gradients, I had to mimic it with some extra code. If this was used in the full .NET framework, then the native GDI+ Gradient would work just as well.
If anyone is interested in this code I can upload it somewhere and provide a link.
|
|
|
|
 |
|
 |
I'd like to have the c# traslation.
Many Thanks, Luca.
|
|
|
|
 |
|
|
 |
|
 |
Nicely done control
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
 |
|
 |
Modifying the demo in OnButton1 from m_meter.setValue(40); to m_meter.setValue(-40); leaves the control set at zero. Changing the function so as to sweep from -40 to 40 in increments of 1 every half second causes no change until the value becomes positive. Also, you might want to implement region clipping when text exits the boundary 'cause the numbers overrun the meter casing. Otherwise, the control looks very nice.
del Fuego
|
|
|
|
 |
|
|
 |
|
 |
and also, why are those data member with the public visibility ??
public:
HWND hl;
int w,h;
int n;
int c1,c2,c3,c4,c5,c6,c7,c8;
int t;
double min,max,v,amp;
|
|
|
|
 |
|
 |
public is not required. You can changed it to private.
|
|
|
|
 |
|
 |
Lingsong wrote: public is not required. You can changed it to private.
hey, thanksfully, i know that !!! but i just quoted you code !
|
|
|
|
 |
|
|
 |
|
 |
As mentioned last March when the control was first published, it did not work for negative values then, and it still does not do so now. In addition, clipping needs to be implemented because at times the numbers overwrite the casing.
Otherwise, it is an attractive control.
del Fuego
|
|
|
|
 |
|
 |
you provided a demo compiled in debug mode.
please change it with release mode compiled exe.
also, please remove from your demo zip the files .aps, .ncb, .opt, .clw and .plg. these files are unnecessary for distributing a workspace.
thanks
|
|
|
|
 |
|
 |
ToXCCCT, you are a real dickhead, sir.
you have nothing else to say but complain about the size of his EXE??? Is it because the size of his EXE is bigger then the size of your little WEE WEE???
|
|
|
|
 |
|
|
 |
|
 |
Lingsong wrote: Thanks. I have done.
really ? i still see the old zip content... have you uploaded the new zip, with the same name ?
do the link fit the zip file ?
|
|
|
|
 |
|
 |
not got better things to moan about Toxcct?
Nice job Lingsong.
|
|
|
|
 |
|
 |
Steve_pqr wrote: not got better things to moan about Toxcct?
i'm not moanning anything, nor saying what he did wasn't good.
i just notify him that he could reduce the size of his zips by 3 or 4
|
|
|
|
 |
|
 |
who's Mr Grumpy this morning!
|
|
|
|
 |
|
 |
are you Kyle ?
|
|
|
|
 |
|
 |
Kyle who?...
|
|
|
|
 |
|
 |
I thought you would know...
|
|
|
|
 |
|
 |
Never heard of Kyle - you seem to have calmed down now though, the happy pills working now are they?
|
|
|
|
 |
|
|
 |
|
 |
Ok, Ok - I get it!!;)
Ou est vous en France?
|
|
|
|
 |
|
 |
Nantes normalement, mais je suis en déplacement depuis décembre, et je travaille donc à Paris depuis bientot 5 mois
n' you ?
|
|
|
|
 |