Background color output

Hello experts
i have several internal tables which i need to convert into files in background mode
this is fine
however, i also need some of the rows in the file to be <b>colored </b>with a particular color
any idea by which i can achieve this ?
the files would be too large to convert into PDFs

Hi,
I am sending the sample report for colour cell report.
REPORT  YMS_COLOURALV NO STANDARD PAGE HEADING.
TYPE-POOLS: SLIS, ICON.
DATA: FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA: BEGIN OF IMARA OCCURS 0,
          LIGHT(4) TYPE C,
          MATNR TYPE MARA-MATNR,
          MTART TYPE MARA-MTART,
          MAKTX TYPE MAKT-MAKTX,
          COLOR_LINE(4) TYPE C,
          TCOLOR TYPE SLIS_T_SPECIALCOL_ALV,  "cell
      END OF IMARA.
DATA: XCOLOR TYPE SLIS_SPECIALCOL_ALV.
START-OF-SELECTION.
  PERFORM GET_DATA.
  PERFORM WRITE_REPORT.
Get_Data
FORM GET_DATA.
  WRITE ICON_GREEN_LIGHT AS ICON TO IMARA-LIGHT.
      IMARA-MATNR = 'ABC'.
      IMARA-MTART = 'ZCFG'.
      IMARA-MAKTX = 'This is description for ABC'.
  APPEND IMARA.
  WRITE ICON_YELLOW_LIGHT AS ICON TO IMARA-LIGHT.
      IMARA-MATNR = 'DEF'.
      IMARA-MTART = 'ZCFG'.
      IMARA-MAKTX = 'This is description for DEF'.
  APPEND IMARA.
  WRITE ICON_RED_LIGHT AS ICON TO IMARA-LIGHT.
      IMARA-MATNR = 'GHI'.
      IMARA-MTART = 'ZCFG'.
      IMARA-MAKTX = 'This is description for GHI'.
  APPEND IMARA.
  LOOP AT IMARA.
    IF SY-TABIX = 1.
      IMARA-COLOR_LINE = 'C410'.     " color line
    ENDIF.
    IF SY-TABIX = 2.                "  color CELL
      CLEAR XCOLOR.
      XCOLOR-FIELDNAME = 'MTART'.
      XCOLOR-COLOR-COL = '3'.
      XCOLOR-COLOR-INT = '1'.       " Intensified on/off
      XCOLOR-COLOR-INV = '0'.
      APPEND XCOLOR TO IMARA-TCOLOR.
    ENDIF.
    MODIFY IMARA.
  ENDLOOP.
ENDFORM.                    "get_data
WRITE_REPORT
FORM WRITE_REPORT.
  DATA: LAYOUT TYPE  SLIS_LAYOUT_ALV.
  LAYOUT-COLTAB_FIELDNAME = 'TCOLOR'.
  LAYOUT-INFO_FIELDNAME = 'COLOR_LINE'.
  PERFORM BUILD_FIELD_CATALOG.
CALL ABAP LIST VIEWER (ALV)
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      IS_LAYOUT   = LAYOUT
      IT_FIELDCAT = FIELDCAT
    TABLES
      T_OUTTAB    = IMARA.
ENDFORM.                    "write_report
BUILD_FIELD_CATALOG
FORM BUILD_FIELD_CATALOG.
  DATA: FC_TMP TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
  CLEAR: FIELDCAT. REFRESH: FIELDCAT.
  CLEAR: FC_TMP.
  FC_TMP-REPTEXT_DDIC    = 'Status'.
  FC_TMP-FIELDNAME  = 'LIGHT'.
  FC_TMP-TABNAME   = 'IMARA'.
  FC_TMP-OUTPUTLEN  = '4'.
  FC_TMP-ICON       = 'X'.
  APPEND FC_TMP TO FIELDCAT.
  CLEAR: FC_TMP.
  FC_TMP-REPTEXT_DDIC    = 'Material Number'.
  FC_TMP-FIELDNAME  = 'MATNR'.
  FC_TMP-TABNAME   = 'IMARA'.
  FC_TMP-OUTPUTLEN  = '18'.
  APPEND FC_TMP TO FIELDCAT.
  CLEAR: FC_TMP.
  FC_TMP-REPTEXT_DDIC    = 'Material Type'.
  FC_TMP-FIELDNAME  = 'MTART'.
  FC_TMP-TABNAME   = 'IMARA'.
  FC_TMP-OUTPUTLEN  = '10'.
  APPEND FC_TMP TO FIELDCAT.
  CLEAR: FC_TMP.
  FC_TMP-REPTEXT_DDIC    = 'Material'.
  FC_TMP-FIELDNAME  = 'MAKTX'.
  FC_TMP-TABNAME   = 'IMARA'.
  FC_TMP-OUTPUTLEN  = '40'.
  FC_TMP-EMPHASIZE = 'C610'.   " color column
  APPEND FC_TMP TO FIELDCAT.
ENDFORM.                    "build_field_catalog
Thanks,
Shankar

