Page 1 of 1
Any change in ALT-Z with FWH27?
Posted: Fri Jan 13, 2006 3:46 pm
by John
Hi,
in FWH25, a button like &Zoek (Search) worked when using the ALT key in combination with the Z, and standing in a GET. Since i've upgraded (FWH27/xHarbour 0.99.51), using the ALT-Z combination clears the GET, and that's it.
Any ideas how to get my original functionality back?
Thanks in advance!
John.
Posted: Fri Jan 13, 2006 6:38 pm
by Antonio Linares
John,
Do you see the underscore "_" under the "Z" ? Could you please post a screenshot here ? (use imageshack.com to host the image)
Posted: Sat Jan 14, 2006 7:24 am
by John
Hi Antonio,
When pressing the ALT key, the underscores appear.
This is what's in my RC file:
PUSHBUTTON "&Zoek", 303, 126, 224, 50, 14
...
EDITTEXT 305, 14, 224, 110, 13
And in my app:
REDEFINE BUTTON oZoek ID 303 OF oDlg
....
REDEFINE GET oZoekString VAR cZoekString ID 305 of oDlg valid if(GETKEYSTATE(VK_RETURN),(ZoekString(cBestand, cZoekString,oBrw),oZoekString:oJump:=oZoekString,.T.),.T.)
The function ZoekString does the actual searching in the DBF.
Thanks in advance,
John.
Posted: Sat Jan 14, 2006 8:51 am
by Antonio Linares
John,
This sample works ok:
http://hyperupload.com/download/d385d963/john.zip.htmlCould you please test it there and let us know if it works ok for you ? Thanks.
Posted: Sat Jan 14, 2006 9:03 am
by John
Antonio,
your example works fine. So it seems the extra code i use, makes the contents of the GET dissapear. Strangely enough, this worked in the previous version...
Thanks,
John.
Posted: Sat Jan 14, 2006 9:44 am
by Antonio Linares
John,
If you could provide us a sample to reproduce the problem, that would help very much. Thanks.
Posted: Sun Jan 15, 2006 8:05 am
by Antonio Linares
John,
Thanks for your emailed sample. Already fixed in your code and sent back to you.