[hpsdr] KK Kuestion
Mark Amos
mark at amos-family.com
Fri Jul 31 15:17:57 PDT 2009
George,
Yes, that was the problem. Thanks!
Geez, do I feel silly. I was cutting and pasting code from other parts of
the app for the code that I needed and picked some event code from an object
that had a SelectedIndexChanged event... instead of the ValueChanged bit.
I didn't know about the properties/event/double-click-auto-generate
feature... I just loaded the C# IDE this week, so I'm a real newbie with the
environment. I need to learn how to effectively debug in this environment -
I should have been able test whether the event was firing. I've built
myself a little "test" project to learn more of the basics and to play
around with the forms/elements in a minimal environment. Not used to these
GUI bits.
As at work, one good answer earns another question. Is there a trick to
"decimate" the up/down events (so that the event doesn't fire until the user
lifts his finger off the up or down control? Seems like a waste to fire on
each event.) I think I could do it with a timer, but just thought there
might be a built-in trick/best practice for this kind of thing...
In any case, thank you indeed!!
Mark
------------------------------
Message: 25
Date: Fri, 31 Jul 2009 14:21:34 -0400
From: "george byrkit" <ghbyrkit at chartermi.net>
Subject: [hpsdr] KK Kquestion
To: <hpsdr at lists.openhpsdr.org>
Message-ID: <822DC107D69D49A49F39891F4DCF8924 at gblap>
Content-Type: text/plain; charset="us-ascii"
Dear Mark,
That branch has just shown up in the KISS branches! I opened the solution
and found this:
Set_CWPitch is a numeric up/down control. As such, it doesn't have a
SelectedIndexChanged event. I'm not sure what you have written, but it
isn't hooked to an event handler. You want to select the control, view
properties, select events, and double-click on the value region of the
ValueChanged property. This will auto-generate (and hook up) the desired
event. Put your code there. Bet it works then!
73,
George Byrkit, K9TRV
1249078677.0
More information about the Hpsdr
mailing list