Similar Messages

  • How can i change the background color in the mobile windows adobe reader app? i want to change it from black to white but don't know how.

    really want to change the background color of my documents in the mobile app. ive tried to search the answer online, in blogs and other various 'life hacks' blogs or articles, but so far everyone is talking about the desktop version. i really want to figure this out. is there even an option for the mobile version for windows? the only editing icons when a document is open are: export, home, make public, search in document, highlight/strikethrough/underline/comment and continuous/single view. if there isnt an option to edit background color, can i suggest that the makers of the windows mobile version make one, and make it fast please! any help would be appreciated. -CHANGE BACKGROUND COLOR

    hi, thanks for helping me ...
    i have used the above url and made changes to my OAF page, but i didn't get the desired output and its also giving as the above code output .
    i kept OraBgGrayVeryDark in Css style in property inspector for every region including PageLayout and i also did some changes in cabo/styles/*.css classes.
    eventhough it is picking the color upto footer level only and it is not applying for advanced table also.
    can anyone please give your views in this..

  • How to set background color in a docking container?

    Hi guys!
    Is it possible to set a background color for a docking container?
    I don't find any appropriate method to do that.
    Is there actually a way?

    Hi,
    Please refer the below program as a reference for Color using Docking Container Concept.
    REPORT zcuitest_alv_07.
    * Use of colours in ALV grid (cell, line and column)            *
    * Table
    TABLES : mara.
    * Type
    TYPES : BEGIN OF ty_mara,
              matnr         LIKE mara-matnr,
              matkl         LIKE mara-matkl,
              counter(4)    TYPE n,
              free_text(15) TYPE c,
              color_line(4) TYPE c,           " Line color
              color_cell    TYPE lvc_t_scol,  " Cell color
    END OF ty_mara.
    * Structures
    DATA  : wa_mara     TYPE ty_mara,
            wa_fieldcat TYPE lvc_s_fcat,
            is_layout   TYPE lvc_s_layo,
            wa_color    TYPE lvc_s_scol.
    * Internal table
    DATA : it_mara     TYPE STANDARD TABLE OF ty_mara,
           it_fieldcat TYPE STANDARD TABLE OF lvc_s_fcat,
           it_color    TYPE TABLE          OF lvc_s_scol.
    * Variables
    DATA : okcode LIKE sy-ucomm,
           w_alv_grid          TYPE REF TO cl_gui_alv_grid,
           w_docking_container TYPE REF TO cl_gui_docking_container.
    PARAMETERS : p_column AS CHECKBOX,
                 p_line   AS CHECKBOX,
                 p_cell   AS CHECKBOX.
    START-OF-SELECTION.
      PERFORM get_data.
    END-OF-SELECTION.
      PERFORM fill_catalog.
      PERFORM fill_layout.
      CALL SCREEN 2000.
    *&      Module  status_2000  OUTPUT
    *       text
    MODULE status_2000 OUTPUT.
      SET PF-STATUS '2000'.
    ENDMODULE.                 " status_2000  OUTPUT
    *&      Module  user_command_2000  INPUT
    *       text
    MODULE user_command_2000 INPUT.
      DATA : w_okcode LIKE sy-ucomm.
      MOVE okcode TO w_okcode.
      CLEAR okcode.
      CASE w_okcode.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " user_command_2000  INPUT
    *&      Module  alv_grid  OUTPUT
    *       text
    MODULE alv_grid OUTPUT.
      IF w_docking_container IS INITIAL.
        PERFORM create_objects.
        PERFORM display_alv_grid.
      ENDIF.
    ENDMODULE.                 " alv_grid  OUTPUT
    *&      Form  create_objects
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM create_objects.
    * Ratio must be included in [5..95]
      CREATE OBJECT w_docking_container
        EXPORTING
          ratio                       = 95
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          others                      = 6.
      CREATE OBJECT w_alv_grid
        EXPORTING
          i_parent          = w_docking_container.
    ENDFORM.                    " create_objects
    *&      Form  display_alv_grid
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM display_alv_grid.
      CALL METHOD w_alv_grid->set_table_for_first_display
        EXPORTING
          is_layout                     = is_layout
        CHANGING
          it_outtab                     = it_mara
          it_fieldcatalog               = it_fieldcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
    ENDFORM.                    " display_alv_grid
    *&      Form  get_data
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM get_data.
      SELECT * FROM mara UP TO 5 ROWS.
        CLEAR : wa_mara-color_line, wa_mara-color_cell.
        MOVE-CORRESPONDING mara TO wa_mara.
        ADD 1                   TO wa_mara-counter.
        MOVE 'Blabla'           TO wa_mara-free_text.
        IF wa_mara-counter = '0002'
        AND p_line = 'X'.
    * Color line
          MOVE 'C410' TO wa_mara-color_line.
        ELSEIF wa_mara-counter = '0004'
        AND p_cell = 'X'.
    * Color cell
          MOVE 'FREE_TEXT' TO wa_color-fname.
          MOVE '5'         TO wa_color-color-col.
          MOVE '1'         TO wa_color-color-int.
          MOVE '1'         TO wa_color-color-inv.
          APPEND wa_color TO it_color.
          wa_mara-color_cell[] = it_color[].
        ENDIF.
        APPEND wa_mara TO it_mara.
      ENDSELECT.
    ENDFORM.                    " get_data
    *&      Form  fill_catalog
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_catalog.
    * Colour code :                                                 *
    * Colour is a 4-char field where :                              *
    *              - 1st char = C (color property)                  *
    *              - 2nd char = color code (from 0 to 7)            *
    *                                  0 = background color         *
    *                                  1 = blue                     *
    *                                  2 = gray                     *
    *                                  3 = yellow                   *
    *                                  4 = blue/gray                *
    *                                  5 = green                    *
    *                                  6 = red                      *
    *                                  7 = orange                   *
    *              - 3rd char = intensified (0=off, 1=on)           *
    *              - 4th char = inverse display (0=off, 1=on)       *
    * Colour overwriting priority :                                 *
    *   1. Line                                                     *
    *   2. Cell                                                     *
    *   3. Column                                                   *
      DATA : w_position TYPE i VALUE '1'.
      CLEAR wa_fieldcat.
      MOVE w_position TO wa_fieldcat-col_pos.
      MOVE 'MATNR'    TO wa_fieldcat-fieldname.
      MOVE 'MARA'     TO wa_fieldcat-ref_table.
      MOVE 'MATNR'    TO wa_fieldcat-ref_field.
      APPEND wa_fieldcat TO it_fieldcat.
      ADD 1 TO w_position.
      CLEAR wa_fieldcat.
      MOVE w_position TO wa_fieldcat-col_pos.
      MOVE 'MATKL'    TO wa_fieldcat-fieldname.
      MOVE 'MARA'     TO wa_fieldcat-ref_table.
      MOVE 'MATKL'    TO wa_fieldcat-ref_field.
    * Color column
      IF p_column = 'X'.
        MOVE 'C610'     TO wa_fieldcat-emphasize.
      ENDIF.
      APPEND wa_fieldcat TO it_fieldcat.
      ADD 1 TO w_position.
      CLEAR wa_fieldcat.
      MOVE w_position TO wa_fieldcat-col_pos.
      MOVE 'COUNTER'  TO wa_fieldcat-fieldname.
      MOVE 'N'        TO wa_fieldcat-inttype.
      MOVE '4'        TO wa_fieldcat-intlen.
      MOVE 'Counter'  TO wa_fieldcat-coltext.
      APPEND wa_fieldcat TO it_fieldcat.
      ADD 1 TO w_position.
      CLEAR wa_fieldcat.
      MOVE w_position  TO wa_fieldcat-col_pos.
      MOVE 'FREE_TEXT' TO wa_fieldcat-fieldname.
      MOVE 'C'         TO wa_fieldcat-inttype.
      MOVE '20'        TO wa_fieldcat-intlen.
      MOVE 'Text'      TO wa_fieldcat-coltext.
      APPEND wa_fieldcat TO it_fieldcat.
    ENDFORM.                    " fill_catalog
    *&      Form  fill_layout
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_layout.
    * Field that identify color line in internal table
      MOVE 'COLOR_LINE' TO is_layout-info_fname.
    * Field that identify cell color in inetrnal table
      MOVE 'COLOR_CELL' TO is_layout-ctab_fname.
    ENDFORM.                    " fill_layout

  • How do I change the background color of my canvas in FCPX?, How do I change the background color of my canvas in FCPX?

    How do I change the background color of my canvas in FCPX? I changed it from black to checkered but would like to return it to it's orginal settings.
    Thanks

    You can change the background display color in the playback preferences, either black, white, or checkerboard. This does not change the output color. If you want to add a color to the video, you have to place a custom generator underneath your video and change the color in the inspector.

  • Printing AnyGantt creates black background color

    I use a customized AnyGantt chart. When I try to print it on a page A3 I get a mean issue with the background color. It becomes black. The Chart itself looks good.
    When I try the same with examples from AnyChart.com the no black background appears. I don't see a difference.
    The black background occurs with my PDF Creator, my real printer and if I save it as a picture.
    Example application: http://apex.oracle.com/pls/apex/f?p=ANYGANTT_PROBLEM:1
    If you add my source code as XML data you should see a nice Gantt diagram with damn printing problems!
    Here is my source code:
    <?xml version = "1.0" encoding="UTF-8" standalone = "yes"?>
    <anygantt>
      <settings>
        <print mode="SinglePage">
           <margin left="10" top="80" bottom="20" right="10" />
        </print>
        <navigation enabled="True" position="Top" size="30">
           <buttons collapse_expand_button="false" align="Far"/>
              <text>AU 2011</text>
              <font face="Verdana" size="10" bold="true" color="White"/>
              <background>
                 <fill type="Gradient">
                    <gradient>
                       <key color="#B0B0B0" position="0"/>
                       <key color="#A0A0A0" position="0.3"/>
                       <key color="#999999" position="0.5"/>
                       <key color="#A0A0A0" position="0.7"/>
                       <key color="#B0B0B0" position="1"/>
                    </gradient>
                 </fill>
                 <border type="Solid" color="#494949"/>
              </background>
        </navigation>
      </settings>
      <styles>
        <defaults>
          <period>
            <period_style>
              <tooltip>
                <text>
    Description: {%activity}
    Time: {%start} - {%end}
                </text>
              </tooltip>
            </period_style>
         </period>
       </defaults>
       <period_styles>
          <period_style name="1"><bar_style><middle shape="Full"><fill enabled="true" type="Solid" color="#64b1db"></fill><border enabled="true" color="#4983a3"></border></middle><labels><label anchor="Center" valign="Center" halign="Center"><text>{%anzeige_text}</text><font face="Verdana" size="11" bold="false" color="Black"></font></label></labels></bar_style></period_style>
          <period_style name="2"><bar_style><middle shape="Full"><fill enabled="true" type="Solid" color="#eaac85"></fill><border enabled="true" color="#c4896f"></border></middle><labels><label anchor="Center" valign="Center" halign="Center"><text>{%anzeige_text}</text><font face="Verdana" size="11" bold="false" color="Black"></font></label></labels></bar_style></period_style>
          <period_style name="5"><bar_style><middle shape="Full"><fill enabled="true" type="Solid" color="#337d1c"></fill><border enabled="true" color="#1a3e0e"></border></middle><labels><label anchor="Center" valign="Center" halign="Center"><text>{%anzeige_text}</text><font face="Verdana" size="11" bold="false" color="Black"></font></label></labels></bar_style></period_style>
          <period_style name="6"><bar_style><middle shape="Full"><fill enabled="true" type="Solid" color="#56d7bf"></fill><border enabled="true" color="#49a386"></border></middle><labels><label anchor="Center" valign="Center" halign="Center"><text>{%anzeige_text}</text><font face="Verdana" size="11" bold="false" color="Black"></font></label></labels></bar_style></period_style>
          <period_style name="7"><bar_style><middle shape="Full"><fill enabled="true" type="Solid" color="#ef9c34"></fill><border enabled="true" color="#a05f0d"></border></middle><labels><label anchor="Center" valign="Center" halign="Center"><text>{%anzeige_text}</text><font face="Verdana" size="11" bold="false" color="Black"></font></label></labels></bar_style></period_style>
          <period_style name="8"><bar_style><middle shape="Full"><fill enabled="true" type="Solid" color="#d043c3"></fill><border enabled="true" color="#7e2075"></border></middle><labels><label anchor="Center" valign="Center" halign="Center"><text>{%anzeige_text}</text><font face="Verdana" size="11" bold="false" color="Black"></font></label></labels></bar_style></period_style>
          <period_style name="9"><bar_style><middle shape="Full"><fill enabled="true" type="Solid" color="#cccd18"></fill><border enabled="true" color="#767713"></border></middle><labels><label anchor="Center" valign="Center" halign="Center"><text>{%anzeige_text}</text><font face="Verdana" size="11" bold="false" color="Black"></font></label></labels></bar_style></period_style>
          <period_style name="10"><bar_style><middle shape="Full"><fill enabled="true" type="Solid" color="#87aa22"></fill><border enabled="true" color="#617a1a"></border></middle><labels><label anchor="Center" valign="Center" halign="Center"><text>{%anzeige_text}</text><font face="Verdana" size="11" bold="false" color="Black"></font></label></labels></bar_style></period_style>
          <period_style name="11"><bar_style><middle shape="Full"><fill enabled="true" type="Solid" color="#124c87"></fill><border enabled="true" color="#0d3a68"></border></middle><labels><label anchor="Center" valign="Center" halign="Center"><text>{%anzeige_text}</text><font face="Verdana" size="11" bold="false" color="Black"></font></label></labels></bar_style></period_style>
       </period_styles>
    </styles>
      <timeline>
        <plot line_height="50" item_height="44" item_padding="3"/>
        <scale start="2011.2.1" end="2012.2.1" >
          <patterns>
            <years>
              <pattern>%yyyy</pattern>
            </years>
            <months>
              <pattern>%MMMM</pattern>
              <pattern is_lower="true">%MMMM</pattern>
            </months>
            <weeks>
              <pattern>KW %e</pattern>
              <pattern is_lower="true">KW %e</pattern>
            </weeks>
            <days>
              <pattern>%dd</pattern>
              <pattern is_lower="true">%dd</pattern>
            </days>
          </patterns>
          <zoom>
            <maximum date_unit="Month" pixels="180" />
          </zoom>
        </scale>
      </timeline>
      <datagrid enabled="true" width="180">
          <columns>
            <column width="180" cell_align="Left">
                <header><text>Categories</text></header>
                <format>{%Name}</format>
            </column>
        </columns>
      </datagrid>
      <resource_chart>
        <resources>
          <resource name="AA" id="102"><attributes><attribute name="code">Das Test Test Test Test für Test Test Test im Jahr</attribute></attributes></resource>
          <resource name="BB WP" id="103"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="CC SP" id="104"><attributes><attribute name="code">Test SP</attribute></attributes></resource>
          <resource name="DD" id="105"><attributes><attribute name="code">Test</attribute></attributes></resource>
          <resource name="EE" id="106"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="FF" id="107"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="GG" id="108"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="HH" id="109"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="II" id="110"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="MM" id="111"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="NN" id="112"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="KK" id="113"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="RR" id="114"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="TT / PR" id="115"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="SS" id="116"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="XX" id="117"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="ZZ" id="118"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="QQ" id="119"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="Test (1)" id="120"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="Test (2)" id="121"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="Test (3)" id="122"><attributes><attribute name="code"></attribute></attributes></resource>
          <resource name="Test (4)" id="123"><attributes><attribute name="code"></attribute></attributes></resource>
        </resources>
        <periods>
          <period resource_id="104" name="112" start="2012.1.30" end="2012.2.26" style="8"><attributes><attribute name="activity">asdsadasdsad</attribute><attribute name="anzeige_text">666666</attribute></attributes></period>
          <period resource_id="106" name="118" start="2011.2.18" end="2011.3.9" style="1"><attributes><attribute name="activity">asdfasdfsadf </attribute><attribute name="anzeige_text">234324324234</attribute></attributes></period>
          <period resource_id="105" name="117" start="2011.4.18" end="2011.4.9" style="1"><attributes><attribute name="activity">asdfasdfasdf -</attribute><attribute name="anzeige_text">345435435</attribute></attributes></period>
          <period resource_id="107" name="120" start="2011.1.18" end="2011.2.9" style="1"><attributes><attribute name="activity">adfasdfsdaf</attribute><attribute name="anzeige_text">4534535435</attribute></attributes></period>
          <period resource_id="104" name="111" start="2011.2.28" end="2011.8.28" style="2"><attributes><attribute name="activity">afesdfsf</attribute><attribute name="anzeige_text">G33333t</attribute></attributes></period>
          <period resource_id="104" name="110" start="2011.1.31" end="2011.2.27" style="7"><attributes><attribute name="activity">Vadfsdfsdf</attribute><attribute name="anzeige_text">1111222</attribute></attributes></period>
          <period resource_id="105" name="114" start="2011.1.3" end="2011.1.17" style="9"><attributes><attribute name="activity">adsfsdf</attribute><attribute name="anzeige_text">9999</attribute></attributes></period>
          <period resource_id="109" name="121" start="2011.1.3" end="2011.1.17" style="1"><attributes><attribute name="activity">adfsfddsafe_text">99997777</attribute></attributes></period>
          <period resource_id="108" name="116" start="2011.1.3" end="2011.1.17" style="9"><attributes><attribute name="activity">aedsfasdf </attribute><attribute name="anzeige_text">9999</attribute></attributes></period>
          <period resource_id="106" name="115" start="2011.1.3" end="2011.1.17" style="9"><attributes><attribute name="activity">adfsf </attribute><attribute name="anzeige_text">*1231237,95 €</attribute></attributes></period>
          <period resource_id="105" name="119" start="2011.2.10" end="2011.3.6" style="1"><attributes><attribute name="activity">999 - 06.03</attribute></attributes></period>
          <period resource_id="102" name="106" start="2011.6.15" end="2011.8.29" style="1"><attributes><attribute name="activity">Soasdfasdfext">Sommerlaune</attribute></attributes></period>
          <period resource_id="102" name="113" start="2011.8.30" end="2011.12.23" style="2"><attributes><attribute name="activity">Eiasdasdttribute</attribute><attribute name="anzeige_text">888888</attribute></attributes></period>
          <period resource_id="102" name="105" start="2011.3.30" end="2011.6.14" style="2"><attributes><attribute name="activity">FamasdsadW 23</attribute><attribute name="anzeige_text">88 +77</attribute></attributes></period>
          <period resource_id="115" name="125" start="2011.5.30" end="2011.7.14" style="11"><attributes><attribute name="activity">Familsdasdofrost* - </attribute><attribute name="anzeige_text">999</attribute></attributes></period>
          <period resource_id="103" name="108" start="2011.8.1" end="2011.8.28" style="6"><attributes><attribute name="activity">Verasdasdung WP</attribute><attribute name="anzeige_text">333</attribute></attributes></period>
          <period resource_id="103" name="109" start="2011.8.29" end="2012.3.4" style="5"><attributes><attribute name="activity">Güsdsadkeit</attribute><attribute name="anzeige_text">11133</attribute></attributes></period>
          <period resource_id="109" name="122" start="2011.10.7" end="2011.12.29" style="8"><attributes><attribute name="activity">Osasdasdkte - </attribute><attribute name="anzeige_text">111</attribute></attributes></period>
          <period resource_id="115" name="124" start="2011.1.18" end="2011.3.29" style="10"><attributes><attribute name="activity">Leicasdasdnährung - </attribute><attribute name="anzeige_text">234324</attribute></attributes></period>
          <period resource_id="102" name="104" start="2011.1.18" end="2011.3.29" style="1"><attributes><attribute name="activity">ssa in den asfasfen FrühlsfsafKW 12</attribute><attribute name="anzeige_text">2222</attribute></attributes></period>
          <period resource_id="112" name="123" start="2011.1.18" end="2011.3.29" style="2"><attributes><attribute name="activity">soasfosfasfthlon - </attribute><attribute name="anzeige_text">9999</attribute></attributes></period>
          <period resource_id="103" name="107" start="2011.1.3" end="2011.2.27" style="5"><attributes><attribute name="activity">Gülasdfrteilung - Gasfasf Vasdeilung</attribute><attribute name="anzeige_text">123123</attribute></attributes></period>
        </periods>
      </resource_chart>
      </anygantt>Edited by: Tobias Arnhold on Feb 3, 2011 11:28 AM

    For your information. I opened a ticket by AnyChart:
    Hi AnyChart-team!
    I have a huge problem with printing an AnyGantt chart.
    The description of problem:
    When I use the following syntax in my style section:
      <styles>
       <period_styles>
        <period_style name="p1">
          <bar_style>
            <labels>
              <label>
                <text>{%start}</text>
                <font color="Black" />
              </label>
            </labels>
            <middle shape="Full">
              <fill enabled="true" type="Solid" color="DarkSeaGreen" />
              <border enabled="true" color="#656565" />
            </middle>
          </bar_style>
            </period_style>
        </period_styles>
      </styles>The print output crashes with the effect that some shapes are not visible anymore. If I use no Label styles then it works:
      <styles>
       <period_styles>
        <period_style name="p1">
          <bar_style>
            <middle shape="Full">
              <fill enabled="true" type="Solid" color="DarkSeaGreen" />
              <border enabled="true" color="#656565" />
            </middle>
          </bar_style>
            </period_style>
        </period_styles>
      </styles>I came along another issue with an old Flash Player version and tried the newest one: 10,1,102,64
    Then this issue came up. In the older version: 10,8,84 it worked without any issues.
    The PDF: Flash.pdf shows the problem.
    I do not understand the black background color inside the PDF either?
    XML file with all settings that cause the problem: Example from http://www.anychart.com/products/anygantt/docs/users-guide/index.html (Visual Settings)
    <anygantt>
      <styles>
       <period_styles>
        <period_style name="p1">
          <bar_style>
            <labels>
              <label>
                <text>{%start}</text>
                <font color="Black" />
              </label>
            </labels>
            <middle shape="Full">
              <fill enabled="true" type="Solid" color="DarkSeaGreen" />
              <border enabled="true" color="#656565" />
            </middle>
          </bar_style>
            </period_style>
        </period_styles>
      </styles>
      <resource_chart>
        <resources>
          <resource id="res_1" name="Resource 1"/>
          <resource id="res_2" name="Resource 2"/>
          <resource id="res_3" name="Resource 3"/>
          <resource id="res_4" name="Resource 4"/>
        </resources>
        <periods use_hand_cursor="false">
          <period resource_id="res_1" start="2008.01.13" end="2008.04.25" style="p1"/>
          <period resource_id="res_1" start="2008.06.01" end="2008.11.29" style="p1"/>
          <period resource_id="res_2" start="2008.03.18" end="2008.08.14" style="p1"/>
          <period resource_id="res_2" start="2008.09.10" end="2008.12.18" style="p1"/>
          <period resource_id="res_3" start="2008.01.22" end="2008.04.29" style="p1"/>
          <period resource_id="res_3" start="2008.06.03" end="2008.08.14" style="p1"/>
          <period resource_id="res_3" start="2008.09.02" end="2008.12.07" style="p1"/>
          <period resource_id="res_4" start="2008.02.27" end="2008.11.01" style="p1"/>
        </periods>
      </resource_chart>
      <datagrid width="136">
        <columns>
          <column width="30">
            <header>
              <text>#</text>
            </header>
            <format>{%RowNum}</format>
          </column>
          <column attribute_name="Name" width="100">
            <header>
              <text>Resource</text>
            </header>
            <format>{%Name}</format>
          </column>
        </columns>
      </datagrid>
      <timeline>
        <scale start="2008.01.01." end="2009.01.01"/>
        <plot line_height="30" item_height="20" item_padding="5"/>
      </timeline>
      <settings>
        <background enabled="false"/>
        <navigation>
          <buttons collapse_expand_button="false"/>
        </navigation>
      </settings>
    </anygantt>
    Version of product that you're using:
    AnyGantt 4.1.0
    Adobe Flash Player 10,1,102,64
    Answer:
    Tobias,
    we are working on the several printing issues now and will be releasing a new version in a week or two, I hope this bug will be fixed too.
    Have a good day,
    AnyChart
    Edited by: Tobias Arnhold on Feb 4, 2011 9:38 AM

  • Background color in Full screen mode

    Can you change the color of the background around the project when publishing in full screen mode? I can only get it to view in white.

    Hi there,
    .exe cannot have an HTML background, so changing HTML background will not reflect in .exe output. There is no feature that we can change the background color for .exe output.
    Thanks.

  • How to download background color of ALV with button "Export to Excel"

    Dear Experts:
    I can download the data of ALV in webdynpro for ABAP, but the color is missing.
    Does anybody know how to download background color of the ALV cells also by "Export to Excel" button?
    Could anybody help on this?
    Thanks in advance!
    Best Regards
    Lingxing Meng

    never experienced that...
    [chk this link|Download colored ALV output in to EXCEL sheet;
    a couple of intersting posts, they talk abt general ALV...
    try one of the last post ...when downloading
    use local file->HTML only.. but while choosing the file location to save give extension as XLS.

  • IWeb 09 color output messed up

    Hi,
    I have an iWeb site set up so that an iFrame photo gallery from another site is embedded inside my iweb page. Everything worked beautifully in iweb08. I have set up the embedded gallery so that the background colors are the same as the iweb page (333333) and it blends perfectly. Seems simple enough. web standard colors are web standard colors.
    I have just updated my sites to iWeb09 and everything looks great *within iWeb*. iWeb connects to the internet and the preview loads the embedded website and it looks identical to my iWeb08 site. BUT when I publish this site and view it (firefox/safari - windows and mac) the iweb-created site background suddenly appears much lighter (about 555555) than the embedded iframe gallery (333333).
    I notice that in the new iweb09 css file, colors are no longer displayed as HTML, but instead the RGB "equivalents". This seems to be the only difference between my old iweb08 css and the new iweb09 css. So I simply replaced the new with the old...Same color problems. *What am I missing?* *What could be corrupting the color output in iWeb 09??* This is really annoying and for now I should probably just revert to iweb08 on my external backup drive. I guess I'll also pick apart all of iweb09's output files to try to find the problem html or css.
    Why Apple? Why?????

    OK, so I read that support note several times from Apple and figured out how to use it as a workaround. In my case, I needed a background that was the same color as parts of the foreground elements for a seamless blend (a nav bar on the left, done with HTML snippit). It was driving me absolutely nuts trying to get a simple accurate RGB value generated from iWeb. RGB... hmmmmmm. Mucked with my snapshot color HMMMMMM....
    Ok, so RGB color spaces are commonly embedded in images, etc. I thought, well, what if iWeb is using that at the time of the assignment of a color to a object (like my stretchable square) and pre-screwing-up the color in the definition of the square? To work around, I would have to do the gamma hokie pokie so my RGB color space was something that iWeb would be happy with... generate the square of color, then set the color space back. In theory, this should give me a proper value for the square's color on output (matches what everyone sees in the &^#% browser). Badda boom, badda bing, it worked:
    Steps:
    1) set your monitor color space to sRGB IEC61966 in the System Prefs under Display, Color tab
    2) generate your evil iWeb color square of death using the Color Picker and the magnifying glass to select the onscreen color you want to match.
    3) set your monitor back to the *normal* setting (Apple Cinema Display for example)
    When you want to use that color, copy that square and paste it. It will carry the proper RGB around with it (or at least it is working for me right now...)
    Now, if anyone else uses this approach with a color different than Navy blue, please indicate and also indicate of the grey dog ear was on your problem color when this all started.

  • Set Background color for headers in excel

    DECLARE
       v_fh     UTL_FILE.file_type;
       v_dir    VARCHAR2 (30)      := 'my dir';
       v_file   VARCHAR2 (30)      := 'test.xls';
       PROCEDURE run_query (p_sql IN VARCHAR2)
       IS
          v_v_val   VARCHAR2 (4000);
          v_n_val   NUMBER;
          v_d_val   DATE;
          v_ret     NUMBER;
          c         NUMBER;
          d         NUMBER;
          col_cnt   INTEGER;
          f         BOOLEAN;
          rec_tab   DBMS_SQL.desc_tab;
          col_num   NUMBER;
       BEGIN
          c := DBMS_SQL.open_cursor;
          -- parse the SQL statement
          DBMS_SQL.parse (c, p_sql, DBMS_SQL.native);
          -- start execution of the SQL statement
          d := DBMS_SQL.EXECUTE (c);
          -- get a description of the returned columns
          DBMS_SQL.describe_columns (c, col_cnt, rec_tab);
          -- bind variables to columns
          FOR j IN 1 .. col_cnt
          LOOP
             CASE rec_tab (j).col_type
                WHEN 1
                THEN
                   DBMS_SQL.define_column (c, j, v_v_val, 4000);
                WHEN 2
                THEN
                   DBMS_SQL.define_column (c, j, v_n_val);
                WHEN 12
                THEN
                   DBMS_SQL.define_column (c, j, v_d_val);
                ELSE
                   DBMS_SQL.define_column (c, j, v_v_val, 4000);
             END CASE;
          END LOOP;
          -- Output the column headers
          UTL_FILE.put_line (v_fh, '<ss:Row>');
          FOR j IN 1 .. col_cnt
          LOOP
             UTL_FILE.put_line (v_fh, '<ss:Cell>');
             UTL_FILE.put_line (v_fh,
                                   '<ss:Data ss:Type="String">'
                                || rec_tab (j).col_name
                                || '</ss:Data>'
             UTL_FILE.put_line (v_fh, '</ss:Cell>');
          END LOOP;
          UTL_FILE.put_line (v_fh, '</ss:Row>');
          -- Output the data
          LOOP
             v_ret := DBMS_SQL.fetch_rows (c);
             EXIT WHEN v_ret = 0;
             UTL_FILE.put_line (v_fh, '<ss:Row>');
             FOR j IN 1 .. col_cnt
             LOOP
                CASE rec_tab (j).col_type
                   WHEN 1
                   THEN
                      DBMS_SQL.COLUMN_VALUE (c, j, v_v_val);
                      UTL_FILE.put_line (v_fh, '<ss:Cell>');
                      UTL_FILE.put_line (v_fh,
                                            '<ss:Data ss:Type="String">'
                                         || v_v_val
                                         || '</ss:Data>'
                      UTL_FILE.put_line (v_fh, '</ss:Cell>');
                   WHEN 2
                   THEN
                      DBMS_SQL.COLUMN_VALUE (c, j, v_n_val);
                      UTL_FILE.put_line (v_fh, '<ss:Cell>');
                      UTL_FILE.put_line (v_fh,
                                            '<ss:Data ss:Type="Number">'
                                         || TO_CHAR (v_n_val)
                                         || '</ss:Data>'
                      UTL_FILE.put_line (v_fh, '</ss:Cell>');
                   WHEN 12
                   THEN
                      DBMS_SQL.COLUMN_VALUE (c, j, v_d_val);
                      UTL_FILE.put_line (v_fh,
                                         '<ss:Cell ss:StyleID="OracleDate">'
                      UTL_FILE.put_line (v_fh,
                                            '<ss:Data ss:Type="DateTime">'
                                         || TO_CHAR (v_d_val,
                                                     'YYYY-MM-DD"T"HH24:MI:SS'
                                         || '</ss:Data>'
                      UTL_FILE.put_line (v_fh, '</ss:Cell>');
                   ELSE
                      DBMS_SQL.COLUMN_VALUE (c, j, v_v_val);
                      UTL_FILE.put_line (v_fh, '<ss:Cell>');
                      UTL_FILE.put_line (v_fh,
                                            '<ss:Data ss:Type="String">'
                                         || v_v_val
                                         || '</ss:Data>'
                      UTL_FILE.put_line (v_fh, '</ss:Cell>');
                END CASE;
             END LOOP;
             UTL_FILE.put_line (v_fh, '</ss:Row>');
          END LOOP;
          DBMS_SQL.close_cursor (c);
       END;
       PROCEDURE start_workbook
       IS
       BEGIN
          UTL_FILE.put_line (v_fh, '<?xml version="1.0"?>');
          UTL_FILE.put_line
             (v_fh,
              '<ss:Workbook xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">'
       END;
       PROCEDURE end_workbook
       IS
       BEGIN
          UTL_FILE.put_line (v_fh, '</ss:Workbook>');
       END;
       PROCEDURE start_worksheet (p_sheetname IN VARCHAR2)
       IS
       BEGIN
          UTL_FILE.put_line (v_fh,
                             '<ss:Worksheet ss:Name="' || p_sheetname || '">'
          UTL_FILE.put_line (v_fh, '<ss:Table>');
       END;
       PROCEDURE end_worksheet
       IS
       BEGIN
          UTL_FILE.put_line (v_fh, '</ss:Table>');
          UTL_FILE.put_line (v_fh, '</ss:Worksheet>');
       END;
       PROCEDURE set_date_style
       IS
       BEGIN
          UTL_FILE.put_line (v_fh, '<ss:Styles>');
          UTL_FILE.put_line (v_fh, '<ss:Style ss:ID="OracleDate">');
          UTL_FILE.put_line
                           (v_fh,
                            '<ss:NumberFormat ss:Format="dd/mm/yyyy\ hh:mm:ss"/>'
          UTL_FILE.put_line (v_fh, '</ss:Style>');
          UTL_FILE.put_line (v_fh, '</ss:Styles>');
       END;
    BEGIN
       v_fh := UTL_FILE.fopen (v_dir, v_file, 'w', 32767);
       start_workbook;
       set_date_style;
       start_worksheet ('OM');
       run_query ('select PARTY_ID,PARTY_NAME from HZ_PARTIES
        where PARTY_ID<1080');
       end_worksheet;
       start_worksheet ('PO');
       run_query ('SELECT AGENT_ID,TYPE_LOOKUP_CODE FROM PO_HEADERS_ALL
            WHERE PO_HEADER_ID<20');
       end_worksheet;
       end_workbook;
       UTL_FILE.fclose (v_fh);
    END;
    Here i will get two outputs in same excel with different spread sheets,
    now i want to set background color for headers i
    ex:PARTY_ID,PARTY_NAME,AGENT_ID,TYPE_LOOKUP_CODE are the headers,in excel output i want background color as blue.
    Please do need full help,its urgent req.

    Hello,
    open the file in Excel and save it, just to ensure that Excel writes all the additional stuff it thinks is necessary.
    Now change the background colour of the header and save the file again but with a different name.
    Open both files in a text editor and look at the differences. That's what you need to change in your code.
    Alternatively you can use packages like xml_spreadsheet or ExcelDocumentType, both write the same file format that you use in your code and you don't have to reinvent the wheel.
    Regards
    Marcus

  • Change the background color in a report cell - td bgcolor

    Hi.
    I have a report in which I would like to change the background color of a table cell based on some values in the underlying query
    If Column A > Column B and Column C > 10, I want to color the background green. In my cgi , this was easy, but in apex, even if I write the query to output html, won't everything already be wrapped in the <td></td> tags? Is there any way around this?
    Thanks

    Mike ,
    With the above solution you can conditionally fill the report cell with a particular color and not the entire row set. If you want to highlight entire row, you have to do something different. Take a look at this jQuery function
    Step 1 . Download jquery http://code.jquery.com/jquery-1.4.2.min.js
    Step 2. Upload it to apex image folder using shared component.
    Step 3. In the page header put the following code
    <script src="#WORKSPACE_IMAGES#jquery-1.4.js" type="text/javascript" ></script>
    <script type="text/javascript">
    $(document).ready(function(){
         if ($('.apexir_WORKSHEET_DATA').length > 0) {
              function HighLightRows(){
                                       $("table.apexir_WORKSHEET_DATA tbody td:has(COLOR_GRAY)").siblings().addClass('greentd');
                                       $("table.apexir_WORKSHEET_DATA tbody td:has(COLOR_GRAY)").addClass('greentd');
                                       $("table.apexir_WORKSHEET_DATA tbody td:has(COLOR_GREEN)").siblings().addClass('graytd');
                                       $("table.apexir_WORKSHEET_DATA tbody td:has(COLOR_GREEN)").addClass('graytd');
         // This time out is required since after the report is refreshed via AJAX,
                                  setTimeout(function(){HighLightRows();},1000);
         }//if
    HighLightRows();
    </script>
    <style type="text/css">
    .apexir_WORKSHEET_DATA td.greentd
    background-color: green !important;
    .apexir_WORKSHEET_DATA td.graytd
    background-color: gray !important;
    </style>
    Step 4. Change the SQL Query to
    SELECT
         SALE_DATE
         ,PRODUCT_NAME
         ,PRODUCT_ID
         , CASE WHEN SALE_DATE > ADD_MONTHS(SYSDATE,-2) THEN
                     '<COLOR_GREEN>&#38;nbsp;</COLOR_GREEN>'
              ELSE
                      '<COLOR_GRAY>&#38;nbsp;</COLOR_GRAY>'
         PRODUCT_NAME_COLOR
    FROM SALES;
    Step 5. Make this new column PRODUCT_NAME_COLOR visible and in the column heading u can just put &#38;nbsp;.
    As long as this column will be available for display you will see the conditional highlighting.Thanks,
    Manish

  • Cell/Background color changes when copying to other Excel 2010 document

    When you copy and paste report cells (e.g. CO report outputted in Office integration, MS Excel) to a new Excel file, the background color changed dramatically (to bright red).
    SAP Theme:  SAP Signature Theme
    Excel 2010
    We tried paste option > match destination formatting but does not help.
    Anyone has similiar problems?  Appreciate any help.

    dear friend,
    you would do:
    1. search SAP Notes;
    2. check out the updates/patches for your MS Office;
    3. replicate it on another computer/another sap user (make sure it is a local issue)
    good luck!

  • Reg:Logo Background Color

    Hi Experts,
    I have uploaded the logo using the transaction se78.when i refer the logo in the smartform,output of the logo background color is in grey color.I need it in white color.Could you please help me out on this issue ?
    Thanks & Regards,
    R.Dhineshraj.

    If you use a true color graphic with more than 256 colors, while uploading a graphic to the SAP system, the graphic isconverted to a graphic with 256 colors. During the conversion some color information can get lost.
    Check whether your graphic contains more than 256 colors. If it oes, then convert it to a 256 color graphic before the upload via a graphic tool. Then the color should not be changed any more in SAP.
    Regards,
    Aidan

  • Change background color in a JPopupMenu?

    Hello. I've been trying to change the background color of a JPopupMenu, so far with no success.
    I've tried:
    + invoke setBackground() along with setOpaque()
    + subclass JPopupMenu and provide the following method:
         public void paintComponent(Graphics g) {
              g.setColor(new Color(0,0,0));
              g.fillRect(0, 0,100,100);
              super.paintComponent(g);
         (Ignore the numbers in fillRect() -- I'm just trying to see any effect at all!)
    + change the relevant(??) properties in the UIManager:
         UIManager.getDefaults().put("PopupMenu.background",Color.BLUE);
         UIManager.put("PopupMenu.background",Color.BLUE);
         SwingUtilities.updateComponentTreeUI(c);
         updateUI();
         (and various combinations of similar things).
    OK, none of these seems to have any effect whatsoever. In case it matters, I am using Java 1.4.1 on Mac OSX.
    Thanks heaps for any guidance here.

    JPopupMenu just handles its JMenuItems.
    A JMenuItem is what gets painted, you can
    directly set the background color. When the
    item is selected it gets the LAF color.
    For example, change PopupMenuDemo with
        public void createPopupMenu() {
            JMenuItem menuItem;
         // set selection color before creating the items
         UIManager.put("MenuItem.selectionBackground", Color.pink); // <=== add this
            //Create the popup menu.
            JPopupMenu popup = new JPopupMenu();
            menuItem = new JMenuItem("A popup menu item");
            menuItem.setBackground(Color.red); // <=== add this
            menuItem.addActionListener(this);
            popup.add(menuItem);
            menuItem = new JMenuItem("Another popup menu item");
            menuItem.setBackground(Color.red); // <=== add this
            menuItem.addActionListener(this);
            popup.add(menuItem);
            //Add listener to the text area so the popup menu can come up.
            MouseListener popupListener = new PopupListener(popup);
            output.addMouseListener(popupListener);
        }

  • Canvas background color

    I am trying to place a wide screen matt in the canvas. However the canvas background is grey....and the mask applied to the actual picture is black....how do I change the background color in the canvas so it is all black?
    g5   Mac OS X (10.4.4)  

    The grey you are seeing won't show up in any Quicktime export or tape output. It is just the area surrounding your VIEWABLE are. If you resize the window or go to the WINDOW menu and choose a workspace preset, like TWO-UP then it will go away. But it is nothing that will appear on your footage.
    Shane

  • Why background color only works partially?

    Hi,
    I've tried to use "<d_iv class="myclass">" || #columnvalue#|| "</d_iv>" (it's div actually) in the query to make a specific column to be red at the background. Just like this:
    http://tinypic.com/view/?pic=rkx8c4
    However, it seems the color only applies partially, not fill the cell completely. Any hints? Thanks.

    Hi Carl and Vikas,
    Thanks for the help. However I tried to follow the EXACT way Vikas did but got this kinda output:
    http://i1.tinypic.com/rtqr1l.jpg
    The other weird thing was that I have to always manually put
    '<d_iv class="foo"> ||#column# ||'</d_iv>' (it's div actually) into the query to make the style works, otherwise there is no effect at all, although I put the marker class to be the CSS class for the specific column.
    I am using a customized generic column report template to render different row colors. I am not sure whether that's the reason which caused the problem. The templat uses the value of a column to decide the background color of rows.
    Any work around of this? Thanks.

Maybe you are looking for

  • How do I add two cells in Numbers

    I know the answer must be really simple, but so far I cannot manage to do a simple calculations. All I want to do is add figures from two seperate cells E30 and E31. Each of these cells have the sub totals of cells above, and I just want to have the

  • I cal si chiude inaspettatamente

    I Cal si chiude inaspettatamente da qualche giorno. Cosa devo fare?

  • Skype 7.4 Wont Open...

    Hi, I am not just making this because I don't want to look. I have looked everywhere over the forums so I had to come to my last resort. So I reinstalled my fonts then closed skype and tried opening it, and it stopped working. It shows in the "show h

  • I can't see thumbnails!

    All my photos are still there, but each photo takes up the whole screen, and the only way to view them is to scroll up and down. When I go to view, the option "Hide thumbnails" is not highlighted and available for selection. I have never had this pro

  • Exception in KeyboardManager

    I writing a GUI which consists of several windows with menu bars. Only in one of the windows, any menu item selection causes an exception to be thrown from the KeyboardManager, and about the same exception happens when i use the X button to close the