xBrowse: Message "oCol:bOnPostEdit not defined"

xBrowse: Message "oCol:bOnPostEdit not defined"

Postby gkuhnert » Mon Jun 14, 2010 2: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
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Re: xBrowse: Message "oCol:bOnPostEdit not defined"

Postby Richard Chidiak » Mon Jun 14, 2010 5: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: xBrowse: Message "oCol:bOnPostEdit not defined"

Postby gkuhnert » Tue Jun 15, 2010 8: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
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Re: xBrowse: Message "oCol:bOnPostEdit not defined"

Postby Antonio Linares » Tue Jun 15, 2010 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: xBrowse: Message "oCol:bOnPostEdit not defined"

Postby hua » Tue Jun 15, 2010 9: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
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: xBrowse: Message "oCol:bOnPostEdit not defined"

Postby Antonio Linares » Tue Jun 15, 2010 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: xBrowse: Message "oCol:bOnPostEdit not defined"

Postby hua » Tue Jun 15, 2010 9:42 am

Thank you :)
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: xBrowse: Message "oCol:bOnPostEdit not defined"

Postby gkuhnert » Tue Jun 15, 2010 9: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
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Re: xBrowse: Message "oCol:bOnPostEdit not defined"

Postby Antonio Linares » Tue Jun 15, 2010 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 96 guests