Page 2 of 2

Re: DC_XbpBrowse:itemRbDown

Posted: Sun Aug 09, 2020 10:17 am
by Tom
If I right-click on column #3 or higher, the column cursor moves one column right. This does not happen if no column is deleted. The reason seems to be "oColumn:ColumnPos", which is not actualized when I delete columns (and it is only used with Xbase++ 2.0, as you see in your code which I posted here). I can add some code to my app to get this going. Not a big problem. I thought this was an error which has to be shown to you.

And: Congrats, Grampa! :)

Re: DC_XbpBrowse:itemRbDown

Posted: Sun Aug 09, 2020 6:26 pm
by rdonnay
If I right click column 3 or higher, it selects the column I click.

I am running the code you gave me.

I wish I could figure this out.

Thanks for the good wishes.

Re: DC_XbpBrowse:itemRbDown

Posted: Sun Aug 09, 2020 11:01 pm
by Tom
Strange. I have to check the eXpress++-version. Which one is actual? And what about my subscription? I remember I wrote some mails to you last year or maybe in 2017. 8-)

Re: DC_XbpBrowse:itemRbDown

Posted: Mon Aug 10, 2020 5:06 am
by Tom
I use eXpress++ 2.0.166 with latest Xbase++ 2.0.

See pics attached!
1. click1.png: Right-click on column #2 (header "2") -> cursor stays at column #2.
2. click2.png: Right-click on column #3 (header "4") -> cursor moves to column #4.

Re: DC_XbpBrowse:itemRbDown

Posted: Mon Aug 10, 2020 8:33 am
by rdonnay
I use eXpress++ 2.0.166 with latest Xbase++ 2.0.
I tested with eXpress++ 266 and most current (267). Everything works fine.
I haven't tested with latest Xbase++. That may be the problem. I'm using build 1176.

Re: DC_XbpBrowse:itemRbDown

Posted: Mon Aug 10, 2020 11:20 pm
by Tom
This happend with earlier versions of Xbase++ 2.0 aswell. The reason is the iVar "ColumnPos", which you introduced for 2.0 and which is used in DC_XbpBrowse:itemRbDown to set the cursor on a right-click - the code from _DCXBPROW.PRG I posted before. If I recalculate oColumn:ColumnPos when a column is deleted, everything works fine. I can't believe this works at your site. :o If oBrowse:InsColumn or oBrowse:DelColumn is used, there is no overloaded method in your code, so oColumn:ColumnPos can't be set or changed. It must behave wrong. Very strange.

Re: DC_XbpBrowse:itemRbDown

Posted: Tue Aug 11, 2020 7:46 am
by rdonnay
Ok, I will dig into this deeper to find out why it works for me.