` Printed Icetips Article

Icetips Article



Templates: Procedure template example
1999-03-21 -- Geoff Bomford
 
Newsgroups: topspeed.products.c5ee

Editors Note:  Please note that some lines will wrap in the template code.

I think you need to declare it in a 'Default' section.  Here is a section
from a procedure template which demonstrates this technique...

#PROCEDURE(KickOut,'KickOut Inactive Users'),WINDOW,PARENT(Window(ABC))
#LOCALDATA
TimeToKickout     LONG  ! Time left to kickout - GWBKickout Template
KickoutStartTime  LONG  ! time window opened - GWBKickout Template
DisplayTime       LONG  ! Total time window will be displayed - GWBKickout
Template
#ENDLOCALDATA
#!
#DISPLAY('The Kickout Window will automatically close when the user makes a
selection on the frame. You can customize any other ways to close the
window.'),AT(10,,150,32)
#PROMPT('Display Time (in seconds):',SPIN(@N3,0,999,1)),%DisplayTime,PROMPTAT(10)
#!
#AT(%WindowManagerMethodCodeSection,'Init','(),BYTE'),PRIORITY(8500)
!GWBKickout
KickoutStartTime = CLOCK()
DisplayTime = %DisplayTime * 100                  #...
>Hello All:
>
>Writing a procedure template (pretty straight forward) I cannot seem to
>find how I generate windows structure.  I am able to generate the
>%localdata but no window.    How do I go about this?
>



Printed May 5, 2024, 2:02 am
This article has been viewed/printed 35122 times.
Google search has resulted in 55 hits on this article since January 25, 2004.