April 30, 2024, 01:06:49 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


SlimJim Antenna calculator

Started by Egil, August 31, 2010, 11:49:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Egil

Uploading this calculator again, since it was lost when the site was hacked.
When browsing this forum, and the IB Std section of CodingMonkeys, there are several post discussing difficulties when detecting whether the Enter Key  is pressed or not.
And several posts show the workaround:

DECLARE "user32",TestKey alias GetAsyncKeyState(vKey:int),int

and using this in the Main handler like this:

if TestKey(13) <> 0 :' ENTER is pressed
fq$ = GETCONTROLTEXT (win, 1)
calc(fq$)
endif


But I have not been able to notice any difference when using GETKEYSTATE instead:

if GETKEYSTATE(13) <> 0
fq$ = GETCONTROLTEXT (win, 1)
calc(fq$)
endif



Have fun!

Egil
Support Amateur Radio  -  Have a ham  for dinner!