home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / jed098-4.zip / JED / DOC / WJED.TXT < prev    next >
Text File  |  1997-02-01  |  8KB  |  178 lines

  1. This file has been donated by lionkov@sf.cit.bg (Luchesar Ionkov).
  2.  
  3.     Colors
  4.     
  5.    For specifying colors in [wjed] section in win.ini or with set_color
  6.    intrinsic can be used RGB format ("RValue,GValue,BValue", such as
  7.    "128,128,128" for gray color) or color name. wjed defines 16 colors and
  8.    user can define its own in [wjed] section. For example if one want set
  9.    a special color for operator's background he must add in [wjed] section
  10.    in win.ini file something like that:
  11.    
  12.        mycolor=12,34,56
  13.    
  14.    and then he can use "mycolor" in set_color intrinsic.
  15.  
  16.  
  17.    
  18.    
  19.     Entries in wjed section in win.ini
  20.     
  21.  
  22.    Entry    Type        Description
  23.    -------------------------------------------------------------------------------------
  24.    Font        String        Name of font which will be used in wjed.
  25.                                 Only fixed fonts can be used (such as
  26.                 Fixedsys or Courier)
  27.    FontHeight    Integer     Height of font
  28.    FontBold    Integer     If nonzero bold typeface will be used. 
  29.    Background    Color         Background color
  30.    Foreground    Color        Foreground color
  31.    StatusBG    Color        Background color of status lune
  32.    StatusFG    Color        Foreground color of status line
  33.    RegionBG    Color        Background color of a region as defined by point and mark
  34.    RegionFG    Color        Foreground color of a region as defined by point and mark
  35.    OperatorBG    Color        Background color of operators
  36.    OperatorFG    Color        Foreground color of operators
  37.    NumberBG    Color        Background color of numbers
  38.    NumberFG    Color        Foreground color of numbers
  39.    StringBG    Color        Background color of strings
  40.    StringFG    Color        Foreground color of strings
  41.    CommentBG    Color        Background color of comments
  42.    CommentFG    Color        Foreground color of commens
  43.    KeywordBG    Color        Background color of keywords
  44.    KeywordFG    Color        Foreground color of keywords
  45.    Keyword1BG    Color        Background color of other keywords
  46.    Keyword1FG    Color        Foreground color of other keywords
  47.    DelimiterBG    Color        Background color of delimiters
  48.    DelimiterFG    Color        Foreground color of delimites
  49.    PreprocessBG    Color        Background color of preprocess lines
  50.    PreprocessFG    Color        Foreground color of preprocess lines
  51.    MessageBG    Color        Background color for messages
  52.    MessageFG    Color        Foreground color for messages
  53.    ErrorBG    Color        Background color for error messages
  54.    ErrorFG    Color        Foreground color for error messages
  55.    MenuBG    Color        
  56.    MenuFG    Color        
  57.    CursorBG    Color        Background color of text cursor
  58.    CursorFG    Color        Foreground color of text cursor
  59.    DollarBG    Color        
  60.    DollarFG    Color            
  61.    Title    String        Name to be displayed on the title bar
  62.    X        Integer        -\
  63.    Y        Integer          - Dimensions of window
  64.    Width    Integer         /
  65.    Height    Integer        /
  66.  
  67.  
  68.  
  69.  
  70.  
  71.     Specific wjed intrinsics
  72.     
  73.     
  74.    Void define_color(String Name, Integer RValue, Integer GValue, Integer BValue)
  75.        Defines new color "Name" with RGB values from RValue, GValue and BValue
  76.     
  77.    Integer get_menubar(Void)
  78.        Returns handle of menubar. If there is no menubar, the function create it.
  79.     
  80.    Void destroy_menubar(Void)
  81.        Destroys menubar
  82.     
  83.    Integer create_popup_menu(Void)
  84.        Creates empty popup menu and returns integer value which is 
  85.        it's handle. If popup is not appended to another menu, it must 
  86.        destroyed after use.
  87.     
  88.    Void destroy_menu(Integer hmenu)
  89.        Destroys menu and all it's popup menus.
  90.        Note: Do not destroy menubar with this function 
  91.              (use `destroy_menubar')
  92.             
  93.    Void append_menu_item(Integer hmenu, String name, Integer id, String callback)
  94.        Appends menu item with name 'name' and identifier 'id' at the end 
  95.        of 'hmenu'. When item is selected, the 'callback' will be executed.
  96.        Callback can be intrinsic or internal function.
  97.       
  98.    Void append_popop_menu(Integer hmenu, String name, Integer popup) 
  99.        Appends popup menu with name 'name' and handle 'popup' at the end 
  100.        of 'hmenu'
  101.        
  102.    Void append_separator(Integer hmenu) 
  103.        Appends menu separator at the end of 'hmenu'
  104.        
  105.    Void insert_menu_item(Integer hmenu, Integer id, String name, Integer idNew, String callback)
  106.        Inserts menu item with name 'name' and identifier 'idNew' before
  107.        menu item with identifier 'id'.
  108.        When item is selected, the 'callback' will be executed.
  109.        Callback can be intrinsic or internal function.
  110.        
  111.    Void insert_menu_item_pos(Integer hmenu, Integer pos, String name, Integer idNew, String callback)
  112.        Inserts menu item with name 'name' and identifier 'idNew' before
  113.        menu item with zero-based position 'pos' in 'hmenu'.
  114.        When item is selected, the 'callback' will be executed.
  115.        Callback can be intrinsic or internal function.
  116.        
  117.    Void insert_popup_menu(Integer hmenu, Integer id, String name, Integer popup) 
  118.        Inserts popup menu with name 'name' and handle 'popup' before
  119.        menu item with identifier 'id'
  120.        
  121.    Void insert_popup_menu_pos(Integer hmenu, Integer pos, String name, Integer popup) 
  122.        Inserts popup menu with name 'name' and handle 'popup' before
  123.        menu item with zero-based position 'pos' in 'hmenu'
  124.        
  125.    Void insert_separator(Integer hmenu, Integer id)
  126.        Inserts menu separator before menu item with identifier 'id'
  127.        
  128.    Void insert_separator_pos(Integer hmenu, Integer pos) 
  129.        Inserts menu separator before menu item with zero-based position 'pos'
  130.        
  131.    Void delete_menu_item(Integer hmenu, Integer id) 
  132.        Deletes menu item with identifier id from menu with handle 'hmenu'
  133.        
  134.    Void delete_menu_item_pos(Integer hmenu, Integer pos) 
  135.        Deletes menu item at zero-based position 'pos' from menu 'hmenu'
  136.        
  137.    Integer get_menu_state(Integer hmenu, Integer id) 
  138.        Gets state of menu item with identifier 'id'
  139.        <return value> & 1 == 1 if menu item is enabled
  140.        <return value> & 2 == 1 if menu item is checked
  141.        
  142.    Integer get_menu_state(Integer hmenu, Integer pos) 
  143.        Gets state of menu item at zero-based position 'pos' 
  144.        <return value> & 1 == 1 if menu item is enabled
  145.        <return value> & 2 == 1 if menu item is checked
  146.        
  147.    Void get_popup_menu(Integer hmenu, Integer pos) 
  148.        Returns handle of popup menu at zero-based position 'pos'
  149.        If return value is 0, there is no popup at the position.
  150.        
  151.    Void check_menu_item(Integer hmenu, Integer id, Integer flag) 
  152.        This functions changes check state of menu item. If flag is nonzero, 
  153.        it checks menu item, otherwise it unchecks it
  154.        
  155.    Void check_menu_item(Integer hmenu, Integer pos, Integer flag) 
  156.        This functions changes check state of menu item. If flag is nonzero, 
  157.        it checks menu item, otherwise it unchecks it
  158.        
  159.    Void check_menu_item(Integer hmenu, Integer id, Integer flag) 
  160.        This functions enable or disable menu item. If flag is nonzero, the
  161.        menu item will be enabled, otherwise it'll be disabled.
  162.        
  163.    Void check_menu_item(Integer hmenu, Integer pos, Integer flag) 
  164.        This functions enable or disable menu item. If flag is nonzero, the
  165.        menu item will be enabled, otherwise it'll be disabled.
  166.        
  167.    Void redraw_menubar(Void) 
  168.        Redraws menubar. This functions should be called if menubar is changed
  169.       
  170.    Void set_init_popup_callback(String callback)
  171.        Executes callback before popup menu is popped up.
  172.       
  173.    Void msw_help(String filename, String keword, Integer Partial_Keys) 
  174.        Starts Windows Help with 'filename' help file. If 'keyword' is not null
  175.        string shows topic with specified keyword. If 'Partial_Keys' != 0
  176.        shows Search dialog if there is more than one help topic beginnig with
  177.        'keyword'
  178.