[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference dssdev::decforms

Title:DECforms
Notice:This is not an official software support channel. Kit info: 4.L
Moderator:DSSDEV::FORMS
Created:Thu Mar 23 1989
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:4004
Total number of notes:16520

3993.0. "COLOR Clause and RGB values" by PRSSOS::TEBOUL () Tue Apr 15 1997 11:36

    Hi,
    
    I get some trouble using the COLOR clause ?
    
    I use the folowing syntax :
    
    	           Field RED1
                    Line 4
                    Column 30
                    Display
                        Background Color Red
                        Foreground Color Black
                   End Field
    
    and on a second field i use :
    
    	           Field RED2
                    Line 4
                    Column 50
                    Display
                        Background Color 1.00,0.00,0.00
                        Foreground Color Black
                   End Field
    
    When testing this :
    RED1 appears with good colors (Back is red and fore is Black)
    RED2 stays with default colors ???
    
    Is my syntax good ? Is there a difference when using RGB values ?
    
    Thanks for clarifying,
    
    Alain.
    
    (I'm using DECforms 2.1-010 and my terminal is set with /REGIS/BLOCKMODE
    qualifiers)
       
                          
T.RTitleUserPersonal
Name
DateLines
3993.1The source filePRSSOS::TEBOULTue Apr 15 1997 11:5083
    hi,
    If it could help you, here is the map of my terminal and the source of
    my IFDL file :
    
    $SHOW TERM
    Terminal: _VTA1:      Device_Type: VT300_Series  Owner: TEBOUL
    Physical terminal: _LTA2504:
    LAT Server/Port: RONE31/UIC_000210000016
    
       Input:    9600     LFfill:  0      Width:  80      Parity: None
       Output:   9600     CRfill:  0      Page:   24
    
    Terminal Characteristics:
       Interactive        Echo               Type_ahead         No Escape
       No Hostsync        TTsync             Lowercase          Tab
       Wrap               Scope              No Remote          No Eightbit
       Broadcast          No Readsync        No Form            Fulldup
       No Modem           No Local_echo      No Autobaud        Hangup
       No Brdcstmbx       No DMA             No Altypeahd       Set_speed
       No Commsync        Line Editing       Insert editing     No Fallback
       No Dialup          No Secure server   Disconnect         No Pasthru
       No Syspassword     SIXEL Graphics     No Soft Characters Printer port
       Numeric Keypad     ANSI_CRT           Regis              Block_mode
       Advanced_video     Edit_mode          DEC_CRT            DEC_CRT2
       DEC_CRT3           No DEC_CRT4        No DEC_CRT5        Ansi_Color
       VMS Style Input
    
    $Type testcolor.ifdl
                                      
    Form TESTCOLOR
    
        Form Data
            RED1 Character(10)
                Value "RED       "
            RED2 Character(10)
                Value "RED...    "
        End Data
        Layout VT_LAYOUT
            Device
                Terminal
                    Type %VT100
            End Device
            Size 24 Lines by 80 Columns
    
            Viewport VP1
                Lines 1 Through 20
                Columns 1 Through 80
            End Viewport
    
            Enable Response
                Activate
                    All
            End Response
     
           Panel PANEL1
                Viewport VP1
                Literal Rectangle
                    Line 1  Column 1
                    Line 20 Column 80
                End Literal
                Field RED1
                    Line 4
                    Column 30
                    Display
                        Background Color Red
                        Foreground Color Black
                End Field
                  Field RED2
                    Line 4
                    Column 43
                    Display
                        Background Color 1.00, 0.00,0.00
                        Foreground Color Black
                End Field
               End Panel
    
        End Layout
    End Form
    
    
    Thanks again for your help,
    
    Alain
3993.2DSSDEV::LOWELLGrim Grinning Ghosts...Thu Apr 17 1997 11:147
    Alain,
    
    I've reproduced this problem using your ifdl example.  I will
    investigate this to see why the background color for field red2 isn't
    being displayed.
    
    Ruth
3993.33153...CSC32::C_BENNETTMon Apr 21 1997 13:209
    
    I did not catch whether this is a pure DECterm/Regis issue but you may
    want to review the following notes:
    
      3013  RDOBCM::MCCARTY      24-MAR-1993     2  DECterm bold/reverese colors
      3153  KERNEL::WILESL       22-JUL-1993     3  background/foreground support for decterms?
    
    I believe on a real VT340 terminal this works fine although the problem exists in
    the DECTERM VT300 terminal emulator.
3993.3Any response ?PRSSOS::TEBOULTue Apr 29 1997 11:486
    Ruth,
    
    Have you find why the field is not displayed ?
    What can i say to my customer ?
    
    Alain.
3993.4Assigned to another engineerDSSDEV::LOWELLGrim Grinning Ghosts...Wed Apr 30 1997 17:056
    Alain,
    
    This problem has been assigned to another engineer who is out of the
    office this week.  I will do some more investigating as I have time.
    
    Ruth
3993.5RGB values works only for pixel devicesIFDL::ZEEBCada ser humano faz o seu proprio destinoTue May 06 1997 11:1418
 -.0

  Your syntax for the second field is ok; however, RGB values work
  only for pixel devices, such as Motif.  Your customer can use that 
  syntax if the application is converted to Motif.  This is not really
  a DECforms restriction, but is due to fact that VT terminals are not 
  set up to display arbitrary colors.

  The DECforms documentation does not mention that the RGB color syntax
  is intended for pixel devices.  I will work on improving this section
  of the DECforms documentation and would expect the information to appear 
  in a future release of DECforms.

  --Cida Zeeb
    DECforms Engineer