` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Default delete dialog to "No"
2000-04-02 -- Dennis Evans
 
, Override the TakeUser method in the GlobalErrors and before the parent call add this: if Self.Errors.Id = Msg:ConfirmDelete if message(Self.SubsString),Self.Errors.Title,ICON:Question, | Button:Yes+Button:No,BUTTON:No,0) = Button:Yes return(Level:Benign) else return(Level:Cancel) end ! if message end ! if Self.Error.Id You can add tests for other error conditions and use the 'No' default here or let the parent handle and use the default 'Yes' One note, this will only work in single exe apps. If you are developing multi-dll applications there is a bug in the way the templates generate the init code and the GlobalErrors are not global.


Today is April 30, 2024, 6:33 am
This article has been viewed 35119 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: