Page 1 of 1

Problem with @K picture clause

PostPosted: Thu Oct 25, 2007 7:55 pm
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

PostPosted: Thu Oct 25, 2007 11:26 pm
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

PostPosted: Fri Oct 26, 2007 1:24 am
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  Expand view
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

PostPosted: Fri Oct 26, 2007 2:47 am
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.

PostPosted: Fri Oct 26, 2007 12:52 pm
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