DCBROWSECOL DRAG ... DRAGDIALOG

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

DCBROWSECOL DRAG ... DRAGDIALOG

#1 Post by Tom »

Hi, Roger.

If DCBROWSECOL is used with DRAG/DRAGDIALOG, dragging starts anyway, even if the mouse points to the heading area. Besides this conflicts with column resizing, it seems not to be very useful to drag heading/footing data, but only those from the dataarea. Since the column object is handed to the DRAG/DRAGDIALOG codeblocks, it's hard to find out whether the mouse was clicked in the dataarea or somewhere else in the column.

I changed this in line 4322 of _DCGETBX.PRG (build 260):

Was:

Code: Select all

IF IsMemberVar(oDrop,'DRAGBLOCK') .AND. ValType(oDro:dragBlock) == 'B'
Is:

Code: Select all

IF IsMemberVar(oDrop,'DRAGBLOCK') .AND. ValType(oDro:dragBlock) == 'B' ;
   .AND. !(oXbp:IsDerivedFrom('XbpCellGroup') .AND. (oXbp == oXbp:Parent:Heading .or. oXbp == oXbp:Parent:Footing))
This fits to my need and works well - dragging is started from the dataarea only. Maybe, an option would be nice (DRAGAREA).

Besides, in DCDIALOG.CH I found an option "TYPE" between the DRAG and the DRAGDIALOG clause. What is this used for?
Best regards,
Tom

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

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

Re: DCBROWSECOL DRAG ... DRAGDIALOG

#2 Post by rdonnay »

That is the correct solution. Thank you.

I will add it to the next build.
The eXpress train is coming - and it has more cars.

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

Re: DCBROWSECOL DRAG ... DRAGDIALOG

#3 Post by Tom »

And what is TYPE used/reserved for?
Best regards,
Tom

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

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

Re: DCBROWSECOL DRAG ... DRAGDIALOG

#4 Post by rdonnay »

And what is TYPE used/reserved for?
Hmmm. I don't remember. I need to look at the docs and the code.
The eXpress train is coming - and it has more cars.

Post Reply