Set Grid Padding = 0 ?

Hi..
I just started playing with the MX:GRID and it appears to be
similar to the
HTML <TABLE> but I can't get rid of the padding between
the cells and the
rows.
I tried setting
paddingBottom="0" paddingLeft="0" paddingRight="0"
paddingTop="0"
for all the elements.. but still no dice.
Any ideas?
Thanks
Rich

Hi --
This is awesome.. I really appreciate this link. The
generated CSS will be a
huge help for me.. But sadly the site doesn't have the MXGRID
but hopefully
some of the stuff I learn here will work!
Rich
"upshotvideo" <[email protected]> wrote in
message
news:e9e39f$hre$[email protected]..
> You may need to apply styles to it.
> Try this link for help.
>
>
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html

Similar Messages

  • How set margin/padding top to combobox selected value

    Hi,
    Again I am facing new problem with combobox component, i need to set margin/padding top to combobox selected data using external AS file.
    I have tried the code --> combo_box.setStyle("marginTop", 5); and also used similar styles but its not working.
    Need your suggestions and help.
    Thanks.

    Hi,
    i strongly urge you to read some book about CSS and forget using deprecated HTML tags like FONT.
    Why am i saying that?
    Well, you don't want to change a page template or a report definition every time the user complains about the size of a font or the space between lines, do you?
    CSS is all about presenting the page the way you want, setting margins, spaces, fonts and so on.
    You should focus on the content, the data, leaving the task of formatting to one or more CSS stylesheet linked in the HTML header.
    I recommend reading some articles first, at least to have a general idea of mainstream techniques:
    http://www.alistapart.com/articles/goingtoprint/
    http://webdesign.about.com/cs/css/a/aa042103a.htm
    Or you can google around searching for "css formatting printer friendly" to get a bunch of pages.
    Flavio
    http://oraclequirks.blogspot.com

  • When I upgraded my MacBook to Lion the trackpad switched and now up is down and down is up. I tried to fix it in setting, track pad but I do not see an option. Is it somewhere else in settings?

    When I upgraded my MacBook to Lion the trackpad switched and now up is down and down is up. I tried to fix it in setting, track pad but I do not see an option. Is it somewhere else in settings?

    You are very welcome...there are many little boxes to check/uncheck...can be a real challenge to read all of the fine print

  • How do you permanently set grids/measurements to inches?

    Isn't there a way to permanently set the grids/measurements to inches instead of picas? It's taking twice as long to set up a new file because everything is in picas...having to change the preference every single time...that can't be right.

    Hi there,
    With no documents open, go to preferences and on the left, under "Units and Increments", you can set them there. Now when you open a new document, they will show your new settings. Also, If you right-click a ruler, you can use the contextual menu to change the ruler settings there. Hope this helps.
    Cheers!
    -Mikey

  • Cl_salv_table - How to set grid ready for input

    Hi,
    I am using the class "cl_salv_table" on a 6.40 system to display an ALV grid.  How can I set the grid cells are ready for input/editing? 
    ( Something similar to slis_layout_alv-edit parameter  
    use in the REUSE_ALV_GRID_DISPLAY function )
    I have looked at the demo programs SALV_TEST_TABLE* and
    SALV_DEMO_TABLE*.  Unless I am blind I cannot find a way.
    Any suggestions?
    Lukas
    Message was edited by: van vuuren lukas

    Hi,
    thanks for the reply,
    I do not call the SET_TABLE_FOR_FIRST_DISPLAY,
    as far as I can tell SALV does not require this. 
    Here is in short  what my program looks like:
    data: lr_salvgrid  type ref to cl_salv_table,
          lr_columns type ref to cl_salv_columns_table,
          lr_column  type ref to cl_salv_column,
          gt_matdoc type mb_mkpf.
    I call method  cl_salv_table=>factory to get a reference to my itab:
            call method cl_salv_table=>factory
              exporting
                list_display = if_salv_c_bool_sap=>false
              importing
                r_salv_table = lr_salvgrid
              changing
                t_table      = gt_matdoc.
    Then for fieldcatalogue:
    i.e. hide columns etc
      lr_columns = lr_salvgrid->get_columns( ).
      lr_columns->set_optimize( abap_true ).
      lr_column = lr_columns->get_column( 'MANDT' ). 
      lr_column->set_visible( abap_false ).
    Then to display:
      lr_salvgrid->display( ).
    I would have thought that the edit parameter would be somewhere in the fieldcat ( in class CL_SALV_COLUMN )
    but I cannot find it there.  Everything else like text/edit mask/currency/visible etc is here but not edit.

  • Mobile display UI design, set grid aspect ratio/size

    Hi, is there a way to set the aspect ratio of the grid I am working on to the dimensions of my phone's display, so I can design with that display size in mind?
    Thanks and cheers,
    c

    Thanks Shane. Tried that on my set, was able to set to normal when viewing off-air picture, but when switching inputs to te dvd player the side bars are gone. Fiddled with the dvd player settings, set it for 4:3 output and I get a letterbox frame but at least the graphics are on screen. Looks like the stretch setting you spoke of.
    Regarding Final Cut settings, in capture preset the setting DV NTSC 48 has a default of 3:2 aspect ratio. I see I can edit and change it to NTSC 4:3. Do you think it should be 4:3?

  • Photoshop cs3 and setting grid off - to never come on, unless I want it on.. How?

    HI .. I am so annoyed with CS3 I cant figure out how to keep the grid off.. for good..
    every time i restart photoshop and open images the grid is on!
    yes i know how to hide it once it is open, and i know that once it is hidden on the first image all subsequent images i open will have it off.
    But then once i restart photoshop it is back on again. So annoying since i usually open photoshop from my finder by shift clicking many psds and find the grid is on alll of them.
    How how how? nothing in prefs, nothing in help, nothing on this at all.
    I just want the grid off for good, unless of course I ask for it on.
    Please help!
    using a mac by the way.

    Have you checked your View menu to see which of the View/Show options that you have checked?
    Cmd ' (inverted coma) should clear the grid.
    If that doesn't solve the problem, try trashing your Prefs..

  • Is it possible to set GRID Computing

    This Question is not relevant to this forum but i want to get some information on GRID
    We have more that 20 standalone server in our office.
    Is it possible to deploy GRID computing on this environment
    Please share your thoughts
    ANy ideas....
    Message was edited by:
    Maran Viswarayar

    Grid computing is a style of dynamic or semi-dynamic CPU and application resource management.
    Applications generally have to be written to conform to the Grid environment to be able to utilize it properly.
    Oracle provides Grid-capable resources: the Grid-capable database is called 'Real Application Cluster' and the Grid-capable middle tier is called the 'Oracle Application Server' operating in a cluster mode.
    Oracle also has somthing called the Oracle 'Grid Control'
    The Grid Control is somewhat inappropriately named as it is neither a Grid, nor is it a Control - instead it is a monitoring tool that is designed to monitor Oracle's primary technologies (databases, app servers) as well as the servers and related disks. (In the case of the database, it can also do the admin, but for app servers, etc, it simply calls the appriopriate admin tool.)
    SO ... you could deploy Grid Computing on your 20 standdalone servers, but it does require some thought. You could get some more information about ORacle's solution at http://www.oracle.com/technology/tech/grid/index.html
    ... and you could easily deploy Oracle's Grid Control to monitor, and help manage, you existing 20 servers. For that go to http://otn.oracle.com and look for "Enterprise Manager"

  • Setting Grid Bag Layout Constraints

    Hi any body can tell me whether the following gridbag constraints are correct or wrong in the java class.
    My problem is that the two butons (cancel and submit) are not displayed i am using Eclipse Ide Visual editor 2.1.
    Please any body can help me out if there are any changes to be done .
    * Created on May 25, 2004
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    package demo;
    import java.awt.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.JMenuBar;
    import javax.swing.JPanel;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    * @author kv5459
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class DataBase extends JFrame {
         private javax.swing.JPanel jContentPane = null;
         JPanel XXqqds_GridField2;
         JPanel XXqqds_GridField3;
         JLabel XXqqds_TextGraphic4;
         JTextField XXqqds_DataField5;
         JLabel XXqqds_TextGraphic6;
         JTextField XXqqds_DataField7;
         JPanel XXqqds_GridField8;
    JButton XXqqds_PushButton9;
         JButton XXqqds_PushButton10;
         * This is the default constructor
         public DataBase() {
              super();
              initialize();
         * This method initializes this
         * @return void
         private void initialize() {
              this.setSize(500, 375);
              this.setContentPane(getJContentPane());
              setTitle("");
              setLocale(java.util.Locale.getDefault());
              setResizable(true);
              setState(Frame.NORMAL);
              setSize(500,375);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setVisible(true);
         * This method initializes jContentPane
         * @return javax.swing.JPanel
         private javax.swing.JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new javax.swing.JPanel();
                   jContentPane.setLayout(null);
              XXqqds_GridField2= new JPanel();
              XXqqds_GridField2.setBackground(getContentPane().getBackground());
              XXqqds_GridField2.setForeground(getContentPane().getForeground());
              XXqqds_GridField2.setLayout(new GridBagLayout());
              jContentPane.add(XXqqds_GridField2);
              XXqqds_GridField3= new JPanel();
              XXqqds_GridField3.setBackground(XXqqds_GridField2.getBackground());
              XXqqds_GridField3.setForeground(XXqqds_GridField2.getForeground());
              XXqqds_GridField3.setLayout(new GridBagLayout());
              XXqqds_GridField3.setBounds(new Rectangle(0,0,175,39));
              GridBagConstraints c1 = new GridBagConstraints();
              c1.gridx = 0;
              c1.gridy = 0;c1.gridwidth = 2;
              c1.anchor = java.awt.GridBagConstraints.CENTER;
              c1.weightx=0;c1.weighty=0;
              c1.fill = java.awt.GridBagConstraints.NONE;
              XXqqds_GridField3.setPreferredSize(new java.awt.Dimension(205,192));
              c1.ipadx = 0;c1.ipady = 0;
              XXqqds_TextGraphic4= new JLabel();
              XXqqds_TextGraphic4.setText("Name");
              XXqqds_TextGraphic4.setBackground(XXqqds_GridField3.getBackground());
              XXqqds_TextGraphic4.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_TextGraphic4.setBounds(new Rectangle(13,2,49,15));
              GridBagConstraints c2 = new GridBagConstraints();
              c2.gridx=0;
              c2.gridy=0;
              c2.gridwidth=1;c2.gridheight=1;
              c2.anchor = java.awt.GridBagConstraints.NORTHWEST;
              c2.weightx = 0.0D;c2.weighty = 1.0D;
              c2.ipadx=0;c2.ipady=0;
              c2.fill = java.awt.GridBagConstraints.NONE;
              c2.insets = new java.awt.Insets(10,20,0,0);
              XXqqds_DataField5= new JTextField();
              XXqqds_DataField5.setBackground(new Color(255,255,255));
              XXqqds_DataField5.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_DataField5.setBounds(new Rectangle(77,0,122,19));
              XXqqds_DataField5.setHorizontalAlignment(SwingConstants.LEADING);
              GridBagConstraints c3 = new GridBagConstraints();
              c3.gridx=1;
              c3.gridy=0;
              c3.gridwidth=1;c3.gridheight=1;
              c3.anchor = java.awt.GridBagConstraints.NORTH;
              c3.weightx=0;c3.weighty = 0.0D;
              c3.ipadx = 0;c3.ipady=0;
              c3.insets = new java.awt.Insets(10,0,0,5);
              XXqqds_DataField5.setPreferredSize(new java.awt.Dimension(117,20));
              XXqqds_GridField2.setSize(275, 192);
              XXqqds_GridField2.setLocation(96, 15);
              c3.fill=GridBagConstraints.HORIZONTAL;
              XXqqds_TextGraphic6= new JLabel();
              XXqqds_TextGraphic6.setText("Password");
              XXqqds_TextGraphic6.setBackground(XXqqds_GridField3.getBackground());
              XXqqds_TextGraphic6.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_TextGraphic6.setBounds(new Rectangle(0,24,77,15));
              GridBagConstraints c4 = new GridBagConstraints();
              c4.gridx=0;
              c4.gridy = 0;
              c4.gridwidth=1;c4.gridheight=1;
              c4.anchor = java.awt.GridBagConstraints.NORTHWEST;
              c4.weightx=0;c4.weighty=0;
              c4.ipadx=0;c4.ipady=0;
              c4.fill=GridBagConstraints.NONE;
              c4.insets = new java.awt.Insets(40,20,0,0);
              XXqqds_DataField7= new JTextField();
              XXqqds_DataField7.setBackground(new Color(255,255,255));
              XXqqds_DataField7.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_DataField7.setBounds(new Rectangle(77,22,123,19));
              XXqqds_DataField7.setHorizontalAlignment(SwingConstants.LEADING);
              GridBagConstraints c5 = new GridBagConstraints();
              c5.gridx=1;
              c5.gridy=0;
              c5.gridwidth=1;c5.gridheight=1;
              c5.anchor = java.awt.GridBagConstraints.NORTH;
              c5.weightx=0;c5.weighty=0;
              c5.ipadx=0;c5.ipady=0;
              //c.fill=GridBagConstraints.VERTICAL;
         //     c.fill=GridBagConstraints.HORIZONTAL;
              XXqqds_GridField8= new JPanel();
              XXqqds_GridField8.setBackground(XXqqds_GridField2.getBackground());
              XXqqds_GridField8.setForeground(XXqqds_GridField2.getForeground());
              XXqqds_GridField8.setLayout(new GridBagLayout());
              XXqqds_GridField8.setBounds(new Rectangle(28,39,118,22));
              GridBagConstraints c6 = new GridBagConstraints();
              c6.gridx=0;
              c6.gridy = 0;
              c6.anchor = java.awt.GridBagConstraints.SOUTH;
              c6.weightx=0;c6.weighty = 1.0D;
         //     c.fill=GridBagConstraints.BOTH;
    XXqqds_GridField8.setPreferredSize(new java.awt.Dimension(205,42));
              c6.ipadx=0;c6.ipady=0;
    XXqqds_DataField7.setPreferredSize(new java.awt.Dimension(117,20));
    XXqqds_PushButton9= new JButton();
              XXqqds_PushButton9.setBackground(XXqqds_GridField8.getBackground());
              XXqqds_PushButton9.setForeground(XXqqds_GridField8.getForeground());
              XXqqds_PushButton9.setBounds(new Rectangle(68,0,67,22));
    GridBagConstraints c7 = new GridBagConstraints();
    c1.gridheight = 1;
    c5.insets = new java.awt.Insets(40,0,0,0);
              c7.gridx=0;
              c7.gridy=0;
              c7.gridwidth=1;c7.gridheight=1;
              c7.anchor = java.awt.GridBagConstraints.WEST;
              c7.weightx = 1.0D;c7.weighty = 0.0D;
              c7.ipadx=0;c7.ipady=0;
              //c.fill=GridBagConstraints.BOTH;
    c7.insets = new java.awt.Insets(0,20,0,0);
    XXqqds_GridField8.add(XXqqds_PushButton9, c7);
              XXqqds_PushButton9.setText("Submit");
              XXqqds_PushButton9.setPreferredSize(new java.awt.Dimension(74,20));
              XXqqds_GridField3.add(XXqqds_TextGraphic4, c2);
              XXqqds_GridField3.add(XXqqds_DataField5, c3);
              XXqqds_GridField3.add(XXqqds_TextGraphic6, c4);
              XXqqds_GridField3.add(XXqqds_DataField7, c5);
              XXqqds_GridField2.add(XXqqds_GridField3, c1);
              XXqqds_GridField2.add(XXqqds_GridField8, c6);
         /*     XXqqds_PushButton9= new JButton();
              XXqqds_PushButton9.setBackground(XXqqds_GridField8.getBackground());
              XXqqds_PushButton9.setForeground(XXqqds_GridField8.getForeground());
              XXqqds_PushButton9.setBounds(new Rectangle(68,0,67,22));
    GridBagConstraints c7 = new GridBagConstraints();
              c7.gridx = 0;
              c7.gridy = 0;
              c7.gridwidth=1;c7.gridheight=1;
              c7.anchor = java.awt.GridBagConstraints.WEST;
              c7.weightx = 1.0D;c7.weighty = 0.0D;
              c7.ipadx=0;c7.ipady=0;
         //     c7.fill=GridBagConstraints.BOTH;
    c7.insets = new java.awt.Insets(0,20,0,0);
    XXqqds_PushButton9.setPreferredSize(new java.awt.Dimension(74,22));
    XXqqds_PushButton9.setText("Submit");
              XXqqds_GridField8.add(XXqqds_PushButton9, c7);
    XXqqds_PushButton10= new JButton();
              XXqqds_PushButton10.setBackground(XXqqds_GridField8.getBackground());
              XXqqds_PushButton10.setForeground(XXqqds_GridField8.getForeground());
              XXqqds_PushButton10.setBounds(new Rectangle(0,0,68,22));
    GridBagConstraints c8 = new GridBagConstraints();
              c8.gridx = 1;
              c8.gridy = 0;
              c8.gridwidth=1;c8.gridheight=1;
              c8.anchor = java.awt.GridBagConstraints.EAST;
              c8.weightx=0;c8.weighty=0;
              c8.ipadx=0;c8.ipady=0;
              //c.fill=GridBagConstraints.BOTH;
    c8.insets = new java.awt.Insets(0,0,0,15);
    XXqqds_DataField7.setPreferredSize(new java.awt.Dimension(117,20));
              XXqqds_PushButton10.setText("cancel");
              XXqqds_PushButton10.setPreferredSize(new java.awt.Dimension(74,22));
              XXqqds_GridField8.add(XXqqds_PushButton10, c8);
              return jContentPane;
         public static void main(String a[])
         new DataBase();

    Hi EvilEdna,
    First of all thanks for the suggession. Now i am sending properly indented code.
    My problem is PushButton9 And PushButton10 are not displayed properly.Please check the constraints of
    buttons 9 & 10.And i am using eclipse Visual editor IDE(2.1).
    * Created on May 25, 2004
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    package demo;
    import java.awt.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.JMenuBar;
    import javax.swing.JPanel;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    * @author kv5459
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class DataBase extends JFrame {
         private javax.swing.JPanel jContentPane = null;
    JPanel XXqqds_GridField2;
         JPanel XXqqds_GridField3;
    JLabel XXqqds_TextGraphic4;
         JTextField XXqqds_DataField5;
         JLabel XXqqds_TextGraphic6;
         JTextField XXqqds_DataField7;
    JPanel XXqqds_GridField8;
    JButton XXqqds_PushButton9;
    JButton XXqqds_PushButton10;
         * This is the default constructor
         public DataBase() {
              super();
              initialize();
         * This method initializes this
         * @return void
         private void initialize() {
              this.setSize(500, 375);
              this.setContentPane(getJContentPane());
              setTitle("");
              setLocale(java.util.Locale.getDefault());
              setResizable(true);
              setState(Frame.NORMAL);
              setSize(500,375);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setVisible(true);
         * This method initializes jContentPane
         * @return javax.swing.JPanel
         private javax.swing.JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new javax.swing.JPanel();
                   jContentPane.setLayout(null);
              /* JPanel */     
              XXqqds_GridField2= new JPanel();
              XXqqds_GridField2.setBackground(getContentPane().getBackground());
              XXqqds_GridField2.setForeground(getContentPane().getForeground());
              XXqqds_GridField2.setLayout(new GridBagLayout());
              jContentPane.add(XXqqds_GridField2);
    /* JPanel */     
    XXqqds_GridField3= new JPanel();
              XXqqds_GridField3.setBackground(XXqqds_GridField2.getBackground());
              XXqqds_GridField3.setForeground(XXqqds_GridField2.getForeground());
              XXqqds_GridField3.setLayout(new GridBagLayout());
              XXqqds_GridField3.setBounds(new Rectangle(0,0,175,39));
              GridBagConstraints c1 = new GridBagConstraints();
              c1.gridx = 0;
              c1.gridy = 0;
    c1.gridwidth = 2;
    c1.gridheight = 1;
              c1.anchor = java.awt.GridBagConstraints.CENTER;
              c1.weightx=0;c1.weighty=0;
              c1.fill = java.awt.GridBagConstraints.NONE;
              XXqqds_GridField3.setPreferredSize(new java.awt.Dimension(205,192));
              c1.ipadx = 0;c1.ipady = 0;
    XXqqds_GridField2.add(XXqqds_GridField3, c1);
    /* JLabel */
              XXqqds_TextGraphic4= new JLabel();
              XXqqds_TextGraphic4.setText("Name");
              XXqqds_TextGraphic4.setBackground(XXqqds_GridField3.getBackground());
              XXqqds_TextGraphic4.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_TextGraphic4.setBounds(new Rectangle(13,2,49,15));
              GridBagConstraints c2 = new GridBagConstraints();
              c2.gridx=0;
              c2.gridy=0;
              c2.gridwidth=1;c2.gridheight=1;
              c2.anchor = java.awt.GridBagConstraints.NORTHWEST;
              c2.weightx = 0.0D;c2.weighty = 1.0D;
              c2.ipadx=0;c2.ipady=0;
              c2.fill = java.awt.GridBagConstraints.NONE;
              c2.insets = new java.awt.Insets(10,20,0,0);
    XXqqds_GridField3.add(XXqqds_TextGraphic4, c2);
    /* JTextField */
              XXqqds_DataField5= new JTextField();
              XXqqds_DataField5.setBackground(new Color(255,255,255));
              XXqqds_DataField5.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_DataField5.setBounds(new Rectangle(77,0,122,19));
              XXqqds_DataField5.setHorizontalAlignment(SwingConstants.LEADING);
              GridBagConstraints c3 = new GridBagConstraints();
              c3.gridx=1;
              c3.gridy=0;
              c3.gridwidth=1;c3.gridheight=1;
              c3.anchor = java.awt.GridBagConstraints.NORTH;
              c3.weightx=0;c3.weighty = 0.0D;
              c3.ipadx = 0;c3.ipady=0;
              c3.insets = new java.awt.Insets(10,0,0,5);
              XXqqds_DataField5.setPreferredSize(new java.awt.Dimension(117,20));
              c3.fill=GridBagConstraints.HORIZONTAL;
    XXqqds_GridField3.add(XXqqds_DataField5, c3);
    /* JLabel */
              XXqqds_TextGraphic6= new JLabel();
              XXqqds_TextGraphic6.setText("Password");
              XXqqds_TextGraphic6.setBackground(XXqqds_GridField3.getBackground());
              XXqqds_TextGraphic6.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_TextGraphic6.setBounds(new Rectangle(0,24,77,15));
              GridBagConstraints c4 = new GridBagConstraints();
              c4.gridx=0;
              c4.gridy = 0;
              c4.gridwidth=1;c4.gridheight=1;
              c4.anchor = java.awt.GridBagConstraints.NORTHWEST;
              c4.weightx=0;c4.weighty=0;
              c4.ipadx=0;c4.ipady=0;
              c4.fill=GridBagConstraints.NONE;
              c4.insets = new java.awt.Insets(40,20,0,0);
    XXqqds_GridField3.add(XXqqds_TextGraphic6, c4);
              /* JTextField */
    XXqqds_DataField7= new JTextField();
              XXqqds_DataField7.setBackground(new Color(255,255,255));
              XXqqds_DataField7.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_DataField7.setBounds(new Rectangle(77,22,123,19));
              XXqqds_DataField7.setHorizontalAlignment(SwingConstants.LEADING);
              GridBagConstraints c5 = new GridBagConstraints();
              c5.gridx=1;
              c5.gridy=0;
              c5.gridwidth=1;c5.gridheight=1;
              c5.anchor = java.awt.GridBagConstraints.NORTH;
              c5.weightx=0;c5.weighty=0;
              c5.ipadx=0;c5.ipady=0;
    c5.insets = new java.awt.Insets(40,0,0,0);
    XXqqds_DataField7.setPreferredSize(new java.awt.Dimension(117,20));
         XXqqds_GridField3.add(XXqqds_DataField7, c5);
    /* JPanel */
    XXqqds_GridField8= new JPanel();
              XXqqds_GridField8.setBackground(XXqqds_GridField2.getBackground());
              XXqqds_GridField8.setForeground(XXqqds_GridField2.getForeground());
              XXqqds_GridField8.setLayout(new GridBagLayout());
              XXqqds_GridField8.setBounds(new Rectangle(28,39,118,22));
              GridBagConstraints c6 = new GridBagConstraints();
              c6.gridx=0;
              c6.gridy = 0;
              c6.anchor = java.awt.GridBagConstraints.SOUTH;
              c6.weightx=0;c6.weighty = 1.0D;
         XXqqds_GridField8.setPreferredSize(new java.awt.Dimension(205,42));
              c6.ipadx=0;c6.ipady=0;
    XXqqds_GridField2.add(XXqqds_GridField8, c6);
    /* Submit Button */
    XXqqds_PushButton9= new JButton();
              XXqqds_PushButton9.setBackground(XXqqds_GridField8.getBackground());
              XXqqds_PushButton9.setForeground(XXqqds_GridField8.getForeground());
              XXqqds_PushButton9.setBounds(new Rectangle(68,0,67,22));
    GridBagConstraints c7 = new GridBagConstraints();
    c7.gridx=0;
              c7.gridy=0;
              c7.gridwidth=1;c7.gridheight=1;
              c7.anchor = java.awt.GridBagConstraints.WEST;
              c7.weightx = 1.0D;c7.weighty = 0.0D;
              c7.ipadx=0;c7.ipady=0;
              c7.insets = new java.awt.Insets(0,20,0,0);
              XXqqds_PushButton9.setText("Submit");
              XXqqds_PushButton9.setPreferredSize(new java.awt.Dimension(74,20));
              XXqqds_GridField8.add(XXqqds_PushButton9, c7);
         /* Cancel Button */
    XXqqds_PushButton10= new JButton();
              XXqqds_PushButton10.setBackground(XXqqds_GridField8.getBackground());
              XXqqds_PushButton10.setForeground(XXqqds_GridField8.getForeground());
              XXqqds_PushButton10.setBounds(new Rectangle(0,0,68,22));
    GridBagConstraints c8 = new GridBagConstraints();
    c8.gridx = 1;
              c8.gridy = 0;
              c8.gridwidth=1;c8.gridheight=1;
              c8.anchor = java.awt.GridBagConstraints.EAST;
              c8.weightx=0;c8.weighty=0;
              c8.ipadx=0;c8.ipady=0;
         c8.insets = new java.awt.Insets(0,0,0,15);
    XXqqds_PushButton10.setText("cancel");
              XXqqds_PushButton10.setPreferredSize(new java.awt.Dimension(74,22));
    XXqqds_GridField8.add(XXqqds_PushButton10, c8);
              return jContentPane;
         public static void main(String a[])
         new DataBase();

  • [Solved] wy i can place xfce4 desktop icons in a "grid" only?

    hello archers!
    im in love with xfce4 DE, but the annoying thing is that i can place the desktop icons only in a invisible "grid" of tiles.
    i changed the display manager to gdm, but it didn't help. i tryed changing the WM, but didn't not find out how to do that.
    Yes, i dont understand how DE's working internal, cause there are so many parts, as DM, WM, session-manager, and so on, which confuses me.
    So how i can place my icons individually on the desktop?
    Thanks in advance!!
    Last edited by xfce-tux (2011-09-12 21:13:34)

    Another way to adjust the desktop grid size settings and more. 
    Source:  http://git.xfce.org/xfce/xfdesktop/tree/README
    HIDDEN CUSTOMISATIONS
    ~~~~~~~~~~~~~~~~~~~~~
    If you're using the icon view, and would like to change how the text looks,
    you have three things you can change: the opacity (transparency) of the
    rounded text background, the color of the rounded text background, and the
    color of the text itself.
    You'd want to add something like this to your ~/.gtkrc-2.0 file:
    style "xfdesktop-icon-view" {
    XfdesktopIconView::label-alpha = 75
    XfdesktopIconView::selected-label-alpha = 100
    XfdesktopIconVIew::ellipsize-icon-labels = 1
    XfdesktopIconView::shadow-x-offset = 1
    XfdesktopIconView::shadow-y-offset = 1
    XfdesktopIconView::shadow-color = "#ff0000"
    XfdesktopIconView::selected-shadow-x-offset = 2
    XfdesktopIconView::selected-shadow-y-offset = 2
    XfdesktopIconView::selected-shadow-color = "#00ff00"
    XfdesktopIconVIew::cell-spacing = 6
    XfdesktopIconView::cell-padding = 6
    XfdesktopIconView::cell-text-width-proportion = 2.5
    base[NORMAL] = "#00ff00"
    base[SELECTED] = "#5050ff"
    base[ACTIVE] = "#0000ff"
    fg[NORMAL] = "#ff0000"
    fg[SELECTED] = "#ff0000"
    fg[ACTIVE] = "#ff0000"
    widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
    The first three entries set the opacity of the rounded text background
    (allowed values are from 0 (totally transparent) to 255 (totally opaque),
    and whether or not unselected icons get their labels ellipsized
    (truncated) to fit on one line. (The 'selected-' version controls the
    opacity of icons that have been selected with the mouse.)
    The second six entries can be used to enable a text shadow to be painted
    with the icon labels. The offsets are in pixels. Setting them to 0 (the
    defaults) will disable the shadows entirely. Again, the 'selected-'
    versions apply to icons that have been selected with the mouse.
    The third four entries set spacing and sizing for individual icons on
    the grid. The 'cell-spacing' property specifies the spacing between each
    'cell' in the grid of icons. The 'cell-padding' property sets extra
    padding placed around each icon+text. The units for these two are in
    pixels. The 'cell-text-width-proportion' property specifies the maximum
    width of the text label underneat the icon, as a multiplier of the icon
    width (so for 30px icons, '2.5' would leave a 75px wide area underneath
    for the text).
    The fourth three entries set the color of the rounded text background.
    * NORMAL sets the color for the regular, unselected state.
    * SELECTED sets the color for when the icon is selected, and the desktop has
    keyboard/mouse focus.
    * ACTIVE sets the color for when the icon is selected, but the desktop does
    not have keyboard/mouse focus.
    The final three entries set the color of the label text. See above for the
    differences between NORMAL, SELECTED, and ACTIVE.

  • How to set up iPad as surprise gift

    I am going to buy my mom an iPad 3 for Mother's Day.  As I just started working full-time several months ago (I'm 22), this will be my first big present to anyone.  I even ordered a case already, and am looking at speaker docks.  I want the ipad to be perfect and fully-set up for my mom by May 13th.  My mom is almost computer illeterate; she knows how to check email, and thats about it.  I want to completely set it up for her: buy apps, save bookmarks, add music, photos, etc.  I was planning on setting up an new email address for her, registering an apple id with this email, and buying apps with a gift card.  However, my dad has an apple id that is linked to his iPhone; I realized today that they might want to end up on the same apple id.  I don't want to use my dad's apple id because they share the same email address, which my mom checks pretty frequently.  Is she going to be able to change apple id's and still keep all of the loaded content?
    If that is not possible, what are my other options?
    Thanks!

    You really need to get the apple id straightened out before you start, or you will pay the price forever!   You have a couple of options.  I assume your dad is cooperating with this project.  I think you are probably right about using his apple account.
    Make sure you have established the second e mail address and that to works.
    Log onto apple.com, and in the upper right, log into the account.  Once in the accout, click on the area where you can change you data, and add the second email address.    Apple wil verify the adress by send it an e mail, and won't do anything further until you respond to an e mail sent to that address, so watch for it.
    After the address is verified, on your accout page, make that address your primary address contact from apple.  That way if apple sends confirmations for apps and things, they will go to the new address, and your mom won't see them.  Then set the pad up using the same aple Id as your dad.  Remember, you have not changed the apple id or the password, you have only changed the e mail address for contact.   ( you can change it back after the surprise)
    The other suggestion...  I have given a coule of pads to folks, and one of the real fun parts for them and for you is o
    Ending the box, and doing the set up.  It is a great way for them to learn enough to use it.  Press the buttons etc.  pick their own apps.  You can gift her all the apps you want, and she can learn how to download them herself.
    I gave a pad to mom in law, and did pretty much what you are planning, and at the end of the day, having it all set when she openied it made it harder for her to learn, rather than easier.
    But you are doing a god thing, and I am sure she will enjoy the pad.

  • How to set up myself as family share organizer with my own Apple id when someone else has gotten a new phone and used my Apple ID on it and set up family share for themselves?

    its my Apple ID and it's basically been hijacked on a device I dont own and someone else has been set up as family share organizer in my own Apple ID and I can't seem to do anything about it.

    You really need to get the apple id straightened out before you start, or you will pay the price forever!   You have a couple of options.  I assume your dad is cooperating with this project.  I think you are probably right about using his apple account.
    Make sure you have established the second e mail address and that to works.
    Log onto apple.com, and in the upper right, log into the account.  Once in the accout, click on the area where you can change you data, and add the second email address.    Apple wil verify the adress by send it an e mail, and won't do anything further until you respond to an e mail sent to that address, so watch for it.
    After the address is verified, on your accout page, make that address your primary address contact from apple.  That way if apple sends confirmations for apps and things, they will go to the new address, and your mom won't see them.  Then set the pad up using the same aple Id as your dad.  Remember, you have not changed the apple id or the password, you have only changed the e mail address for contact.   ( you can change it back after the surprise)
    The other suggestion...  I have given a coule of pads to folks, and one of the real fun parts for them and for you is o
    Ending the box, and doing the set up.  It is a great way for them to learn enough to use it.  Press the buttons etc.  pick their own apps.  You can gift her all the apps you want, and she can learn how to download them herself.
    I gave a pad to mom in law, and did pretty much what you are planning, and at the end of the day, having it all set when she openied it made it harder for her to learn, rather than easier.
    But you are doing a god thing, and I am sure she will enjoy the pad.

  • How to edit fluid grid layout in Dreamweaver CS6

    Hi all
    I am a designer at the company I work for and we've been building repsonsive designs for the past 12months. I've decided that it would be good for me to try out the new fluid grid layout tool in Dreamweaver CS6 to see if we can improve the design process by using dreamweaver to allow us to quickly prototype my designs for mobile, tablet and desktop.
    However I have 2 problems so far.
    1) I've created my first fluid grid layout and saved all the files into a new folder. I set grid widths and gutter but now want to edit the values as I am not happy with the gutter. Can this be done? I can't seem to find the file that does this so can anyone point me in the right direction?
    2) We have traditionally used pixels to define our grids. I normally produce a grid with a fixed pixel gutter, overall width and column size. It seems that Dreamweaver only has the option to use percentages. Can anyone tell me if this can be changed and again where I can do this?
    Thanks for your  help
    Trevor

    In Code View, open your FluidGrid.css file (or whatever you named it) when you created the layout.
    FluidGrid Layouts are not perfect and the interface could use a lot of improvement.  That said, I think they can be used as a starting point for simple layout projects providing you understand their limitations and are willing to manually tweak the FluidGrid.css code.   
    If you've been doing Responsive Layouts for 12 months, you're probably building desktop to mobile whereas FluidGrids build from mobile to desktop.   It takes a little adjustment in thinking.
    Keep FluidGrid.css for layout only.  Use a seperate stylesheet for your content styles. 
    Nancy O.

  • How to use ALV Grid?

    Hi,
    I am totally new to ALV Grids. Could you give a full example of creating a ALV Grid with 2 columns, thinking there is a internal table itab with itab-col1 & itab-col2. Please start from initialising variables and onwards.
    Thanks,
    Kishan

    Hi,
    Simple example of how to implement an ALV grid
    Note that this example uses table ZSFLIGHT. The table is equivalent to the table SFLIGHT.
    Steps:
    1.        Create an executable program (Report)
    2.        Create a screen (100) and place a custom container named ALV_CONTAINER on the screen
    3.        Create a Pushbutton. Give it the text Exit and the functioncode EXIT
    REPORT sapmz_hf_alv_grid .
    TABLES: zsflight.
    G L O B A L   I N T E R N  A L   T A B L E S
    DATA: gi_sflight TYPE STANDARD TABLE OF sflight.
    G L O B A L   D A T A
    DATA: ok_code LIKE sy-ucomm,
    g_wa_sflight LIKE sflight.
    Declare reference variables to the ALV grid and the container
    DATA:
    go_grid             TYPE REF TO cl_gui_alv_grid,
    go_custom_container TYPE REF TO cl_gui_custom_container.
    S T A R T - O F - S E L E C T I O N.
    START-OF-SELECTION.
    SET SCREEN '100'.
    *&      Module  USER_COMMAND_0100  INPUT
    MODULE user_command_0100 INPUT.
    CASE ok_code.
    WHEN 'EXIT'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
    Create objects
    IF go_custom_container IS INITIAL.
    CREATE OBJECT go_custom_container
    EXPORTING container_name = 'ALV_CONTAINER'.
    CREATE OBJECT go_grid
    EXPORTING
      i_parent = go_custom_container.
    PERFORM load_data_into_grid.
    ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Form  load_data_into_grid
    FORM load_data_into_grid.
    Read data from table SFLIGHT
    SELECT *
    FROM zsflight
    INTO TABLE gi_sflight.
    Load data into the grid and display them
    CALL METHOD go_grid->set_table_for_first_display
    EXPORTING i_structure_name = 'SFLIGHT'
    CHANGING  it_outtab        = gi_sflight.
    ENDFORM.                    " load_data_into_grid
    Allow the user to save and reuse the layout
    A button can be shown on the grid toolbar, allowing the user to save and reuse a layout. The button looks like this: 
    See also example in SAP standard program BCALV_GRID_09.
    To do this use the parameters IS_VARIANT and I_SAVE of the set_table_for_first_display method. Note that the IS_VARIANT
    parameter must have the structure DISVARIANT.
    The I_SAVE "Options for saving layouts" parameter can have the following values:
    ·        U Only user specific layouts can be saved
    ·        X Only global layouts can be saved
    ·        A Both user specific and global layouts can be saved
    ·        Space Layouts can not be saved
    Add the following code to the example:
    FORM load_data_into_grid.
    DATA:
      For parameter IS_VARIANT
    l_layout TYPE disvariant.
    Code..........    
    Load data into the grid and display them
    l_layout-report = sy-repid.
    CALL METHOD go_grid->set_table_for_first_display
    EXPORTING i_structure_name = 'SFLIGHT'
         is_variant       = l_layout
         i_save           = 'A'
    CHANGING  it_outtab        = gi_
    Integrate user defined functions in the grid toolbar
    Possibilities:
    ·        Replace existing functions in the toolbar or context men with user defined functions
    ·        Add new functions to the toolbar or context menu
    Note that the whole toolbar can be removed using the IT_TOOLBAR_EXCLUDING parameter of the set_table_for_first_display
    method.
    See also example in SAP standard program BCALV_GRID_05
    1) To get access to the icons insert the following statement in the top of the program:
    TYPE-POOLS: icon.
    2) To allow the declaration of o_event_receiver before the lcl_event_receiver class is defined, declare it as deferred in the start of
    the program
    To allow the declaration of o_event_receiver before the lcl_event_receiver class is defined, declare it as deferred in the
    start of the program
    CLASS lcl_event_receiver DEFINITION DEFERRED.
    3) Declare reference to the event handler class
    DATA:
    o_event_receiver TYPE REF TO lcl_event_receiver.
    4) Class for event receiver. This class adds the new button to the toolbar and handles the event when the button is pushed
    CLASS lcl_event_receiver DEFINITION.
    PUBLIC SECTION.
    METHODS:
    handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
    IMPORTING
    e_object e_interactive,
    handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
    IMPORTING e_ucomm.
    ENDCLASS.
          CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
    METHOD handle_toolbar.
    Event handler method for event toolbar.
    CONSTANTS:
    Constants for button type
    c_button_normal           TYPE i VALUE 0,
    c_menu_and_default_button TYPE i VALUE 1,
    c_menu                    TYPE i VALUE 2,
    c_separator               TYPE i VALUE 3,
    c_radio_button            TYPE i VALUE 4,
    c_checkbox                TYPE i VALUE 5,
    c_menu_entry              TYPE i VALUE 6.
    DATA:
    ls_toolbar  TYPE stb_button.
      Append seperator to the normal toolbar
    CLEAR ls_toolbar.
    MOVE c_separator TO ls_toolbar-butn_type..
    APPEND ls_toolbar TO e_object->mt_toolbar.
      Append a new button that to the toolbar. Use E_OBJECT of
      event toolbar. E_OBJECT is of type CL_ALV_EVENT_TOOLBAR_SET.
      This class has one attribute MT_TOOLBAR which is of table type
      TTB_BUTTON. The structure is STB_BUTTON
    CLEAR ls_toolbar.
    MOVE 'CHANGE'        TO ls_toolbar-function.
    MOVE  icon_change    TO ls_toolbar-icon.
    MOVE 'Change flight' TO ls_toolbar-quickinfo.
    MOVE 'Change'        TO ls_toolbar-text.
    MOVE ' '             TO ls_toolbar-disabled.
    APPEND ls_toolbar    TO e_object->mt_toolbar.
    ENDMETHOD.
    METHOD handle_user_command.
      Handle own functions defined in the toolbar
    CASE e_ucomm.
    WHEN 'CHANGE'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMETHOD.
    ENDCLASS.
    5) In the PBO module, crate object for event handler and set handler
    CREATE OBJECT o_event_receiver.
    SET HANDLER o_event_receiver->handle_user_command FOR go_grid.
    SET HANDLER o_event_receiver->handle_toolbar FOR go_grid.
    6) In the PBO module after the CALL METHOD go_grid->set_table_for_first_display, raise event
    toolbar to show the modified toolbar
    CALL METHOD go_grid->set_toolbar_interactive.
    Set focus to the grid
    After CALL METHOD go_grid->set_table_for_first_display insert the following statement:
    CALL METHOD cl_gui_control=>set_focus EXPORTING control = go_grid.
    Set the title of the grid
    Fill the grid_title field of structure lvc_s_layo.
    Note that the structure lvc_s_layo can be used for to customize the grid appearance in many ways.
    DATA:
    ALV control: Layout structure
    gs_layout TYPE lvc_s_layo.
    Set grid title
    gs_layout-grid_title = 'Flights'.
    CALL METHOD go_grid->set_table_for_first_display
       EXPORTING i_structure_name = 'SFLIGHT'
                               is_layout               = gs_layout
       CHANGING   it_outtab               = gi_sflight.
    Customize the appearence of the grid
    The structure lvc_s_layo contains fields for setting graphical properties, displaying exceptions, calculating totals and enabling specific
    interaction options.
    Fill the apporpiate fields of structure lvc_s_layo and insert it as a parameter in the CALL METHOD
    go_grid->set_table_for_first_display. See the example under Set the title of the grid.
    If you want to change apperance after list output, use the methods get_frontend_layout and set_frontend_layout.
    Examples of fields in structure lvc_s_layo:
    GRID_TITLE Setting the title of the grid
    SEL_MODE. Selection mode, determines how rows can be selected. Can have the following values:
    ·        A Multiple columns, multiple rows with selection buttons.
    ·        B Simple selection, listbox, Single row/column
    ·        C Multiple rows without buttons
    ·        D Multiple rows with buttons and select all ICON
    Setting and getting selected rows (Columns) and read line contents
    You can read which rows of the grid that has been selected, and dynamic select rows of the grid using methods get_selected_rows
    and set_selected_rows. There are similar methods for columns.
    Note that the grid table always has the rows in the same sequence as displayed in the grid, thus you can use the index of the selected
    row(s) to read the information in the rows from the table. In the examples below the grid table is named gi_sflight.
    Data declaration:
    DATA:
    Internal table for indexes of selected rows
    gi_index_rows TYPE lvc_t_row,
    Information about 1 row
    g_selected_row LIKE lvc_s_row.
    Example 1: Reading index of selected row(s) and using it to read the grid table
    CALL METHOD go_grid->get_selected_rows
    IMPORTING
    et_index_rows = gi_index_rows.
    DESCRIBE TABLE gi_index_rows LINES l_lines.
    IF l_lines = 0.
    CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
    EXPORTING
         textline1 = 'You must choose a valid line'.
    EXIT.
    ENDIF.
    LOOP AT gi_index_rows INTO g_selected_row.
    READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.
    ENDIF.
    ENDLOOP.
    Example 2: Set selected row(s).
    DESCRIBE TABLE gi_index_rows LINES l_lines.
    IF l_lines > 0.
    CALL METHOD go_grid->set_selected_rows
    exporting
    it_index_rows = gi_index_rows.
    ENDIF.
    Make an Exception field ( = Traffic lights)
    There can be defined a column in the grid for display of traffic lights. This field is of type Char 1, and can contain the following values:
    ·        1 Red
    ·        2 Yellow
    ·        3 Green
    The name of the traffic light field is supplied inh the gs_layout-excp_fname used by method set_table_for_first_display.
    Example
    TYPES: BEGIN OF st_sflight.
    INCLUDE STRUCTURE zsflight.
    TYPES:  traffic_light TYPE c.
    TYPES: END OF st_sflight.
    TYPES: tt_sflight TYPE STANDARD TABLE OF st_sflight.
    DATA: gi_sflight TYPE tt_sflight.
      Set the exception field of the table
    LOOP AT gi_sflight INTO g_wa_sflight.
    IF g_wa_sflight-paymentsum < 100000.
    g_wa_sflight-traffic_light = '1'.
    ELSEIF g_wa_sflight-paymentsum => 100000 AND
        g_wa_sflight-paymentsum < 1000000.
    g_wa_sflight-traffic_light = '2'.
    ELSE.
    g_wa_sflight-traffic_light = '3'.
    ENDIF.
    MODIFY gi_sflight FROM g_wa_sflight.
    ENDLOOP.
      Name of the exception field (Traffic light field)
    gs_layout-excp_fname = 'TRAFFIC_LIGHT'.
      Grid setup for first display
    CALL METHOD go_grid->set_table_for_first_display
    EXPORTING i_structure_name = 'SFLIGHT'
                         is_layout               = gs_layout
    CHANGING  it_outtab                 = gi_sflight.
    Color a line
    The steps for coloring a line i the grid is much the same as making a traffic light.
    To color a line the structure of the  table must include a  Char 4 field  for color properties
    TYPES: BEGIN OF st_sflight.
    INCLUDE STRUCTURE zsflight.
          Field for line color
    types:  line_color(4) type c.
    TYPES: END OF st_sflight.
    TYPES: tt_sflight TYPE STANDARD TABLE OF st_sflight.
    DATA: gi_sflight TYPE tt_sflight.
    Loop trough the table to set the color properties of each line. The color properties field is
    Char 4 and the characters is set as follows:
    Char 1 = C = This is a color property
    Char 2 = 6 = Color code (1 - 7)
    Char 3 = Intensified on/of = 1 = on
    Char 4 = Inverse display = 0 = of
    LOOP AT gi_sflight INTO g_wa_sflight.
    IF g_wa_sflight-paymentsum < 100000.
    g_wa_sflight-line_color    = 'C610'.
    ENDIF.
    MODIFY gi_sflight FROM g_wa_sflight.
    ENDLOOP.
    Name of the color field
    gs_layout-info_fname = 'LINE_COLOR'.
    Grid setup for first display
    CALL METHOD go_grid->set_table_for_first_display
    EXPORTING i_structure_name = 'SFLIGHT'
                        is_layout                = gs_layout
    CHANGING  it_outtab                 = gi_sflight.
    Refresh grid display
    Use the grid method REFRESH_TABLE_DISPLAY
    Example:
    CALL METHOD go_grid->refresh_table_display.
    Complete code for the ALV grid example
    This example shows and ALV grid with flights. After selecting a line a change button can be pushed to display a change screen. After
    the changes have been saved, the ALV grid screen is displayed again, and the grid is updated with the changes.
    The example shows:
    ·        How to setup the ALV grid
    ·        How to ste focus to the grid
    ·        How to set the title of the grid
    ·        How to allow a user to save and reuse a grid layout (Variant)
    ·        How to customize the ALV grid toolbar
    ·        Refresh the grid
    ·        Set and get row selection and read line contents
    ·        Make and exception field (Traffic light)
    ·        Coloring a line
    Steps:
    ·        Create screen 100 with the ALV grid. Remember to include an exit button
    ·        Add a change button to the ALV grid toolbar
    ·        Create screen 200 the Change screen
    The screens: 
    The code:
    REPORT sapmz_hf_alv_grid .
    Type pool for icons - used in the toolbar
    TYPE-POOLS: icon.
    TABLES: zsflight.
    To allow the declaration of o_event_receiver before the
    lcl_event_receiver class is defined, decale it as deferred in the
    start of the program
    CLASS lcl_event_receiver DEFINITION DEFERRED.
    G L O B A L   I N T E R N  A L   T A B L E S
    *DATA: gi_sflight TYPE STANDARD TABLE OF sflight.
    To include a traffic light and/or color a line the structure of the
    table must include fields for the traffic light and/or the color
    TYPES: BEGIN OF st_sflight.
      INCLUDE STRUCTURE zsflight.
          Field for traffic light
    TYPES:  traffic_light TYPE c.
          Field for line color
    types:  line_color(4) type c.
    TYPES: END OF st_sflight.
    TYPES: tt_sflight TYPE STANDARD TABLE OF st_sflight.
    DATA: gi_sflight TYPE tt_sflight.
    G L O B A L   D A T A
    DATA: ok_code         LIKE sy-ucomm,
        Work area for internal table
    g_wa_sflight    TYPE st_sflight,
        ALV control: Layout structure
    gs_layout       TYPE lvc_s_layo.
    Declare reference variables to the ALV grid and the container
    DATA:
    go_grid             TYPE REF TO cl_gui_alv_grid,
    go_custom_container TYPE REF TO cl_gui_custom_container,
    o_event_receiver    TYPE REF TO lcl_event_receiver.
    DATA:
    Work area for screen 200
    g_screen200 LIKE zsflight.
    Data for storing information about selected rows in the grid
    DATA:
    Internal table
    gi_index_rows TYPE lvc_t_row,
    Information about 1 row
    g_selected_row LIKE lvc_s_row.
    C L A S S E S
    CLASS lcl_event_receiver DEFINITION.
    PUBLIC SECTION.
    METHODS:
    handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
    IMPORTING
       e_object e_interactive,
    handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
    IMPORTING e_ucomm.
    ENDCLASS.
          CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
    METHOD handle_toolbar.
    Event handler method for event toolbar.
    CONSTANTS:
    Constants for button type
    c_button_normal           TYPE i VALUE 0,
    c_menu_and_default_button TYPE i VALUE 1,
    c_menu                    TYPE i VALUE 2,
    c_separator               TYPE i VALUE 3,
    c_radio_button            TYPE i VALUE 4,
    c_checkbox                TYPE i VALUE 5,
    c_menu_entry              TYPE i VALUE 6.
    DATA:
      ls_toolbar  TYPE stb_button.
      Append seperator to the normal toolbar
    CLEAR ls_toolbar.
    MOVE c_separator TO ls_toolbar-butn_type..
    APPEND ls_toolbar TO e_object->mt_toolbar.
      Append a new button that to the toolbar. Use E_OBJECT of
      event toolbar. E_OBJECT is of type CL_ALV_EVENT_TOOLBAR_SET.
      This class has one attribute MT_TOOLBAR which is of table type
      TTB_BUTTON. The structure is STB_BUTTON
    CLEAR ls_toolbar.
    MOVE 'CHANGE'        TO ls_toolbar-function.
    MOVE  icon_change    TO ls_toolbar-icon.
    MOVE 'Change flight' TO ls_toolbar-quickinfo.
    MOVE 'Change'        TO ls_toolbar-text.
    MOVE ' '             TO ls_toolbar-disabled.
    APPEND ls_toolbar    TO e_object->mt_toolbar.
    ENDMETHOD.
    METHOD handle_user_command.
      Handle own functions defined in the toolbar
    CASE e_ucomm.
    WHEN 'CHANGE'.
      PERFORM change_flight.
           LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMETHOD.
    ENDCLASS.
    S T A R T - O F - S E L E C T I O N.
    START-OF-SELECTION.
    SET SCREEN '100'.
    *&      Module  USER_COMMAND_0100  INPUT
    MODULE user_command_0100 INPUT.
    CASE ok_code.
    WHEN 'EXIT'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
    DATA:
      For parameter IS_VARIANT that is sued to set up options for storing
      the grid layout as a variant in method set_table_for_first_display
    l_layout TYPE disvariant,
      Utillity field
    l_lines TYPE i.
    After returning from screen 200 the line that was selected before
    going to screen 200, should be selected again. The table gi_index_rows
    was the output table from the GET_SELECTED_ROWS method in form
    CHANGE_FLIGHT
    DESCRIBE TABLE gi_index_rows LINES l_lines.
    IF l_lines > 0.
    CALL METHOD go_grid->set_selected_rows
      EXPORTING
        it_index_rows = gi_index_rows.
    CALL METHOD cl_gui_cfw=>flush.
    REFRESH gi_index_rows.
    ENDIF.
    Read data and create objects
    IF go_custom_container IS INITIAL.
      Read data from datbase table
    PERFORM get_data.
      Create objects for container and ALV grid
    CREATE OBJECT go_custom_container
    EXPORTING container_name = 'ALV_CONTAINER'.
    CREATE OBJECT go_grid
    EXPORTING
      i_parent = go_custom_container.
      Create object for event_receiver class
      and set handlers
    CREATE OBJECT o_event_receiver.
    SET HANDLER o_event_receiver->handle_user_command FOR go_grid.
    SET HANDLER o_event_receiver->handle_toolbar FOR go_grid.
      Layout (Variant) for ALV grid
    l_layout-report = sy-repid. "Layout fo report
    Setup the grid layout using a variable of structure lvc_s_layo
      Set grid title
    gs_layout-grid_title = 'Flights'.
      Selection mode - Single row without buttons
      (This is the default  mode
    gs_layout-sel_mode = 'B'.
      Name of the exception field (Traffic light field) and the color
      field + set the exception and color field of the table
    gs_layout-excp_fname = 'TRAFFIC_LIGHT'.
    gs_layout-info_fname = 'LINE_COLOR'.
    LOOP AT gi_sflight INTO g_wa_sflight.
    IF g_wa_sflight-paymentsum < 100000.
          Value of traffic light field
      g_wa_sflight-traffic_light = '1'.
          Value of color field:
          C = Color, 6=Color 1=Intesified on, 0: Inverse display off
      g_wa_sflight-line_color    = 'C610'.
    ELSEIF g_wa_sflight-paymentsum => 100000 AND
           g_wa_sflight-paymentsum < 1000000.
      g_wa_sflight-traffic_light = '2'.
    ELSE.
      g_wa_sflight-traffic_light = '3'.
    ENDIF.
    MODIFY gi_sflight FROM g_wa_sflight.
    ENDLOOP.
      Grid setup for first display
    CALL METHOD go_grid->set_table_for_first_display
    EXPORTING i_structure_name = 'SFLIGHT'
              is_variant       = l_layout
              i_save           = 'A'
              is_layout        = gs_layout
    CHANGING  it_outtab        = gi_sflight.
    *-- End of grid setup -
      Raise event toolbar to show the modified toolbar
    CALL METHOD go_grid->set_toolbar_interactive.
      Set focus to the grid. This is not necessary in this
      example as there is only one control on the screen
    CALL METHOD cl_gui_control=>set_focus EXPORTING control = go_grid.
    ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0200  INPUT
    MODULE user_command_0200 INPUT.
    CASE ok_code.
    WHEN 'EXIT200'.
    LEAVE TO SCREEN 100.
    WHEN'SAVE'.
    PERFORM save_changes.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0200  INPUT
    *&      Form  get_data
    FORM get_data.
    Read data from table SFLIGHT
    SELECT *
    FROM zsflight
    INTO TABLE gi_sflight.
    ENDFORM.                    " load_data_into_grid
    *&      Form  change_flight
    Reads the contents of the selected row in the grid, ans transfers
    the data to screen 200, where it can be changed and saved.
    FORM change_flight.
    DATA:l_lines TYPE i.
    REFRESH gi_index_rows.
    CLEAR   g_selected_row.
    Read index of selected rows
    CALL METHOD go_grid->get_selected_rows
    IMPORTING
    et_index_rows = gi_index_rows.
    Check if any row are selected at all. If not
    table  gi_index_rows will be empty
    DESCRIBE TABLE gi_index_rows LINES l_lines.
    IF l_lines = 0.
    CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
       EXPORTING
            textline1 = 'You must choose a line'.
    EXIT.
    ENDIF.
    Read indexes of selected rows. In this example only one
    row can be selected as we are using gs_layout-sel_mode = 'B',
    so it is only ncessary to read the first entry in
    table gi_index_rows
    LOOP AT gi_index_rows INTO g_selected_row.
    IF sy-tabix = 1.
    READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.
    ENDIF.
    ENDLOOP.
    Transfer data from the selected row to screenm 200 and show
    screen 200
    CLEAR g_screen200.
    MOVE-CORRESPONDING g_wa_sflight TO g_screen200.
    LEAVE TO SCREEN '200'.
    ENDFORM.                    " change_flight
    *&      Form  save_changes
    Changes made in screen 200 are written to the datbase table
    zsflight, and to the grid table gi_sflight, and the grid is
    updated with method refresh_table_display to display the changes
    FORM save_changes.
    DATA: l_traffic_light TYPE c.
    Update traffic light field
    Update database table
    MODIFY zsflight FROM g_screen200.
    Update grid table , traffic light field and color field.
    Note that it is necessary to use structure g_wa_sflight
    for the update, as the screen structure does not have a
    traffic light field
    MOVE-CORRESPONDING g_screen200 TO g_wa_sflight.
    IF g_wa_sflight-paymentsum < 100000.
    g_wa_sflight-traffic_light = '1'.
      C = Color, 6=Color 1=Intesified on, 0: Inverse display off
    g_wa_sflight-line_color    = 'C610'.
    ELSEIF g_wa_sflight-paymentsum => 100000 AND
       g_wa_sflight-paymentsum < 1000000.
    g_wa_sflight-traffic_light = '2'.
    clear g_wa_sflight-line_color.
    ELSE.
    g_wa_sflight-traffic_light = '3'.
    clear g_wa_sflight-line_color.
    ENDIF.
    MODIFY gi_sflight INDEX g_selected_row-index FROM g_wa_sflight.
    Refresh grid
    CALL METHOD go_grid->refresh_table_display.
    CALL METHOD cl_gui_cfw=>flush.
    LEAVE TO SCREEN '100'.
    ENDFORM.                    " save_changes
    rgds,
    latheesh

  • APEX Theme 25 - Responsive Grid Layout Question

    Hi
    What is the best way to control an item to be positioned right next to the other item on the same row.
    I have a select list that I would like to have an edit button right next to it.
    I created two items for example:
    P_MY_SELECT_LIST Grid set New Line to Yes, Auto
    P_MY_EDIT_LINK Grid set New Line to No, Auto
    But it is not doing what I expected.. what am I missing?
    When it was tables not divs I had no trouble but now I need to learn the kep to using the Grid.
    When I hard code the edit in the Post Element of the item it works great with 2 spaces... but I can't control the item by the AUTH Scheme. I don't want them to show up unless you have the proper role.
    Plus, I want to learn the new 4.2 way!
    Thanks, Bill

    Hi Scott, Bill,
    Because Theme 25 relies on grid for most of it's positioning, it is difficult to do accomplish what was sometimes much simpler when using the tables approach for form layouts. This also happens to be one of the biggest issues with Theme 25: proper form and label positioning.
    If we look back to using tables for form layout we would see that a structure would be created immediately when we started laying out items. Because of the way tables behave, whatever the size of your first label was controlled the width of that cell, and the cells below it. Meaning all of your labels would line up, but only take the space necessary to fit your label.
    However, with a div-based grid, this is no longer possible. There is no structured set of cells that grow / contract together as there are in tables. Because of this, it is difficult to determine the width of a given container and apply that same width to others (for example, picking up your largest label, and applying the width of that label container to the other labels which are below).
    One way to go around this problem, and what we've done in Theme 25, is to used fixed-width labels. So we explicitly set the width of labels, and that makes the layout much more predictable. We know that labels will always be a certain width, and that input fields that follow will begin from the same position. However, this is very different from how forms in tables work:
    1. All labels are the same size, so even if a label is very small, or very large, it will take the same space.
    2. We can no longer align two items be right next to each other without using grids.
    3. When using grids, we have to be mindful of the label's fixed width as it can be larger than the column it is contained in.
    We're working on a cleaner approach to this problem so creating responsive applications and laying form items is easier than it currently is. In the meantime, you can override several styles to help your particular use case.
    Here are just a few styles you can apply to your page to get form alignment to behave (with a specified region static id):
    1. Manually setting the widths of labels for a given region:
    #my_region div.fieldContainer.horizontal>label {
        width: 80px;
    #my_region div.fieldContainer.horizontal div.fieldControls {
        /* width above + 16px spacing */
        margin-left: 96px;
    2. Set Label widths to only take up the space they need:
    #my_region div.fieldContainer.horizontal>label {
        float: none;
        width: auto;
    #my_region div.fieldContainer.horizontal div.fieldControls {
        margin-left: 0;
        display: inline-block;
    3. You can allow fields to float left:
    a. Add to your inline CSS:
    #my_region div.fieldContainer {float: left;}b. Set grid layout attributes for your second item as follows:
    Start New Row: No
    Column: Automatic
    New Column: NoYou can combine these together as well. For example, applying styles #2 and #3 will let you position elements side by side and immediately after each other.
    Scott,
    For some of your issues in particular, here are some possible ways to go around them:
    1. Password field being cut off
    In addition to setting the size of the field to 60, you can apply an inline style to control the width by setting the HTML Form Element Attributes field to:
    style="max-width: 100%;"This will restrict the size of input field to be a maximum of 100% of it's container, and should no longer be hidden when your window is resized.
    2. Customer Report obscured
    You can add an inline style to your page header to set this region's content to scroll. For example giving it a static id of my_region and adding the following to your page's inline css field:
    #my_region section.uRegion>div.uRegionContent {overflow: auto;} Hope this helps!
    Shakeeb

Maybe you are looking for

  • When I go to a website, it takes me to a different one. No matter how many times I open it, it takes me to random sites.

    If I open a page in a tab it will take me to a completely different site, and no matter how many times I try to close and open a new one, it keeps going to different sites. It also happens when I type the website into the address bar, it still takes

  • Maximize Application without Window Manager

    What I'd like to do is use xwininfo and wmctrl to maximize an application in X without a window manager. Here is what I've worked out: #!/bin/sh # ~/.xinitrc # Executed by startx (run your window manager from here) if [ -d /etc/X11/xinit/xinitrc.d ];

  • PROBLEM SETTING UP --865/pe/G Neo 2 build

    hi everyone ,. I am new around here and hope to find some help with a few probs . I have just finished putting together a MSI MAINBOARD BASED P4 DESKTOP PC .This is my second build only ,The Board  is an 865PE/G Neo-2 series . Specs are ;2 off  512mb

  • Urgent - Advtanges/ disadvantages of Datasource caching

    Hi, The application access to the ConnectionPool or MultiPool is done thru datasources. The Datsources are looked up using JNDI in the application. As this JNDI lookup is costly in terms of resources, how will it affect the application server's perfo

  • To find sqlnet version in 11gR1 and 11gR2?

    Hi, How can I find out the versions of sqlnet of Oracle 11gR1 and 11gR2? When I googled, I got some tips like using following scripts; select * from v$version; But, this is not exactly what I am looking for... I would like to find out what version of