cancel
Showing results for 
Search instead for 
Did you mean: 

XML form items.

Former Member
0 Kudos

Hi all,

I have an addon that displays a simple xml based form that contains some edittext, combobox and button items etc.

The form appears fine on Win2000 but when viewed on a WinXP machine the buttons are appearing too far down the form.

I have read SAP note 655552 and can correct the problem for XP by increasing the form height & client_height but this throws out the appearance on Win2000.

Has anyone come across this issue before or have a solution?

Regards,

Andrew.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In your XML file, only specify the "client_height" and "client_width" attributes. Do not specify the "height" or "width" attributes. This will keep the buttons positioned correctly when displaying in either XP or Windows Classic look and feel.

The easiest way to get the correct client height/width is to simply launch your current screen on whichever platform displays correctly and msgbox the ClientHeight/Width values. Then edit the XML removing height and width and entering clientheight/width instead with the values that were reported. (Also toggling the desktop theme on XP between "Windows XP" and "Windows Classic" will save having to run it on two different machines to test it).

John.

Former Member
0 Kudos

Thanks John, that solves the problem perfectly.

Regards,

Andrew.

Answers (0)