FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper Undo FW 2.3
Posts: 3
Joined: Wed Jan 25, 2006 09:52 PM
Undo FW 2.3
Posted: Wed Jan 25, 2006 09:55 PM

There was a change to the Tget class sometime in 2002 where the popup menu code initiated by a right click was bypassed in favor of Windows default popup menu. For some reason, I cannot get the Undo option to be enabled when there is a change to the get value. Does anyone remember this issue and more importantly, how to fix it.

Thanks

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Undo FW 2.3
Posted: Wed Jan 25, 2006 10:58 PM

Andy,

Please use the popup to paste some text in the GET and then open it again and check if the undo item is enabled.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3
Joined: Wed Jan 25, 2006 09:52 PM
Undo FW 2.3
Posted: Thu Jan 26, 2006 06:14 PM

I did and there is no change -- Undo is still disabled. FYI, this is 16-Bit FW.

Here is the code:

//----------------------------------------------------------------------------//

METHOD RButtonDown( nRow, nCol, nFlags ) CLASS TGet

if GetFocus() != ::hWnd
::SetFocus()
SysRefresh() // In case there is a VALID somewhere
if GetFocus() != ::hWnd
return nil
endif
endif

if ::bRClicked != nil
return Eval( ::bRClicked, nRow, nCol, nFlags )
endif

return nil // Invokes default popup menu

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Undo FW 2.3
Posted: Fri Jan 27, 2006 10:22 AM

Andy,

Change the method this way:

METHOD RButtonDown() VIRTUAL

at the CLASS ... ENDCLASS section and comment out the below method code and try it again.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3
Joined: Wed Jan 25, 2006 09:52 PM
Undo FW 2.3
Posted: Fri Jan 27, 2006 10:18 PM

Antonio,

It still doesn't work. However, I did test it with 32-Bit FW and it does work. I am wondering if it's a WinAPI thing. Can you test it in 16-Bit with TestGet2.prg and let me know. Thanks.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Undo FW 2.3
Posted: Fri Jan 27, 2006 11:20 PM
Andy,

We have tested samples\TestGet2.prg using FW 2.7 for Clipper, and it works ok. If we paste something then the undo item is available. See the picture (in spanish):

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion