cancel
Showing results for 
Search instead for 
Did you mean: 

Form

Former Member
0 Kudos

Hi Friends,

I have created a form in SAP B1 screen painter.

In that form i have taken textboxes, labels, radio buttons, matirx, etc...

My computer screen resolution is 1024 * 768.

I tried to work the same form in 800 * 600. then i saw that some fields are overlapping with each other and some fiels cannot be seen.

If i tried to work same form on the resolution 1152 * 864 then there is lots of space left between two fields and the form looks bad. some fields are still overlapping.

Please Help.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You need to set the location for your items on the following event.

1.FORM_LOAD

2.Form_Resize event

as


'Intialise form
OCT_Form = OCT_Application.Forms.GetForm(806, 1)
OCT_Item = OCT_Form.Items.Add("lblSecCd", SAPbouiCOM.BoFormItemTypes.it_STATIC)
OCT_Item.Left = OCT_Form.Items.Item("32").Left
OCT_Item.Width = OCT_Form.Items.Item("32").Width
OCT_Item.Top = OCT_Form.Items.Item("46").Top + OCT_Form.Items.Item("46").Height + 10
OCT_Item.Height = OCT_Form.Items.Item("32").Height
OCT_Static = OCT_Item.Specific
OCT_Static.Caption = "For Testing"

lblSecCd is user defined lable added on the form.

Hope this will help you.

regards,

Mahendra

Former Member
0 Kudos

Hi,

Load your form again in Screen Painter. Look for the property called 'linkto' for all the label (static text) and give the unique id of the text field or other editable fields which links to.

for example

Username - static txt (label) - unique id -1

username - Edit text - unique id -2

Select username- static text to properties window assign 2 in linkto property.

I hope this will do

Regards,

Tamil

Former Member
0 Kudos

hi !

But still the problem persist?

Former Member
0 Kudos

Hi,

Try this.

When you bind your controls to the Form,use

oForm.Freeze(true);

//Control binding

oForm.Freeze(false);