IonicWind Software

Creative Basic => GUI Programs => Topic started by: Egil on August 31, 2010, 11:49:38 AM

Title: SlimJim Antenna calculator
Post by: Egil on August 31, 2010, 11:49:38 AM
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