` 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: Using MessageHook
2012-03-15 -- Graham Dawson
 
Best bet would be to use prop:messagehook and 'hook' the message procedure. All your existing message lines stay the same, you just add a single procedure and two code lines, one to hook and one to release the hook. There's not much in the Help about this but you just define a window procedure using the prototype in BUILTINS.CLW and then set the hook to the address of _your_ message window system{prop:messagehook} = address(MyMessage) To reset use system{prop:messagehook} = 0 !*** zero *** MyMessage prototype (STRING,,,,UNSIGNED=0,UNSIGNED=0),UNSIGNED MyMessage parameters (input_text,caption,icon,buttons,default,style) Now you can add a timer to the window and auto-close with post event:closewindow if no user response.


Today is May 3, 2024, 10:22 am
This article has been viewed 35127 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: