FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with @K picture clause
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
Problem with @K picture clause
Posted: Thu Oct 25, 2007 07:55 PM

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

Posts: 243
Joined: Wed Sep 19, 2007 04:32 PM
Problem with @K picture clause
Posted: Thu Oct 25, 2007 11:26 PM

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

Oscar A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Problem with @K picture clause
Posted: Fri Oct 26, 2007 01:24 AM
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


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
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Problem with @K picture clause
Posted: Fri Oct 26, 2007 02:47 AM

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
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
Problem with @K picture clause
Posted: Fri Oct 26, 2007 12:52 PM

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

Continue the discussion