DC_XbpBrowse:itemRbDown

This forum is for eXpress++ general support.
Message
Author
User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: DC_XbpBrowse:itemRbDown

#11 Post 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! :)
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_XbpBrowse:itemRbDown

#12 Post 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.
The eXpress train is coming - and it has more cars.

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: DC_XbpBrowse:itemRbDown

#13 Post 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-)
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: DC_XbpBrowse:itemRbDown

#14 Post 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.
Attachments
click2.png
click2.png (8.83 KiB) Viewed 7560 times
click1.png
click1.png (9.53 KiB) Viewed 7560 times
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_XbpBrowse:itemRbDown

#15 Post 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.
The eXpress train is coming - and it has more cars.

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: DC_XbpBrowse:itemRbDown

#16 Post 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.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_XbpBrowse:itemRbDown

#17 Post by rdonnay »

Ok, I will dig into this deeper to find out why it works for me.
The eXpress train is coming - and it has more cars.

Post Reply