support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > isCOBOL General > User Interface > How may I display a notification window that requires no user intervention?
Question Title How may I display a notification window that requires no user intervention?

The display window syntax has been extended to allow you to use a display notification window in order to display an undecorated window, to notify the user about events that will or are happening on your program.

Such window does not require and does not admit the use of an accept statement upon it.

The following is a sample snippet to display a notification window that would disappear automatically after 5 seconds of being displayed.

    display notification window
            top right
            lines 5
            size 35
            before time 550
            visible 0
            handle h-notif.

You may select the location of the notification window from 4 different locations which are the 4 corners of the screen: top left, top right, bottom left and bottom right.

The before time clause is optional so that the notification window may continue to be displayed until the program finishes its execution.

Once the notification window is displayed, you may display any screen section screen upon it or display a series of GUI controls upon it as well.

The following snippet shows how to display a series of GUI controls upon it.

     display label
             line 2 
             col  3
             title "This is a notification window..."
             upon h-notif.
     display label
             line 4 
             col 3
             title "The notification will close in 5 seconds"
             upon h-notif

Please use the attached full small sample program to test showing a notification window on any of the corners of the screen.

You may compile the program simply with:

  iscc  notif.cbl
And then run it simply with:
  iscrun  NOTIF  1
Optionally pass one parameter to the execution, a number between 1 and 5 in order to select the location of the notification window. The number 5 is for a before time type of notification window.

Authored by: Veryant Support This question has been viewed 295 times so far.
Click Here to View all the questions in User Interface category.
File Attachments File Attachments
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. How do I center a window on the desktop?
  2. Does isCOBOL provide GUI design support?
  3. iscobol.font.default and DEFAULT-FONT
  4. What are the specific fonts that isCOBOL uses by default?
  5. Does isCOBOL provide Graph modules to show statistics?
  6. Can I have an entry-field that more or less works the same as Google Search? So I would like to be able to change the contents of the list while the user is typing...
  7. Did you know isCOBOL has the Accordion control?
  8. Is it possible to sort dates in a grid control?
  9. Working with a grid control is there a way to get the double-click event?
  10. How can I refresh the current contents of the paged grid?
  11. Is there a way to show leading zeros when numeric data items are displayed on a character based screen?
  12. How can I show an animated gif with isCOBOL?
  13. Did you know isCOBOL supports a tip inside the entry-field and combo-box controls when they are empty?
  14. Is it possible to configure the color of the read-only entry-fields?
  15. Did you know how to customize color of the borders of some controls?
  16. UNC Paths with Browser Control don't work. What can I do to solve it?
  17. Did you know that you can protect a Grid from editing without coding any event?
  18. How to detect if a computer has more than one monitor and use any of them?
  19. Gradient effects
  20. Do isCOBOL GUI Screens have resizing capabilities?
  21. How to add pages and GUI controls inside them to a tab control dynamically?
Article Information Additional Information
Article Number: 303
Created: 2019-08-08 5:37 AM
Rating: No Rating
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.