BeforeDelete BO Event


Author
Message
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
I am setting e.Cancel = true; in the BeforeDelete event and I am still being prompted with the message "Are you sure you wish to delete the current record".  It appears that the setting of the cancel property is working becuase it dosen't matter what I answer to the question,  the record is NOT deleted.  I am guessing that the message shouldn't be displayed if the delete was canceled,  right.

Am I doing something incorrectly or not understanding how it works?

Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
I will see if we can prevent this from happening.  THe reason this is occuring on your computer has somthing to do with video drivers.  In .NET, you can set a transparency color and set the .AllowTransparency to True on a form.  This prevents some flicker when instantiating.  I assume you are having the same problem with a WaitWindow and the InfoBox then, is that correct?  To see if you get the same error on an InfoBox, open the sample application, the open the Customers Maintenance form.  Click New, then Save.  You should get an error message at the bottom left of the window.  Let me know if this is pink as well.  I will look at the MessageForm's transparency and see if we can just turn it off.  However, that will be more difficult for a WaitWindow and the InfoBox.  These windows actually use the transparency in depth since there is fading and scrolling involved.  That is why I would like to see if it happens on them as well.  Thanks.
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
Here is a shot of the infobox.


Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
And here is the video info:


Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
Here is something else that might be related to the transparency issue.  This is the Database connection configuration form all I see are the controls, no "form" they just kind of float there in space.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Scott - 20 Years Ago
StrataFrame Team - 20 Years Ago
Scott - 20 Years Ago
Trent L. Taylor - 20 Years Ago
Scott - 20 Years Ago
                         I will see if we can prevent this from happening. THe reason this is...
Trent L. Taylor - 20 Years Ago
                             Here is a shot of the infobox.
Scott - 20 Years Ago
                             And here is the video info:
Scott - 20 Years Ago
                             Here is something else that might be related to the transparency...
Scott - 20 Years Ago
StrataFrame Team - 20 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search