ReportControl DblClick-Bug! |
Post Reply |
Author | |
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
Posted: 19 June 2008 at 7:39am |
Hi,
there is a unpleasantly bug in the ReportControl!
If I do a DoubleClick on a row, a MouseUp-Event will give to a control "under" the ReportControl!!!
Please see the attachment for more details and a better understanding!
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I think your "unpleasantly bug" is not one of CJ's concern. If you look at the image it workes as supposed to
| |
| Double click cycle |
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
|
Sorry U are wrong. This is a bug...! And what do you mean with second click???
There is NO second click!
And there is NO RC.Visible = True (use the second sample-button: this is a Form.Show vbModal)
Please check the sample correctly and test it with another ListControl (like visual basic ListBox!). With a ListBox (OR ANY OTHER CONTROL with a DblClick-Event) this problem don't occurs! ;-)
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
It isn't ????
Option Explicit
Private Sub cmdGo_Click()
Picture1.Enabled = True ' now allow a MouseUp-Event on this picturebox (!) -> this is ONLY for a better understandig of this sample (!!!) ReportControl1.Visible = True End Sub Private Sub Command1_Click()
Picture1.Enabled = True ' now allow a MouseUp-Event on this picturebox (!) -> this is ONLY for a better understandig of this sample (!!!) Form2.Show vbModal End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Form_Load() Dim i As Integer Me.Move 3000, 3000 With ReportControl1
.Columns.Add 1, "A", 300, False .Columns.Add 2, "B", 9000, False For i = 1 To 5
With .Records.Add .AddItem i: .AddItem "Please DblClick on any row!" End With Next .Populate End With End Sub Private Sub Picture1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
MsgBox "Why do U see me???" & vbCr & vbCr & "I'm NOT a event from ReportControl!!!" & vbCr & vbCr & "I'm a MouseUp-Event of another control!", vbExclamation, "What's wrong?" Picture1.Enabled = False ' this is ONLY for a better understandig of this sample (!!!) End Sub Private Sub ReportControl1_RowDblClick(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem)
ReportControl1.Visible = False End Sub |
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
|
Oh oh oh, U are so wrong!
DON'T BE SO HASTY!!!
THIS IS ONLY A EXAMPLE 4 a better UNDERSTANDING !
In the original-code it is a POPUP-CONTROL (see on command-caption-text: "a popup-simulator")
Again: Use the second command-button and you'll see!!!
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
The same thing, when form unloads, mouse up event of underlying control will be fired.
See Image again @Jebo
Try this:
set StartUpPosition of form2 to CenterScreen and add Form_MouseUp event in Form1, you will see that the form1_MouseUp event will be fired.
I think you have to call Bill Gates to have this fixed
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
|
Yes, I see the bug is on subclassing only (in use with a infragistics-TreeControl) - and I'm wrong with MouseUp-Event. It is The Click-Event (!!!). OK, it occurs only by subclassing so I'm looking for a workaround. But with other controls (for example a ListBox-control) this problem don't occurs!!!
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I don't know why you need this...
Does you underlying control use the MouseUp event? If so I would set a flag in the MouseDown event in order to have a proper click event. The user has to click first before you will handle the MouseUp event.
Something like this:
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
flagMouseDown = True End Sub Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If flagMouseDown = True Then MsgBox "Form_MouseUp event" flagMouseDown = False End Sub |
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
|
THX, but my first post was wrong. I don't mean the MouseDown or MouseUp-Event - the problem is the Click-Event - and it occurs only with the combination of "ReportControl and a subclassed infragistics TreeView-control". And this is no problem of CJ only...!
And yes, I use still a workaround nearly like yours.
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
In your case you should look at the order in which the mouse events fire (the treeview) The treeview is responsable for this and not the RC !!!!
If you would hold the left button down (second click of double click) and drag the mouse outside the picturebox you don't get a mouseUp event !!! and if you release it when mouse is in picturebox area you will get MouseUp event as it should
Now, if your treeview reacts on the mouse click or MouseUp event you can't blame the RC for this ?!?!?
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |