FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse: Message "oCol:bOnPostEdit not defined"
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
xBrowse: Message "oCol:bOnPostEdit not defined"
Posted: Mon Jun 14, 2010 02:16 PM

Hi,

in my program the key VK_F2 has a general function. Generally it works perfectly. But since the upgrade to fwh1005 I get a message "oCol:bOnPostEdit not defined" when a x-browse window is opened an I press the F2-key.

I made following efforts to handle this change of behaviour:
- I found in the TxBrwColumn-class a data lOnPostEdit which doesn't seem to have any effect on this.
- Also I found the method nEditType which I called with oCol:nEditType(0) which doesn't show any effect as well
- Also I found in the xbrowse-class a data lEditMode. If I manually override it to lEditMode := .t., then the message won't be shown again. But the Key F2 is still not being evaluated... Besides, I think this information should not be changed manually.

Has anyone an idea how pressing F2 will evaluate the standard set for the whole program without xbrowse having any effect on it?

Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: xBrowse: Message "oCol:bOnPostEdit not defined"
Posted: Mon Jun 14, 2010 05:04 PM

Gilbert

Since fwh 10.5 Xbrowse is behaving like excel and therefore f2 is assigned to edit a cell

I had the same surprise as my app uses also F2

As a work around, you needd to change the xbrowse.prg

search for keydown method and comment the relevant f2 code

Hth

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Re: xBrowse: Message "oCol:bOnPostEdit not defined"
Posted: Tue Jun 15, 2010 08:05 AM

Richard,

thanks a lot for your answer. I did it like you said and it works.

Antonio,

have you planned to introduce something like a switch, so you can switch on/off excel-like behaviour?
Because in our application F2, SHIFT+F2 and CTRL+F2 are being used for other purposes.

Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xBrowse: Message "oCol:bOnPostEdit not defined"
Posted: Tue Jun 15, 2010 08:14 AM

Gilbert, Richard,

We could add a new

DATA nEditKey INIT VK_F2

so from your app you could easily set a oBrowse:nEditKey = nAnotherValue

does it seem fine for you ? :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: xBrowse: Message "oCol:bOnPostEdit not defined"
Posted: Tue Jun 15, 2010 09:33 AM

I prefer F2 to be disabled by default. Actually I'd prefer any new feature introduced to be off by default to avoid being caught by surprise. It's a lot of work having to recheck all the modules to insert a new line just to be sure whatever was working will still continue to do so every time some new feature is added.

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xBrowse: Message "oCol:bOnPostEdit not defined"
Posted: Tue Jun 15, 2010 09:37 AM

Hua,

Yes, you are right and thats the way it should be. It was our mistake to implement that functionality without asking about it in advance. Our apologizes about it.

This is why we want to fix it now and make it fully configurable, optional, etc. :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: xBrowse: Message "oCol:bOnPostEdit not defined"
Posted: Tue Jun 15, 2010 09:42 AM

Thank you :)

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Re: xBrowse: Message "oCol:bOnPostEdit not defined"
Posted: Tue Jun 15, 2010 09:43 AM

Antonio,

thank you very much, your proposal should work fine for me.
Please let us know as soon as you have completed this feature :D

Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xBrowse: Message "oCol:bOnPostEdit not defined"
Posted: Tue Jun 15, 2010 09:49 AM

Gilbert,

We have already implemented it and we will include it in next FWH 10.6 this same month :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion