Problem with @K picture clause

Problem with @K picture clause

Postby Randal » Thu Oct 25, 2007 7: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
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm

Postby Blessed » 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
User avatar
Blessed
 
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.

Postby James Bott » Fri Oct 26, 2007 1: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


Code: Select all  Expand view  RUN
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
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby nageswaragunupudi » Fri Oct 26, 2007 2: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
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby Randal » 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
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 67 guests