Color of CheckBox

Hi,
Currently, the color of the checkBox is Grey. I want it to be White so that it looks "enabled". How can I do it?
I understand setEnable(), but it doesn't change the color of the "BOX".
Any help is appreciated.
Thanks in advance.
Rajeev.

Well... How the checkbox looks depends on the look and feel you're using; if you're getting the grey box, it sounds like you're using the default metal look and feel in 1.4. May I suggest that rather than setting the color of the checkbox to a color you think it should be, you set the look and feel decide? i.e. in Windows it will not show a box at all (but will show a check when selected), in motif it'll show a 3d box, etc? use the following code to achieve this:
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
catch (Exception e) {
e.printStackTrace();
}

Similar Messages

  • Set BACKGROUND COLOR of checkbox to DEFAULT color of form

    Does anyone know how to set the background color of a checkbox to the default color of the form? I have tried using SET_ITEM_PROPERTY to no avail. On a related issue, seems once any color is changed from "<UNSPECIFIED>" (i.e. default) to any other color, there is no way to return it to the "<UNSPECIFIED>" state.
    Any insight would be appreciated!

    To return to unspecified, click the property, then click the Inherit icon at the top of the property palette. Doing this should make the checkbox area (not the box itself) the same as the canvas color.

  • Changing Label color of Checkbox

    Is there a way to change the text color of a Checkbox in Interface Builder?
    Mine is stuck on the color Black.
    I could remove the Checkbox label and add a normal label that can be colorized but that is a bit of a pain to deal with.
    thx!

    Sure. In the Mouse Up event of a check box, do something like:
    // Mouse Up script for check box
    if (event.target.value === "Off") {
        event.target.fillColor = color.red;
    } else {
        event.target.fillColor = color.green;
    This can be simplified to just:
    event.target.fillColor = event.target.value === "Off" ? color.red : color.green;

  • ALV wrong (blank) Cell Color in Checkbox-Column

    I have several columns with checkboxes in an ALV. (Editor = Checkbox)
    The color is set with set_cell_design_fieldname( ).
    Some of the cells are set to invisible with set_visible_fieldname(  )
    For these cells the value for the cell design is cl_wd_abstr_master_table_col=>e_cell_design-standard.
    Some of these (invisible) cells are displayed with white color.
    Most of the cells are correctly displayed in light blue.
    Service-Pack level is 15. (SAP_BASIS)
    Thanks in advance
    Bernhard

    Valid values for Color are from 1 to 7. So in your Loop at IT_EKPO as you are assigning LD_Color with Sy-tabix value, the first 7 are getting different colors and the remaining 8,9,10 are getting default color as color value 8,9,10 are invalid. Check the below logic which would generate 1 to 7 for the sy-tabix value 1 to 10.
    LOOP AT IT_EKPO into wa_ekpo.
    LD_color = ( SY-TABIX - 1 ) mod 7 + 1.  " Returns 1 to 7 for different Sy-tabix values
    WA_CELLCOLOR-FNAME = 'EBELN'.
    WA_CELLCOLOR-COLOR-COL = LD_color.
    WA_CELLCOLOR-COLOR-INT = '1'.
    ..... " Existing logic
    ENDLOOP.

  • How to color a specific cell in ALV (not REUSE_ALV_GRID_DISPLAY)

    Hi
    I want to change color font or background to a specify position in ALV grid
    It is possible but by creating ALV container (not FM for example REUSE_ALV_GRID_DISPLAY)?

    Hi,
    REPORT ZALV_LIST1.
    TABLES:
    SPFLI.
    TYPE-POOLS:
    SLIS.
    PARAMETERS:
    P_COL TYPE I ,
    P_ROW TYPE I,
    P_COLOR(4) TYPE C .
    DATA:
    T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
    FS_FIELDCAT LIKE LINE OF T_FIELDCAT,
    FS_LAYOUT TYPE SLIS_LAYOUT_ALV ,
    W_COLOR(4) ,
    W_ROW TYPE I,
    W_FIELDNAME(20),
    W_PROG TYPE SY-REPID.
    DATA:
    BEGIN OF T_SPFLI OCCURS 0,
    COLOR(4),
    CHECKBOX ,
    CELL TYPE SLIS_T_SPECIALCOL_ALV,
    CARRID TYPE SPFLI-CARRID,
    CONNID TYPE SPFLI-CONNID,
    CITYFROM TYPE SPFLI-CITYFROM,
    CITYTO TYPE SPFLI-CITYTO,
    DISTANCE TYPE SPFLI-DISTANCE,
    END OF T_SPFLI.
    DATA:
    FS_CELL LIKE LINE OF T_SPFLI-CELL.
    SELECT *
    FROM SPFLI
    INTO CORRESPONDING FIELDS OF TABLE T_SPFLI.
    W_COLOR = P_COLOR.
    T_SPFLI-COLOR = P_COLOR.
    IF P_COL IS INITIAL AND P_ROW GT 0.
    MODIFY T_SPFLI INDEX P_ROW TRANSPORTING COLOR.
    ENDIF.
    FS_FIELDCAT-FIELDNAME = 'CARRID'.
    FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
    FS_FIELDCAT-COL_POS = 1.
    FS_FIELDCAT-KEY = 'X'.
    FS_FIELDCAT-HOTSPOT = 'X'.
    APPEND FS_FIELDCAT TO T_FIELDCAT.
    CLEAR FS_FIELDCAT .
    FS_FIELDCAT-FIELDNAME = 'CONNID'.
    FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
    FS_FIELDCAT-COL_POS = 2.
    FS_FIELDCAT-KEY = 'X'.
    FS_FIELDCAT-HOTSPOT = 'X'.
    APPEND FS_FIELDCAT TO T_FIELDCAT.
    CLEAR FS_FIELDCAT .
    FS_FIELDCAT-FIELDNAME = 'DISTANCE'.
    FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
    FS_FIELDCAT-COL_POS = 3.
    FS_FIELDCAT-KEY = ' '.
    FS_FIELDCAT-EDIT = 'X'.
    APPEND FS_FIELDCAT TO T_FIELDCAT.
    CLEAR FS_FIELDCAT.
    FS_FIELDCAT-FIELDNAME = 'CITYFROM'.
    FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
    FS_FIELDCAT-COL_POS = 4.
    FS_FIELDCAT-KEY = ' '.
    APPEND FS_FIELDCAT TO T_FIELDCAT.
    LOOP AT T_FIELDCAT INTO FS_FIELDCAT.
    IF FS_FIELDCAT-COL_POS EQ P_COL.
    FS_FIELDCAT-EMPHASIZE = P_COLOR.
    W_FIELDNAME = FS_FIELDCAT-FIELDNAME.
    IF P_ROW IS INITIAL AND P_COL GT 0.
    MODIFY T_FIELDCAT FROM FS_FIELDCAT TRANSPORTING EMPHASIZE.
    ENDIF.
    ENDIF.
    ENDLOOP.
    FS_CELL-FIELDNAME = W_FIELDNAME .
    FS_CELL-COLOR-COL = 6.
    FS_CELL-NOKEYCOL = 'X'.
    APPEND FS_CELL TO T_SPFLI-CELL.
    IF P_ROW IS NOT INITIAL AND P_COL IS NOT INITIAL.
    MODIFY T_SPFLI INDEX P_ROW TRANSPORTING CELL.
    ENDIF.
    FS_LAYOUT-INFO_FIELDNAME = 'COLOR'.
    FS_LAYOUT-BOX_FIELDNAME = 'CHECKBOX'.
    FS_LAYOUT-COLTAB_FIELDNAME = 'CELL'.
    FS_LAYOUT-F2CODE = '&ETA'.
    W_PROG = SY-REPID.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = W_PROG
    IS_LAYOUT = FS_LAYOUT
    IT_FIELDCAT = T_FIELDCAT
    TABLES
    T_OUTTAB = T_SPFLI
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2

  • How to select a color of cell in REUSE_ALV_HIERSEQ_LIST_DISPLAY

    Hi.
    I need to select a color of a cell in REUSE_ALV_HIERSEQ_LIST_DISPLAY.
    I have found an example, but 
    It shows how to select a color of sell in REUSE_ALV_LIST_DISPLAY.
    Can you give me an example of code?
    Thanks.

    Here ia a simple example of the method how to paint a cell / line / column using REUSE_ALV_HIERSEQ_LIST_DISPLAY  function.
      Programm:    zalv_hierseq_color
      Paint a line, a colomn, or a cell
      using REUSE_ALV_HIERSEQ_LIST_DISPLAY
      Victor Stupin, Russia 2009
    REPORT zalv_hierseq_color.
    TABLES: spfli.
    TYPE-POOLS: slis.
    SELECTION-SCREEN BEGIN OF BLOCK rad1.
    PARAMETERS:
            p_row TYPE i,
            p_col TYPE i.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN COMMENT /1(50) comm1.
    SELECTION-SCREEN COMMENT /1(50) comm2.
    SELECTION-SCREEN COMMENT /1(50) comm3.
    SELECTION-SCREEN END OF BLOCK rad1.
    INITIALIZATION.
      comm1 = 'Paint a line: fill ONLY p_row (p_col is empty)'.
      comm2 = 'Paint a colomn: fill ONLY p_col (r_row is empty)'.
      comm3 = 'Paint a cell: fill P_COL and R_ROW'.
      DATA:
            t_fieldcat TYPE slis_t_fieldcat_alv,
            fs_fieldcat LIKE LINE OF t_fieldcat,
            fs_layout TYPE slis_layout_alv ,
            w_color(4) ,
            w_row TYPE i,
            w_fieldname(20),
            w_prog TYPE sy-repid.
      DATA:
      BEGIN OF t_spfli OCCURS 0,
            color(4),
            checkbox ,
            cell     TYPE slis_t_specialcol_alv,
            carrid   TYPE spfli-carrid,
            connid   TYPE spfli-connid,
            cityfrom TYPE spfli-cityfrom,
            cityto   TYPE spfli-cityto,
            distance TYPE spfli-distance,
            keyln    TYPE int4,
            box      TYPE char1,
            lineno   TYPE int4,
      END OF t_spfli.
      DATA:
      fs_cell LIKE LINE OF t_spfli-cell.
      DATA: gt_item    LIKE TABLE OF t_spfli WITH HEADER LINE,
            gt_header  LIKE TABLE OF t_spfli WITH HEADER LINE,
            gs_keyinfo TYPE slis_keyinfo_alv.
    START-OF-SELECTION.
      SELECT *
      FROM spfli
      INTO CORRESPONDING FIELDS OF TABLE t_spfli.
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 1.
      fs_fieldcat-tabname = 'GT_HEADER'.
      fs_fieldcat-fieldname = 'CARRID'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = 'X'.
      fs_fieldcat-hotspot = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat .
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 2.
      fs_fieldcat-tabname = 'GT_HEADER'.
      fs_fieldcat-fieldname = 'CONNID'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = 'X'.
      fs_fieldcat-hotspot = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat .
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 3.
      fs_fieldcat-tabname = 'GT_HEADER'.
      fs_fieldcat-fieldname = 'DISTANCE'.
      fs_fieldcat-key = ' '.
      fs_fieldcat-edit = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat.
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 4.
      fs_fieldcat-tabname = 'GT_HEADER'.
      fs_fieldcat-fieldname = 'CITYFROM'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = ' '.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat .
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 5.
      fs_fieldcat-tabname = 'GT_ITEM'.
      fs_fieldcat-fieldname = 'CARRID'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = 'X'.
      fs_fieldcat-hotspot = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat .
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 6.
      fs_fieldcat-tabname = 'GT_ITEM'.
      fs_fieldcat-fieldname = 'CONNID'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = 'X'.
      fs_fieldcat-hotspot = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat.
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 7.
      fs_fieldcat-tabname = 'GT_ITEM'.
      fs_fieldcat-fieldname = 'DISTANCE'.
      fs_fieldcat-key = ' '.
      fs_fieldcat-edit = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat.
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 8.
      fs_fieldcat-tabname = 'GT_ITEM'.
      fs_fieldcat-fieldname = 'CITYFROM'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = ' '.
      APPEND fs_fieldcat TO t_fieldcat.
      p_col = p_col + 4.
      LOOP AT t_fieldcat INTO fs_fieldcat WHERE tabname = 'GT_ITEM'.
        IF fs_fieldcat-col_pos EQ p_col.
          fs_fieldcat-emphasize = 'C600'.
          w_fieldname = fs_fieldcat-fieldname.
          IF p_row IS INITIAL AND p_col GT 0.  " <---- paint only column if p_row is empty
            MODIFY t_fieldcat FROM fs_fieldcat TRANSPORTING emphasize.
          ENDIF.
        ENDIF.
      ENDLOOP.
      fs_cell-fieldname = w_fieldname .
      fs_cell-color-col = 6.
      fs_cell-nokeycol = 'X'.
      APPEND fs_cell TO t_spfli-cell.
      IF p_row IS NOT INITIAL AND p_col IS NOT INITIAL.  " <---- paint a cell
        MODIFY t_spfli INDEX p_row TRANSPORTING cell.
      ENDIF.
      fs_layout-info_fieldname = 'COLOR'.
      fs_layout-coltab_fieldname = 'CELL'.
      fs_layout-f2code = '&ETA'.
      gs_keyinfo-header01 = 'KEYLN'.
      gs_keyinfo-item01   = 'KEYLN'.
      LOOP AT t_spfli INTO gt_item.
        gt_item-keyln = 1.
        gt_item-lineno = gt_item-lineno + 1.
        APPEND gt_item.
      ENDLOOP.
      READ TABLE t_spfli INDEX 1 INTO gt_header.
      gt_header-keyln = 1.
      gt_header-lineno = 0.
      APPEND gt_header.
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
          is_layout                      = fs_layout
          it_fieldcat                    = t_fieldcat
          i_tabname_header               = 'GT_HEADER'
          i_tabname_item                 = 'GT_ITEM'
          is_keyinfo                     = gs_keyinfo
        TABLES
          t_outtab_header                = gt_header
          t_outtab_item                  = gt_item
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
      IF sy-subrc = 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • Colors in ALV report - column wise

    Hi,
    I have a ALV report. I want color in my report like Column Wise.
    ex.
    Document No........Date.........Amount......Document No......Date........Amount........Document Nov........Date.............Amount....
    2008000123...10.07.2009....2000.00......2008000133....10.07.2009....2000.00.....2008000143.......10.07.2009.......2000.00
    2008000124...10.07.2009....2000.00......2008000134....10.07.2009....2000.00.....2008000144.......10.07.2009.......2000.00
    2008000125...10.07.2009....2000.00......2008000135....10.07.2009....2000.00.....2008000145.......10.07.2009.......2000.00
    Please see, there is 3 times Document No, Date and Amount. I want that there should come diff. colors for diff. document numbers.
    It is possible or not. If yes, then how...
    Thanks...

    Hi,
    go though this link....
    i hope this will help u
    TABLES:
    SPFLI.
    TYPE-POOLS:
    SLIS.
    PARAMETERS:
    P_COL TYPE I ,
    P_ROW TYPE I,
    P_COLOR(4) TYPE C .
    DATA:
    T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
    FS_FIELDCAT LIKE LINE OF T_FIELDCAT,
    FS_LAYOUT TYPE SLIS_LAYOUT_ALV ,
    W_COLOR(4) ,
    W_ROW TYPE I,
    W_FIELDNAME(20),
    W_PROG TYPE SY-REPID.
    DATA:
    BEGIN OF T_SPFLI OCCURS 0,
    COLOR(4),
    CHECKBOX ,
    CELL TYPE SLIS_T_SPECIALCOL_ALV,
    CARRID TYPE SPFLI-CARRID,
    CONNID TYPE SPFLI-CONNID,
    CITYFROM TYPE SPFLI-CITYFROM,
    CITYTO TYPE SPFLI-CITYTO,
    DISTANCE TYPE SPFLI-DISTANCE,
    END OF T_SPFLI.
    DATA:
    FS_CELL LIKE LINE OF T_SPFLI-CELL.
    SELECT *
    FROM SPFLI
    INTO CORRESPONDING FIELDS OF TABLE T_SPFLI.
    W_COLOR = P_COLOR.
    T_SPFLI-COLOR = P_COLOR.
    IF P_COL IS INITIAL AND P_ROW GT 0.
    MODIFY T_SPFLI INDEX P_ROW TRANSPORTING COLOR.
    ENDIF.
    FS_FIELDCAT-FIELDNAME = 'CARRID'.
    FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
    FS_FIELDCAT-COL_POS = 1.
    FS_FIELDCAT-KEY = 'X'.
    FS_FIELDCAT-HOTSPOT = 'X'.
    APPEND FS_FIELDCAT TO T_FIELDCAT.
    CLEAR FS_FIELDCAT .
    FS_FIELDCAT-FIELDNAME = 'CONNID'.
    FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
    FS_FIELDCAT-COL_POS = 2.
    FS_FIELDCAT-KEY = 'X'.
    FS_FIELDCAT-HOTSPOT = 'X'.
    APPEND FS_FIELDCAT TO T_FIELDCAT.
    CLEAR FS_FIELDCAT .
    FS_FIELDCAT-FIELDNAME = 'DISTANCE'.
    FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
    FS_FIELDCAT-COL_POS = 3.
    FS_FIELDCAT-KEY = ' '.
    FS_FIELDCAT-EDIT = 'X'.
    APPEND FS_FIELDCAT TO T_FIELDCAT.
    CLEAR FS_FIELDCAT.
    FS_FIELDCAT-FIELDNAME = 'CITYFROM'.
    FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
    FS_FIELDCAT-COL_POS = 4.
    FS_FIELDCAT-KEY = ' '.
    APPEND FS_FIELDCAT TO T_FIELDCAT.
    LOOP AT T_FIELDCAT INTO FS_FIELDCAT.
    IF FS_FIELDCAT-COL_POS EQ P_COL.
    FS_FIELDCAT-EMPHASIZE = P_COLOR.
    W_FIELDNAME = FS_FIELDCAT-FIELDNAME.
    IF P_ROW IS INITIAL AND P_COL GT 0.
    MODIFY T_FIELDCAT FROM FS_FIELDCAT TRANSPORTING EMPHASIZE.
    ENDIF.
    ENDIF.
    ENDLOOP.
    FS_CELL-FIELDNAME = W_FIELDNAME .
    FS_CELL-COLOR-COL = 6.
    FS_CELL-NOKEYCOL = 'X'.
    APPEND FS_CELL TO T_SPFLI-CELL.
    IF P_ROW IS NOT INITIAL AND P_COL IS NOT INITIAL.
    MODIFY T_SPFLI INDEX P_ROW TRANSPORTING CELL.
    ENDIF.
    FS_LAYOUT-INFO_FIELDNAME = 'COLOR'.
    FS_LAYOUT-BOX_FIELDNAME = 'CHECKBOX'.
    FS_LAYOUT-COLTAB_FIELDNAME = 'CELL'.
    FS_LAYOUT-F2CODE = '&ETA'.
    W_PROG = SY-REPID.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = W_PROG
    IS_LAYOUT = FS_LAYOUT
    IT_FIELDCAT = T_FIELDCAT
    TABLES
    T_OUTTAB = T_SPFLI
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    NOTE
    Column and Row are colored with a coded color u2018Cxyzu2019.
        Where C: Color (coding must begin with C)
                     X: Color Number
                     Y: Bold
                     Z: Inverse.
    Thanks
    Ashu

  • Color range selection + layer styles

    Hello--
    Help me if you can!
    I have had it on good authority (my photoshop instructor) that color range selection hasn't been working correctly for some time.
    I'm using CS2, version 9.0.2 on an IMac os X version 10.5.8.
    I am often working with multiple layers that are not similar at all.  When I have one layer active and do a color selection, it may also select the color range on inactive layers.  Then, if I do a fill, for example, it may affect areas on other layers that were inadvertantly color selected.  I know there are ways to ask photoshop to perform a function on all layers, but I don't see this as an option or setting with color range selection.  I had started to assume it was sort of like crop, which affects all layers, but when I asked, my teacher says it should only be selecting/affecting the layer that is active. 
    I found I can deal with this by 'closing the eyes' (making non-visible) the other layers...but that is a hassle and sometimes hides exactly what I need to see.
    Then noticed, just lately, that when I use a layer style, it is no longer showing up on my layer palette.  Maybe I don't understand correctly, but I thought any layer style addition would show up on the palette under the name of that layer.  If I happen to remember that a particular layer used a layer style, I can still click on the layer styles icon and alter it, but it isn't displaying on the layer palette any more--so I cannot toggle or discard the effect simply, and it is hard to know why a layer looks the way it does without that information.
    Could be I'm corrupted and need to deinstall/reinstall?  Is there something I'm missing about these functions , or something I accidentally changed?  I would really appreciate any help or information.

    Yes your instructor is wrong, it always selects visible pixels, and always has. You can however create a selection before you go into Color Range, and it will only work within that selection though.
    If you want Color Range to work in precisely the same way as it always did in the old versions you need to make sure that you ..
    • Highlight a non masked layer and
    • Uncheck the somewhat bizarrely entitled "Localised Color Clusters" checkbox
    The changes to Color Range happened a few versions ago, to my memory it was with CS4 .  The main improvement was that they made it more powerful with the capability to produce better more refined selections. They also unfortunately made the daft mistake of making the command work DIFFERENTLY depending on whether you have a masked or a non masked layer selected. This is not very logical really because it just causes confusion, and doesn't really achieve anything constructive in my opinion. No one who knows what they are doing wants to modify an existing mask using Color Range.

  • Enable Final Cut Color Compatibility Further Washes out HDV!

    I'm having a hard time with this.
    Outputting a reference Quicktime movie (for later use in compressor, non self contained, HDV 1080i60) creates slightly washed out looking footage. Clicking the "enable FCP color compatibility" checkbox further brightens the footage! What's going on?
    My monitor is at 1.8 gamma, is that checkbox further brightening my footage by bringing it up from where it's at to 1.8? This is really driving me crazy.

    Hi
    Please tell more (or I'm not clever enough to get it)
    Enable Final Cut Studio color compatibility
    In QuickTime Player 7.6 (Mac OS X.4.11)
    Under Preferences there are three symbols in my version
    General/Full Sceen/Record
    And I can't find anything alike here
    Nor under the title QuickTime-preferences
    which opens System-preferences and the QuickTime menu
    Still nothing as FCS color compatibility.
    Am I looking in wrong direktion ?
    Yours Bengt W

  • Checkbox selected : row not rendering

    I am not able to set colors for the row that has checked checkboxes. I want to set red color for the row having
    checked checkboxes and green for unchecked.
    table.getColumnModel().getColumn(3).setCellEditor(new CustomTableCellRenderer(new JCheckBox(),Name));
    table.getColumnModel().getColumn(3).setCellRenderer(new CustomTableCellRenderer3());
    setcellEditor:
    package moxaclient;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import javax.swing.DefaultCellEditor;
    import javax.swing.JCheckBox;
    import javax.swing.JTable;
    public class CustomTableCellRenderer extends DefaultCellEditor implements ItemListener{
    private static final long serialVersionUID = 1L;
    private JCheckBox checkBox;
    private JTable table1;
    private int row;
    private int column;
    Object abc="null";
    private String Name;
    Component comm=null;
    public CustomTableCellRenderer(JCheckBox checkBox,String name2) {
        super(checkBox);
        this.checkBox = checkBox;
        this.checkBox.addItemListener(this);
        this.Name=name2;  
    public Component getTableCellEditorComponent(JTable table, Object value,
            boolean isSelected,int row, int column)
        Component comp = super.getTableCellEditorComponent(table, value, isSelected, row, column);
        this.row = row;
        this.table1=table;
        this.column = column;
        checkBox.setSelected((Boolean)value);
        return super.getTableCellEditorComponent(table, value, isSelected,row, column);
    public void itemStateChanged(ItemEvent e)
       this.fireEditingStopped();
        //System.out.println("Item Changed " + row + " value is: " + checkBox.isSelected());
         //System.out.println("Item Changed " + column + " value is: " + checkBox.isSelected());
          String Sensor =(String) table1.getValueAt(row, 0);
          Double Value =(Double) table1.getValueAt(row, 1);
          String Date =(String) table1.getValueAt(row, 2);
          Boolean select=(Boolean) table1.getValueAt(row,3);
           if (Boolean.TRUE.equals(select))
            abc += Sensor+"\t"+Value+"\t"+Name+"\t"+Date+"\t";
            // table1.set Background(Color.black);
            //  checkBox.setBackground(Color.red);
              // comm.setBackground(Color.red);
        Clientthread ct=new Clientthread(abc);
    package moxaclient;
    import java.awt.Component;
    import java.util.EventObject;
    import javax.swing.DefaultCellEditor;
    import javax.swing.JTable;
    import javax.swing.event.CellEditorListener;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellEditor;
    import javax.swing.table.TableCellRenderer;
    public class CustomTableCellRenderer3 extends DefaultTableCellRenderer {
    JTable table1=null;
    DefaultTableModel model;
        public CustomTableCellRenderer3() {
            // TODO Auto-generated constructor stub
        public CustomTableCellRenderer3(JTable table,DefaultTableModel model1) {
            this.table1=table;
            this.model=model1;
        @Override
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)
             Component comp = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);
             Boolean last=(Boolean)model.getValueAt(row,3);
                       if(last)
                             //setcolor dosent work here
                    return null;
    }Edited by: 1000637 on Apr 17, 2013 5:29 AM

    I suggest first trying to get cell renderers to work as expected before going onto cell editors. See Using Custom Renderers in the Swing tutorial for basic information on how to use cell renderers. That said, subclassing DefaultTableCellRenderer won't do if you want to display a check box, because DTCR is a JLabel but you need to return a JCheckBox as cell renderer component. To get you startet, here is a simple demo for a custom JCheckBox based renderer:import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.EventQueue;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableCellRenderer;
    * Demonstrates how to create a custom boolean table cell renderer.
    public class BooleanRendererDemo {
       * Creates and displays a sample {@link JTable} with a customized boolean
       * table cell renderer.
      private void start() {
        // create a table with sample data
        final JTable jt = new JTable(new MyTableModel());
        // configure the renderer for boolean values
        jt.setDefaultRenderer(Boolean.class, new MyBooleanRenderer());
        // boiler plate code necessary for displaying a Swing GUI
        final JScrollPane jsp = new JScrollPane(jt);
        jsp.setPreferredSize(new Dimension(480, 320));
        final JFrame frame = new JFrame(BooleanRendererDemo.class.getName());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(jsp);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main( String[] args ) {
        EventQueue.invokeLater(new Runnable() {
          public void run() {
            (new BooleanRendererDemo()).start();
       * A customized table cell renderer for boolean values.
      private static final class MyBooleanRenderer implements TableCellRenderer {
        private final JCheckBox jcb;
        MyBooleanRenderer() {
          jcb = new JCheckBox();
          jcb.setHorizontalAlignment(JCheckBox.CENTER);
        public Component getTableCellRendererComponent(
                final JTable table,
                final Object value,
                final boolean isSelected,
                final boolean hasFocus,
                final int row,
                final int column
          final boolean state = value != null && ((Boolean) value).booleanValue();
          if (isSelected) {
            jcb.setForeground(table.getSelectionForeground());
            jcb.setBackground(table.getSelectionBackground());
          } else {
            jcb.setForeground(table.getForeground());
            // check if the renderer should display the last column
            // if so, use custom background colors depending on the cell value
            final boolean last = table.getModel().getColumnCount() == column + 1;
            if (last) {
              jcb.setBackground(state ? Color.GREEN : Color.RED);
            } else {
              jcb.setBackground(table.getBackground());
          jcb.setSelected(state);
          return jcb;
       * Dummy table model with nonsense sample data.
      private static final class MyTableModel extends AbstractTableModel {
        public Class getColumnClass( final int columnIndex ) {
          return columnIndex < 2 ? String.class : Boolean.class;
        public int getColumnCount() {
          return 4;
        public int getRowCount() {
          return 4;
        public Object getValueAt( final int rowIndex, final int columnIndex ) {
          if (columnIndex == 3) {
            return (rowIndex % 2) == 1 ? Boolean.TRUE : Boolean.FALSE;
          } else if (columnIndex == 2) {
            return (rowIndex % 2) == 0 ? Boolean.TRUE : Boolean.FALSE;
          } else {
            return "Dummy";
    }To customize cell editors, work through the JTable tutorial (and maybe take a quick look at DefaultCellEditor's OpenJDK sources).

  • Example of WAIT and CONTINUE using checkBox and thread and getTreeLock()

    I had so much trouble with this that I descided to
    post if incase it helps someone else
    // Swing Applet example of WAIT and CONTINUE using checkBox and thread and getTreeLock()
    // Runs form dos window
    // When START button is pressed program increments x and displys it as a JLabel
    // When checkBox WAIT is ticked program waits.
    // When checkBox WAIT is unticked program continues.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    public class Wc extends JApplet {
    Display canvas;//drawing surface is displayed.
    Box buttonPanel;
    Box msgArea;
    public static JButton button[] = new JButton [2];
    public static JCheckBox checkBox[] = new JCheckBox[2];
    public static JLabel msg[] = new JLabel [2];
    String[] buttonDesc ={"Start","Quit"};
    public static final int buttonStart = 0;
    public static final int buttonQuit = 1;
    String[] checkBoxDesc ={"Wait"};     
    public static final int checkBoxWait = 0;
    public boolean wait;
    public Graphics g;
    //================================================================
    public static void main(String[] args){
    Frame f = new Frame();
    JApplet a = new Wc();
    f.add(a, "Center"); // Add applet to window
    a.init(); // Initialize the applet
    f.setSize(300,100); // Set the size of the window
    f.show(); // Make the window visible
    f.addWindowListener(
    new WindowAdapter(){
    public void windowClosing(WindowEvent e){System.exit(0);}
    }// end main
    //===================================================
    public void init() {
    canvas = new Display();
    setBackground(Color.black);
    getContentPane().setLayout(new BorderLayout(3,3));
    getContentPane().add(canvas, BorderLayout.CENTER);
    buttonPanel = Box.createHorizontalBox();
    getContentPane().add(buttonPanel, BorderLayout.NORTH);
    int sbZ;
    // add button
    button[0] = new JButton(buttonDesc[0]);
    button[0].addActionListener(canvas);
    buttonPanel.add(button[0]);
    button[1] = new JButton(buttonDesc[1]);
    button[1].addActionListener(canvas);
    buttonPanel.add(button[1]);
    // add checkBox
    sbZ=0;
    checkBox[sbZ]=new JCheckBox(checkBoxDesc[sbZ]);
    checkBox[sbZ].setBackground(Color.white);
    checkBox[sbZ].setOpaque(true);
    checkBox[sbZ].addActionListener(canvas);
    buttonPanel.add(checkBox[sbZ]);
    msgArea = Box.createVerticalBox(); // add message
    sbZ=0;
    msg[sbZ]=new JLabel("1",JLabel.LEFT);
    msg[sbZ].setOpaque(true);
    msg[sbZ].setBackground(Color.black);
    msg[sbZ].setForeground(Color.red);
    msgArea.add(msg[sbZ]);
    getContentPane().add(msgArea, BorderLayout.SOUTH);
    } // end init();
    //===================================================
    public void stop(){canvas.stopRunning();}
    //===================================================
    // The following nested class represents the drawing surface
    // of the applet and also does all the work.
    class Display extends JPanel implements ActionListener, Runnable {
    Image OSI;
    Graphics OSG; // A graphics context for drawing on OSI.
    Thread runner; // A thread to do the computation.
    boolean running; // Set to true when the thread is running.
    public void paintComponent(Graphics g) {
    if (OSI == null) {
    g.setColor(Color.black);
    g.fillRect(0,0,getWidth(),getHeight());
    else {g.drawImage(OSI,0,0,null);}
    }//paintComponent
    public void actionPerformed(ActionEvent evt) {
    String command = evt.getActionCommand();
    if (command.equals(buttonDesc[buttonStart])) {
    startRunning();
    if (command.equals(buttonDesc[buttonQuit])) {
    stopRunning();
    if (command.equals(checkBoxDesc[checkBoxWait])){
    System.out.println("cb");
    if (checkBox[checkBoxWait].isSelected() ) {
    wait = true;
    System.out.println("cb selected twait "+wait);
    return;
    wait = false;
    synchronized(getTreeLock()) {getTreeLock().notifyAll();}
    System.out.println("cb selected fwait "+wait);
    } // end command.equal cb wait
    } //end action performed
    // A method that starts the thread unless it is already running.
    void startRunning() {
    if (running)return;
    // Create a thread that will execute run() in this Display class.
    runner = new Thread(this);
    running = true;
    runner.start();
    } //end startRunning
    void stopRunning() {running = false;System.exit(0);}
    public void run() {
    button[buttonStart].setEnabled(false);
    int x;
    x=1;
    while(x>0 && running){
    x = x + 1;
    msg[0].setText(""+x);
    try{SwingUtilities.invokeAndWait(painter);}catch(Exception e){}
    //importand dont put this in actionPerformed
    if (wait) {
    System.out.println("run "+wait);
    synchronized(getTreeLock()) {
    while(wait) {
    System.out.println("while "+wait);
    try {getTreeLock().wait();} catch(Exception e){break;}
    } //end while(wait)
    } // end sync
    } // end if(wait)
    } // endwhile(x>0)
    stopRunning();
    } // end run()
    Runnable painter = new Runnable() {
    public void run() {
    Dimension dim = msg[0].getSize();
    msg[0].paintImmediately(0,0,dim.width,dim.height);
    Thread.yield();
    }//end run in painter
    } ; //end painter
    } //end nested class Display
    } //end class Wc

    I just encountered a similar issue.  I bought a new iPhone5s and sent my iPhone4s for recycling as it was in great shape, no scratches, no breaks, perfect condition.  I expected $200 and received an email that I would only receive $24.12.  The explanation was as follows:  Phone does not power on - Power Supply Error.   Attempts to discuss don't seem to get past a customer service rep that can only "escalate" my concern.  They said I would receive a response, but by email.  After 4 days no response.  There is something seriously wrong with the technical ability of those in the recycling center.

  • Difference with embedded CSS vs loading runtime CSS

    Hi,
    Move from embedded CSS to runtime CSS, but having some subtle differences.
    note the numeric stepper handles have default colors, this is with embedded css and what the client wants
    This one is runtime css note the handles are black.
    I had this in both before embedded and runtime CSS
    NumericStepper {
       fillAlphas: 0.6, 0.4, 0.75, 0.65;
       fillColors: #ffffff, #cccccc, #ffffff, #eeeeee;
       themeColor: #92de78;
    I added this to the runtime css and entered the style name for the numeric stepper but still no luck
    .numericStepper {
            fillAlphas: 0.6, 0.4, 0.75, 0.65;
            fillColors: #ffffff, #cccccc, #ffffff, #eeeeee;
            themeColor: #92de78;
    Any ideas complete css below. BTW my alerts are not using the runtime css as well yet embedded css works fine  
    @font-face {
    src:url("auth_module/poetica.swf");
    font-family: "Poetica Std";
    Application {
       backgroundImage: Embed(source="/images/bkg.gif");
       backgroundSize: "100%";
    NumericStepper {
       fillAlphas: 0.6, 0.4, 0.75, 0.65;
       fillColors: #ffffff, #cccccc, #ffffff, #eeeeee;
       themeColor: #92de78;
            .numericStepper {
            fillAlphas: 0.6, 0.4, 0.75, 0.65;
            fillColors: #ffffff, #cccccc, #ffffff, #eeeeee;
            themeColor: #92de78;
    Alert{
    color : #000000;
    title-style-name : "alertTitle";
    button-style-name :"alertButtonStyle";
    header-height:21;
    border-thickness: 1;
    drop-shadow-enabled: true;
    drop-shadow-color :#CCCCCC;
    shadowDirection:right;
    shadowDistance:7;
    background-color: #ffffff;
    corner-radius :6;
    border-style :solid;
    header-colors : #DDDDDD, #ffffff;
    footer-colors : #DDDDDD, #ffffff;
    border-color : #333333;
    .alertButtonStyle {
    color : #000000;
    .alertTitle{
    font-family :Verdana;
    font-size :10;
    font-weight :bold;
    text-align :left;
    color :#000000;
    .selectedBox {
    headerColors:#336633,#447744;
    borderColor:#447744;
    titleStyleName: "selectedHeaders";
    .legendBox {
    border-thickness: 2;
    border-style:solid;
    border-color: #93C789;
    .legendMask {
    stroke-color: #333333;
    stroke-width:2;
    shadow-color: #333333;
    .legendTitle {
    font-size :12;
    font-weight :bold;
    .accordionHeaders {
    font-family: "Poetica Std";
    font-size:14pt;
    color:#FFCC00;
    .copyrighttext {
    font-family: "Poetica Std";
    font-size:14pt;
    TextInput {
       color: #0b333c;
    List {
       color: #0b333c;
    CheckBox {
       themeColor: #92DE78;
       fillColors: #ffffff, #cccccc, #ffffff, #eeeeee;
       color: #0b333c;
    .piecharBackground {
    backgroundImage: Embed(source="/images/bkg.gif");
       backgroundSize: "100%";
       color: #93C789;
    DataGrid {
       color: #0b333c;
       rollOverColor: #92de78;
       selectionColor: #93C789;
       textRollOverColor: #cc3333;
       headerColors: #000000, #333333;
       headerStyleName: "mydataGridHeaderStyle";
    .mydataGridHeaderStyle {
       color: #92de78;
    ApplicationControlBar {
       highlightAlphas: 0.4, 0;
       fillAlphas: 1, 1;
       cornerRadius: 0;
       fillColors: #000000, #333333;
       backgroundColor: #000000;
       color: #93C789;
    CheckBox {
    color: #93C789;
    Accordion {
       fillAlphas: 1, 1, 1, 1;
       fillColors: #000000, #333333, #000000, #333333;
       selectedFillColors: #000000, #333333;
       themeColor: #92de78;
       textRollOverColor: #cc3333;
       headerStyleName: "myaccordionHeader";
       borderColor: #93C789;
       backgroundImage: Embed(source="/images/bkg.gif");
       backgroundSize: "100%";
       color: #92de78;
    .myaccordionHeader {
       color: #92de78;
    TabNavigator {
    tabStyleName: "myTabs";
    selectedTabTextStyleName: "mySelectedTabs";
    dropShadowEnabled: true;
    backgroundColor: #2e2e2e;
    borderColor: #93C789;
    .mySelectedTabs {
    color: #92de78;
    .backGroundPanel {
            backgroundImage: Embed(source="/images/bkg.gif");
       background-size:"100%";
       color: #93C789;
       textRollOverColor: #92de78;
       dropShadowColor: #92DE78;
    Button {
       fillAlphas: 1, 1, 1, 1;
       fillColors: #000000, #333333, #333333, #000000;
       color: #92de78;
       textRollOverColor: #cc3333;
       borderColor: #93C789;
       themeColor: #92de78;
    RadioButton {
       themeColor: #92DE78;
       fillColors: #ffffff, #cccccc, #ffffff, #eeeeee;
       color: #0b333c;
    CheckBox {
       themeColor: #92DE78;
       fillColors: #ffffff, #cccccc, #ffffff, #eeeeee;
    ComboBox {
       themeColor: #92DE78;
       fillColors: #ffffff, #cccccc, #ffffff, #eeeeee;
       color: #000000;
    DateChooser {
       headerColors: #000000, #333333;
       themeColor: #92DE78;
       headerStyleName: "mydateChooserHeaderStyle";
       fillColors: #ffffff, #cccccc, #ffffff, #eeeeee;
    VScrollBar {
       trackColors: #333333, #666666;
       themeColor: #000000;
       borderColor: #000000;
    Panel {
       borderColor: #000000;
       borderAlpha: 1;
       titleStyleName: "mypanelTitle";
       dropShadowColor: #000000;
       roundedBottomCorners: true;
       headerColors: #333333, #000000;
    .selectedHeaders{
    color :#000000;
    font-weight:bold;
    .windowStyles {
                color: #92de78;
            TitleWindow {
            color: #92de78;
            closeButtonSkin: Embed("/images/del_24.png");
                /* Set values from defaults.css to null. */
                closeButtonDisabledSkin: Embed("/images/del_24.png");
                closeButtonDownSkin:Embed("/images/del_24.png");
                closeButtonOverSkin:Embed("/images/del_24.png");
                closeButtonUpSkin: Embed("/images/del_24.png");

    The documentation says that a NumericStepper is composed of a TextInput and 2 buttons so I do understand why the buttons are getting styled the way they are.
    I added a Button and a NumericStepper to a text application using Embedded Styles and it did produce the Button style effect.  I took the Button out and of course the Numeric buttons were rendered as the default Flex style of off grey / white.
    Some of the Flex objects have additional style properties that allow you to style the individual components of the object however the NumericStepper does not seem to have that option.
    I think the only way around it would be to get the children of the stepper and style them individually
     var btn:Button = numericStepper.getChildAt(1) as Button;
    btn.setStyle("fillColors",["#ffcccc","#cccccc"]
    and do the same thing for child 2
    or extend the NumericStepper and override the style to be what you would like.

  • Add a radio button to each row on output (not selection-screen)

    its a normal interacitve report...
    we need to add a radio button to each row on output (not selection-screen) and when user selects the radio button of a particular row and clicks on the user defined menu 'Execute' the report has to fetch the records from a table corresponding to the selected row on the second list.
    all this has to be done in normal interactive list.
    please let me know your suggetions as soon as possible.
    thanks,
    usha.

    Hi ,  try this
    TABLES: spfli.
    TYPE-POOLS:slis.
    PARAMETERS: p_col TYPE i ,
                p_row TYPE i,
                p_color(4) TYPE c .
    DATA: t_fieldcat TYPE slis_t_fieldcat_alv,
          fs_fieldcat LIKE LINE OF t_fieldcat,
          fs_layout TYPE slis_layout_alv ,
          w_color(4) ,
          w_row TYPE i,
          w_fieldname(20),
          w_prog TYPE sy-repid.
    TYPES : BEGIN OF ty_spfli ,
              color(4),
              checkbox ,
              cell TYPE slis_t_specialcol_alv,
              carrid TYPE spfli-carrid,
              connid TYPE spfli-connid,
              cityfrom TYPE spfli-cityfrom,
              cityto TYPE spfli-cityto,
              distance TYPE spfli-distance,
           END OF ty_spfli.
    DATA : wa_spfli TYPE ty_spfli ,
           t_spfli TYPE TABLE OF ty_spfli.
    DATA: fs_cell LIKE LINE OF wa_spfli-cell.
    SELECT carrid connid cityfrom cityto distance
      FROM spfli
      INTO CORRESPONDING FIELDS OF TABLE t_spfli.
    w_color = p_color.
    fs_fieldcat-fieldname = 'CARRID'.
    fs_fieldcat-ref_tabname = 'SPFLI'.
    fs_fieldcat-col_pos = 1.
    fs_fieldcat-key = 'X'.
    APPEND fs_fieldcat TO t_fieldcat.
    CLEAR fs_fieldcat .
    fs_fieldcat-fieldname = 'CONNID'.
    fs_fieldcat-ref_tabname = 'SPFLI'.
    fs_fieldcat-col_pos = 2.
    fs_fieldcat-key = 'X'.
    APPEND fs_fieldcat TO t_fieldcat.
    CLEAR fs_fieldcat .
    fs_fieldcat-fieldname = 'DISTANCE'.
    fs_fieldcat-ref_tabname = 'SPFLI'.
    fs_fieldcat-col_pos = 3.
    fs_fieldcat-key = ' '.
    fs_fieldcat-edit = 'X'.
    APPEND fs_fieldcat TO t_fieldcat.
    CLEAR fs_fieldcat.
    fs_fieldcat-fieldname = 'CITYFROM'.
    fs_fieldcat-ref_tabname = 'SPFLI'.
    fs_fieldcat-col_pos = 4.
    fs_fieldcat-key = ' '.
    APPEND fs_fieldcat TO t_fieldcat.
    LOOP AT t_fieldcat INTO fs_fieldcat.
      IF fs_fieldcat-col_pos EQ p_col.
        fs_fieldcat-emphasize = p_color.
        w_fieldname = fs_fieldcat-fieldname.
        IF p_row IS INITIAL AND p_col GT 0.
          MODIFY t_fieldcat FROM fs_fieldcat TRANSPORTING emphasize.
        ENDIF.
      ENDIF.
    ENDLOOP.
    fs_layout-info_fieldname = 'COLOR'.
    fs_layout-box_fieldname = 'CHECKBOX'.
    fs_layout-coltab_fieldname = 'CELL'.
    fs_layout-f2code = '&ETA'.
    w_prog = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        i_callback_program = w_prog
        is_layout          = fs_layout
        it_fieldcat        = t_fieldcat
      TABLES
        t_outtab           = t_spfli
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Aby

  • I propose a programming method for a better native GUI.

    Basically the change is that in almost all cases the compiler/gui is in complete control over the layout of a window. This means that instead of an application declaring where every window element would be, it would have a file that would declare every element. Here's some examples using pictures from Apple's HI guideline. (sorry for the bad code example)
    WindowNoResize (Settings, "Imagetype Changer Preference"); //declares a standard window with no resizing handles, dimensions are automatic. also declares the title of the window and the call function (Settings).
    Include Help (manual.pdf); //declares that there is a help button included, which in this case launches the pdf manual
    section 1 ("General Editing") //creates the first section and gives it a title. the following is it's contents
    radio (ImageOption, 0="Select existing image", 1="Add a margin around image") //declares a radio button with two option, sets the result to ImageOption
    InputBox Integer ( "Size:", ImageSize, "points") //declares an inputbox for numbers, surrounding text, and location where to store the result.
    CheckBox (ReposChange, "Reposition windows after change") //declares a checkbox and sends the result (TRUE/FALSE) to ReposChange
    CheckBox (Remember, "Remember recent items") //declares a checkbox and sends the result to Remember
    end section 1; //finishes section
    section 2 ("Clipboard settings") //declares section two
    Radio (ClipOpt, 0="Copy selection from image only", 1="Erase section from Image") //declares radio, sends results to ClipOpt
    CheckBox (Dither, "Dither content of clipboard") //declares checkbox, sends results to Dither
    end section 2;
    section 3 ("Color Optimization:") //declares section three
    CheckBox (Calc, "Calculate best color table")
    CheckBox (Ver, "Verify color table integrity")
    CheckBox (NoteLoss, "Notify on loss of color information")
    CheckBox (NoteBef, "Notify before CMYK to RGB conversion")
    end section 3;
    end window //declres the end of the window's code.then the compiler or the Operating System's GUI will use this information to render the following window:
    Mostly this would be used for standard message boxes, so that an error box will look like a standard Mac or Windows error box depending on which OS is running the application. Ideally the GUI will also alter the text and everything so that the application will become indistinguishable from a native application.
    the best part? Operationg systems designed for touch-screen input, such as The BlackBerry Storm or HP TouchSmart, can automatically render the windows in a format that is touch-screen fiendly.
    Edited by: GrahamReneKennethFluet on Apr 12, 2010 3:18 PM

    Well to be honest this was a copy and paste of a thread that was based off of another thread that was written when I had no idea what I was talking about... so let me start at the beginning.
    A day or so ago I was reading on DaringFireball about how Apple is trying to remove all external api's such as Flash, because what happens is that it by default uses a GUI that clashes with the rest of the OS. I know that on my Blackberry Storm I have ZoomPass installed, a generic .jar that clashes significantly with the rest of the OS and I'd rather avoid if it wasn't for Zoompass's importance. This made me realize that Apple did this to prevent lazy coders from porting an app in the simplest and most butt-ugly way possible, because then when the user is running that app it ruins the overall "prettyness" of the OS. I then realized that all that was wrong with the app was it's gui, not the options or the performance. I then wondered if it was possible to have the OS control ALL aspects of the program's window, from the font to the button size and down to the layout of standard buttons such as cancel, allow, and help/info. I understand that compared to Swing AWT get's pretty close to native experience, but I feel it could be better.
    So basically I'm asking for a way to set up a program in a way so that every window looks native, from the layout of the error and warning boxes to to position of the preferences/options menu item.

  • Enhancing a TYPES definition in a TYPE-POOLS

    I'm trying to add a new field to the following type:
    shipment cost document item
    TYPES: BEGIN OF V54A2_VFKP.
             INCLUDE STRUCTURE VFKP.
    TYPES:   ACR_AMT_LOCC LIKE VFKP-NETWR,
             ACR_AMT_FORC LIKE VFKP-NETWR,
             INV_AMT_LOCC LIKE VFKP-NETWR,
             INV_AMT_FORC LIKE VFKP-NETWR,
             OPN_AMT_LOCC LIKE VFKP-NETWR,
             OPN_AMT_FORC LIKE VFKP-NETWR,
             COLOR(3),
             CHECKBOX,
    """""""*"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$SE:(1 ) Typ V54A2_VFKP, Final                                                                                S
    $$-Start: (1 )----
    $$
    ENHANCEMENT 1  Y_AGENTE_DE_SERVICIO.    "inactive version
           Descripción de agente de servicio.
    include structure YSDS001,
    ENDENHANCEMENT.
    $$-End:   (1 )----
    $$
           END OF V54A2_VFKP.
    The point is that I can't activate the enhancement because I get a syntax error. Is it possible to enhace the TYPES declaration. What is missed?
    Thanks in advance.

    Hi Susana,
    Try the following to rectify the error. I have given my comment against the statement INCLUDE STRUCTURE YSDS001.
    * shipment cost document item
    TYPES: BEGIN OF V54A2_VFKP.
    INCLUDE STRUCTURE VFKP.
    TYPES: ACR_AMT_LOCC LIKE VFKP-NETWR,
    ACR_AMT_FORC LIKE VFKP-NETWR,
    INV_AMT_LOCC LIKE VFKP-NETWR,
    INV_AMT_FORC LIKE VFKP-NETWR,
    OPN_AMT_LOCC LIKE VFKP-NETWR,
    OPN_AMT_FORC LIKE VFKP-NETWR,
    COLOR(3),
    CHECKBOX,
    """""""*"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$SE:(1 ) Typ V54A2_VFKP, Final S
    *$*$-Start: (1 )--------------------------------------------------------------------------------$*$*
    ENHANCEMENT 1 Y_AGENTE_DE_SERVICIO.
    Descripción de agente de servicio.
    include structure YSDS001, "Here instead of a COMMA(,) replace it with DOT (.)
    ENDENHANCEMENT.
    *$*$-End: (1 )--------------------------------------------------------------------------------$*$*
    END OF V54A2_VFKP.
    This worked for me and should work for you as well. If it doesn't work then please let me know the exact error so that I can resolve the issue.
    Reward accordingly.
    Thanks and Regards,
    Maddineni  Bharath.

Maybe you are looking for

  • Can't boot from recovery partition in Mountain Lion

    I've installed Mountain Lion on two different boxes so far: a 20" iMac at home and a Mac Mini at work. Both had up to date Lion installations prior to the upgrade. After installing Mountain Lion I am not able to boot in to the recovery partition on e

  • How can i assign view page name at run time in task flow

    Hi, jdev 11.1.2.3.0 I have a requirement to get view page (jsff page) dynamically. Ex: I have TF in that i have two views i.e view1 and view2. in view1  there is one inputtext and button in inputtext i will give the name of the page, In view2 that pa

  • Forms 10g runtime not working

    I have 9i DB. And I was using developer(forms)6i with it. I uninstalled dev-6i and installed Developer Suite 10g. I connected dev-10g with my 9i DB. I migrated my 6i forms using forms migration assistant built in Dev-10g. Now i can login dev-10g but

  • User attributes checked by Delta Discovery in SCCM 2012

    Hi All, Since I simply cannot find an answer to my question using google, will ask it here and hope you can help me. Which EXACT User attributes does Delta Discovery check for in SCCM 2012? Is it possible to manipulate this, and add one more attribut

  • Yosemite made my MacBook Air Slow

    And its even slower when I use a second screen. Here's my EtreCheck report: EtreCheck version: 2.0.11 (98) Report generated November 20, 2014 at 12:02:42 PM EST Hardware Information: ℹ️   MacBook Air (Verified)   MacBook Air - model: MacBookAir6,2