Lugaru's Epsilon
Editor 14.04

Epsilon User's Manual and Reference
   Primitives and EEL Subroutines
      Buffer Primitives
         Changing Buffer Contents
         Moving Text Between Buffers
         Getting Text from a Buffer
         . . .
         Listing Buffers
      Display Primitives
         . . .
         Pop-up Windows
         Pop-up Window Subroutines
         Window Attributes
         Buffer Text in Windows
         Window Titles and Mode Lines
         . . .
      File Primitives
         File Reading Primitives
         File Writing Primitives
         Line Translation Primitives
         . . .
         Tagging Internals
      . . .

Previous   Up    Next
Pop-up Window Subroutines  Primitives and EEL Subroutines   Buffer Text in Windows

Epsilon User's Manual and Reference > Primitives and EEL Subroutines > Display Primitives >

Window Attributes

int get_wattrib(int win, int code)
set_wattrib(int win, int code, int val)
/* use these codes with get_wattrib() & set_wattrib() */
#define BLEFT           0
#define BTOP            1
#define BRIGHT          2
#define BBOTTOM         3
#define PBORDERS        4
#define PTEXTCOLOR      7
#define PTITLECOLOR     8

The get_wattrib( ) and set_wattrib( ) primitives let you examine and modify many of a window's attributes, such as its position, size, or color. The win parameter contains the handle or number of the window to modify, and the code parameter specifies a particular attribute.

For the code parameter, you can specify one of BLEFT, BTOP, BRIGHT, or BBOTTOM, to examine or change the window's size or position. They refer to the screen coordinate of the corresponding edge. You can use PBORDERS to specify a new border code (see the description of add_popup( ) above). Or you can set one of the window's colors: each window has a particular color class it uses for its normal text (outside of any highlighted regions), its horizontal borders, its vertical borders, and its title text. Use the macros PTEXTCOLOR, PHORIZBORDCOLOR, PVERTBORDCOLOR, and PTITLECOLOR, respectively, to refer to these. Set them using a color class expression. (See Setting Colors.) For example, the statement

set_wattrib(win, PTEXTCOLOR, color_class viewed_text);

makes the text in window win appear in the color the user selected for viewed text.

window char system_window;
window char invisible_window;

Setting the window-specific primitive variable system_window to a nonzero value designates the current window as a system window. The user commands that switch windows will skip over system windows. Setting the window-specific primitive variable invisible_window to a nonzero value makes a window whose text Epsilon won't display (although it will display the border, if the window has one). Epsilon won't modify the part of the screen that would ordinarily display the window's text.

Previous   Up    Next
Pop-up Window Subroutines  Primitives and EEL Subroutines   Buffer Text in Windows

Lugaru Epsilon Programmer's Editor 14.04 manual. Copyright (C) 1984, 2021 by Lugaru Software Ltd. All rights reserved.