skip to main content

Special Features : GUI

GUI
isCOBOL offers some additional features that allows you to produce complex and flexible graphical user interfaces. The programmer can take advantage of:
03 LABEL
  line   2 
  col   25
  lines  5 cells
  size   9 cells
  title  '<html><img src="file:Files/lb.gif"></img></html>' 
03 ENTRY-FIELD
   line     2 
   col      25
   size     9 cells
   value    w-name
   hint     "Write the name here"
03 LABEL
   line              2
   col               25
   size              9 cells
   title             "gray label" 
   background-color  rgb x#c0c0c0
INQUIRE ef-1 SELECTION-TEXT w-text.
03 ENTRY-FIELD
   line     2 
   col      25
   size     9 cells
   value    w-date
   format-string "##/##/####"
03 LABEL
   vertical
   line     2 
   col      25
   lines    15 cells
   size     8 cells
   title    "vertical text"
The ability to display more lines of text in a single GRID cell. Alignment of the column with multiline text must be “H”.
DATA-TYPES ("U(1)L(0)", "9(3)X(2)")
MODIFY ComboBoxHandle, ITEM = 1, BITMAP-NUMBER = 20
MODIFY TabControlHandle, TAB-INDEX = 1 BITMAP-NUMBER = 1
A new style for TAB-CONTROL, Allow-Container, that allows to bind screen entries to TAB-CONTROL pages and have the page switch managed automatically by the runtime.
DISPLAY TOOL-BAR MOVEABLE
        HANDLE toolbar-handle.
display docking window
The syntax to create a window inside the container is:
display dockable window
display mdi-parent window
The syntax to create a window inside the container is:
display mdi-child window
The user can select text from the screen by dragging the mouse with left button hold. The text is automatically copied in the clipboard as soon as the user releases the mouse button. The user can also paste some text from the clipboard by pressing the middle mouse button (usually identified by the scroll wheel); the pasted text is put in the keyboard buffer and the active ACCEPT gets it.
The ability to intercept new events MSG-ICONIFIED and MSG-DEICONIFIED for the Window when user reduces the window to task bar or restores it.
For a quick demonstration of most GUI fSeatures, launch the isCOBOL Demo program.
 

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left