DCBROWSE RBSELECT

This forum is for eXpress++ general support.
Message
Author
skiman
Posts: 1189
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: DCBROWSE RBSELECT

#11 Post by skiman »

Tom,

In understand why you are doing this stuff.

I was just wondering if the RETURN DCGUI_IGNORE in the handler isn't the cause of the different behaviour.
Your new code works but skip back one line when RB-Down in Browse!
Roger had this:

Code: Select all

IF Valtype(oXbp) = 'O' .and. oXbp:isDerivedFrom('XbpCellGroup') .AND. nEvent == xbeM_RbDown
  nCell := oXbp:cellFromPos(mp1)
  oBrowse:itemRbDown( mp1, { oXbp:parent, nCell } )
  oBrowse:forceStable()
RETURN DCGUI_IGNORE     <<------------ this isn't in your code.
ENDIF
Best regards,

Chris.
www.aboservice.be

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

Re: DCBROWSE RBSELECT

#12 Post by Tom »

Mmh. It works correct if the code returns DCGUI_IGNORE in the section. But in that situation, the RbDown event is gone. Without DCGUI_IGNORE, the code works correct so far, but the itemRbDown clause fires twice, and sets the pointer one line above sometimes.
Best regards,
Tom

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

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

Re: DCBROWSE RBSELECT

#13 Post by Tom »

Hi, Chris.

As I wrote before - you're right. Roger's code fixes RBSELECT, but it kills the RbDown event (DCGUI_IGNORE). I want to show a context menu or do some kind of special drag&drop with the right mouse button. I need both.
Best regards,
Tom

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

skiman
Posts: 1189
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: DCBROWSE RBSELECT

#14 Post by skiman »

Tom,

I'm using this in my code:
RBSELECT ;
RBDOWN {|| DC_CompleteEvents(), ... } ;
I never had any complaint. It's just to insert lines, I'm not using it for doing something on cells.

I see that this RBDOWN clause isn't in the documentation?
Best regards,

Chris.
www.aboservice.be

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

Re: DCBROWSE RBSELECT

#15 Post by Tom »

Hi, Chris.

I can't use the RBDOWN clause this way, because the code in my custom handler is much too complex for this.
Best regards,
Tom

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

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

Re: DCBROWSE RBSELECT

#16 Post by Tom »

Got it. If the event is xbeM_RbDown, the return code for the handler is set to DCGUI_IGNORE anyway and to DCGUI_NONE in all other situations.
Best regards,
Tom

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

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

Re: DCBROWSE RBSELECT

#17 Post by rdonnay »

The RETURN DCGUI_IGNORE prevents that problem.
The eXpress train is coming - and it has more cars.

Post Reply