Problem with @K picture clause

Post Reply
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Problem with @K picture clause

Post by Randal »

All,

I have a problem when using "@K" picture clause. If I have several controls on a window or dialog and the user tabs or presses enter to move through the controls the get text is correctly deleted if they user types a character in a get. However, if the user clicks on a control using the mouse and types a character the text of the get is not deleted and the character typed is simply inserted (or overwrites) the text in the control.

Can someone confirm (or not) this problem?

Using Fivewin April 2006 & xHarbour.

Thanks,
Randal Ferguson
User avatar
Blessed
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.
Contact:

Post by Blessed »

I have experienced the same problem with FWH 2.6 and xHabour 0.99.2

My English is not very good, please excuse me :)

Regards from Honduras
_ A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Randal,

I had a problem with the @K picture also, but I don't remember exactly what the problem was. I made this change to the goHome() method of the TGet class (version 7.05).

Try it, and if it works for you, then perhaps Antonio will add this fix to FWH.

James

Code: Select all

METHOD GoHome() CLASS TGet

   ::oGet:Home()
   //if ::oGet:Type == "N"  // flag to clear buffer if typing is detected
   if ::oGet:Type == "N" .or. "K" $ upper(::oGet:Picture)  // J Bott
      ::oGet:Clear := .t.
   endif
   ::SetPos( ::oGet:Pos )

return Self
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

Mr James

I too have the same problem. But your fix has not solved the problem for me. If the user clicks on the get, despite the @K, the get is not cleared.
Regards

G. N. Rao.
Hyderabad, India
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Post by Randal »

James,

Thanks for the update however it did not work for me.

Thanks guys for confirming this problem. To clarify, I'm using xHarbour 99.70.

Antonio, can you help us out here?

Thanks,
Randal Ferguson
Post Reply