cancel
Showing results for 
Search instead for 
Did you mean: 

Buttons in single row problem

Former Member
0 Kudos

Hi all,

I am creating buttons likse BACK and NEXT button.

BACK Button has to be extream left and NEXT has to extreame right.

I tried with row layout, not able to do this.

I tried with matrix lasy out by inserting Table Container by arranging pixels, but when I am minimizing the screen , this will remain static and looks very bad.

Please suggest me one solution for this.

Regards,

sarath.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I used Grid layout with Columns 2.

Back to begin of line

Next to End of line.

thanks.

Former Member
0 Kudos

hi Sarath ,

check out the hlign properties of UI :

1 Auto : Automatic alignment of the text content. The alignment is determined by the data type of the value to be displayed.

2 Centre : Centered alignment

3 forcedleft : The text content is always left-justified, regardless of whether the value is ltr or rtl for the textDirection property.

4 endofLine:The text is always displayed at the end of the line. Therefore, if property textDirection is set to ltr, the text content is right-justified. The text content for the value rtl is left-justified.

5 forcedRight :The text content is always right-justified, regardless of whether the value is ltr or rtl for the textDirection property.

6 beginOfLIne :The text is always displayed at the beginning of the line. Therefore, the text content for value ltr of property textDirection is left-justified. The text content for the value rtl is right-justified.

make ur layout(transparent container or group) as Matrix

do check out the link:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/7d/c8f641091b5f24e10000000a1550b0/content.htm

rgds,

amit

Former Member
0 Kudos

Hi Sarath,

Set your Transperant container's layout as " Matrix layout". Set the BACK button's " hAlign" property to "beginOfLine" and NEXT button's HALIGN property to "EndOf line".

Thanks!

Former Member
0 Kudos

HI,

I tried with halign but its not coming , Matrix layout, and I back as begin of line and Next as end of line.

Former Member
0 Kudos

Hi Sarath,

For me it is working fine...!

Root UI Element Container - Layout - Matrix layout

-Back Button -- HALIGN - Beginofline

-Next Button -- HALIGN - Endofline.

Try this again.

Thanks!

Former Member
0 Kudos

Hi,

I tried again with this, same result.

Root container--Matrix layout

BACK-Halign--Begin of line

Next- halign-End of line.

Is it work for buttons? or only for text

Regards,

sarath

Edited by: sarath kumar on Oct 7, 2009 12:20 PM

Former Member
0 Kudos

with reference to the online SAP help , it works for text views only , not buttons

let me check n revert back

Former Member
0 Kudos

Hi,

For MATRIX Layout

BACK as MATIX HEAD DATA

NEXT as MATRIX DATA Use VGUTTER as XLARGE Halign as End of Line Valign As TOP

Regards,

Lekha.

Former Member
0 Kudos

for the BUTTON right alignment

1 there is a HORIZONTAL GUTTER UI element which can be used as a space option by giving the WIDTH, Halign as End of Line and rultype as None.

2 u can insert a text element as well , and in the Text property of the element press ALT + 0160.

in either case , u bind the UI element VISIBLE property to attribute of type WDUI_visibility and set the attribute to '01' to make the element invisble in the layout (if u wish)

Edited by: amit saini on Oct 7, 2009 12:33 PM

Former Member
0 Kudos

hi Sarath,

You try with buttons using Matrix layout.

It works for me using halign property.

If your button is in container, please do the same for container also.

halign property for container also works.

Former Member
0 Kudos

hi,

->Check out the hAlign property.

-> You have option of end of line. begin of line.

Use Matrix Layout.

I hope it will do.

Edited by: Saurav Mago on Oct 7, 2009 3:02 PM