Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic e.Confirm not working anymore (Read 7572 times)
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
e.Confirm not working anymore
Dec 1st, 2006 at 5:16am
Print Post  
since i went from ver 4.0.2357.25099 to 4.1.0.22212 e.Confirm = False in ItemModifying is not working. In the old ver if you used this it would stop the item from moving but in the newer ver the item still moves please help

Private Sub Cal1_ItemModifying(ByVal sender As Object, ByVal e As MindFusion.Scheduling.WinForms.ItemModifyConfirmEventArgs) Handles cal1.ItemModifying

If e.Item.RecurrenceState <> RecurrenceState.None Then
res = MsgBox("This is a Recurring appointment, What would you like to change?" & vbNewLine & "To change just this occurrence click ‘Yes’ or" & vbNewLine & "to change the entire sirres click ‘No’ or click ‘Cancel’ to cancel" & vbNewLine & vbNewLine & "NB: by moving a Recurring appointment to a different day all Recurrence information will be lost", MsgBoxStyle.YesNoCancel)


'exit sub if the user selects cancel
If res = MsgBoxResult.Cancel Then
e.Confirm = False
Exit Sub
ElseIf res = MsgBoxResult.No Then
MsgBox("still to code")
e.Confirm = False
Exit Sub

End If

end sub




This was working fine untill I change dll to the newer one
« Last Edit: Dec 1st, 2006 at 6:17am by bxsl »  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: e.Confirm not working anymore
Reply #1 - Dec 1st, 2006 at 7:03am
Print Post  
In the last release we changed the way items behave when their modification is not confirmed. Instead of retaining their original position, they move to the new position pointed to by the mouse, but the mouse cursor changes to a 'No' cursor to indicate that the modification is not allowed. Releasing the mouse under these circumstances should reset the item back to its original position. However showing up a form or in another way changing the focus away from the control during item modiciation causes the modification to be completed successfuly when the user gets back to the control (even though the modification was not confirmed in the event handler). This has been fixed. You can download the updated version from here:

https://mindfusion.org/_planner/_Planner.NET_41pre_trial14.zip
(This is a temporary link and is not guaranteed to work in the future.)

Meppy
  
Back to top
 
IP Logged
 
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Re: e.Confirm not working anymore
Reply #2 - Dec 1st, 2006 at 9:53am
Print Post  
still not working with the new .dll using Version 4.1.0.18832 just doing same as before
  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: e.Confirm not working anymore
Reply #3 - Dec 1st, 2006 at 12:47pm
Print Post  
When you close the dialog box that appears in the ItemModifying event handler, and release the mouse button, or click again if you have already released the mouse button while the dialog has been displayed, the item should revert back to its original position. Does it behave differently at your site?

Meppy
  
Back to top
 
IP Logged
 
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Re: e.Confirm not working anymore
Reply #4 - Dec 1st, 2006 at 7:33pm
Print Post  
I made a new project with the new dll from *trial14.zip and it did the same. When you drag an item the msgbox comes up after you click the msg box the item moves one line, eg if you have the control setup for showing every minute in an hour and the item is at 9:00 and you try and moive it down after the msgbox and the e.Confirm = False the item will now be at 9:01. Same thing also if you try and make the item bigger e.g. change the length.

below is the code from my yest project.


Private Sub cal1_ItemModifying(ByVal sender As Object, ByVal e As MindFusion.Scheduling.WinForms.ItemModifyConfirmEventArgs) Handles cal1.ItemModifying

MsgBox("test")
e.Confirm = False
cal1.ResetDrag()


End Sub
  
Back to top
WWW  
IP Logged
 
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Re: e.Confirm not working anymore
Reply #5 - Dec 3rd, 2006 at 11:12pm
Print Post  
this is still not working for me with the newly released version 4.1 :-[
  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: e.Confirm not working anymore
Reply #6 - Dec 4th, 2006 at 6:58am
Print Post  
Here is another version, which I hope will fix the problem this time:

https://mindfusion.org/_planner/_Planner.NET_41_trial15.zip
(This is a temporary link and it is not guaranteed to work in the future.)

Meppy
  
Back to top
 
IP Logged
 
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Re: e.Confirm not working anymore
Reply #7 - Dec 4th, 2006 at 8:41am
Print Post  
Thankyou, Thankyou and did I say Thankyou!!

Great job all working now

Cheers

Jason
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint