Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - frmDragDrop - BUG?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

frmDragDrop - BUG?

 Post Reply Post Reply
Author
Message
Developerx View Drop Down
Groupie
Groupie


Joined: 03 March 2011
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Developerx Quote  Post ReplyReply Direct Link To This Post Topic: frmDragDrop - BUG?
    Posted: 18 June 2011 at 5:56am
Hi,

In the latest v15 samples:
ReportControl Sample
- additional Samples -> Drag and Drop Test (frmDragDrop.frm)

The drag and drop works, but if you click on column then drag and drop do not work again?

This is the code (same as included in the latest package):
http://www.codejock.com/support/articles/com/reportcontrol/rp_1.asp

Is this a bug, how to workaround it (i dont care about bug just workarounds) ; )

Regards
Developerx
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2011 at 8:43am
Just set SortedDragDrop to True.
Back to Top
Developerx View Drop Down
Groupie
Groupie


Joined: 03 March 2011
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Developerx Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2011 at 3:39pm
Thanks!!!

So simple i wonder why i did not figure it out, anyway i managed to use this workaround and used following.

Private sortx As Boolean

Private Sub ReportControl1_SortOrderChanged()
sortx = True
End Sub

Private Sub ReportControl1_OLEDragOver(ByVal Data As XtremeReportControl.DataObject, Effect As Long, ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single, ByVal state As Integer)
If sortx = True Then refreshcol
End Sub

Private Sub refreshcol()
Me.ReportControl1.Columns.DeleteAll
 With ReportControl1.Columns
  
       .Add 0, "xx1", 500, True
        .Add 1, "xx2", 50, True
        .Add 2, "xx3", 40, True
        .Add 3, "xx4", 150, True
    End With
    sortx = False
End Sub


i use the refreshcol when reportcontrol is grouped and the reportcontrol needs to get exported (i call it before exporting to textfile since it cant export if reportcontrol is in group mode.

regards
Developerx

Embarrassed
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.