cancel
Showing results for 
Search instead for 
Did you mean: 

Setting positon of the forms

Former Member
0 Kudos

I have created a form which perfoms add,edit and delete operations.For this I toggle from one form to other.While toggling ,the postion of the form is not fixed.I want to set the position of the form in such a way that user should not realize that he has moved from one form to another.

Regards,

Dilip Kumbhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hai Dilip,

Weather it helps r not i dont knw try it,

When u create the form in screen painter, where u placed the form and create some fields and save it. When u run the project and open the same form u may come to knw that it is in same place where u placed and save.

Or else u can set in xml the left,top,height for that form...

Regards,

Anitha

Former Member
0 Kudos

Anitha ,

I haven't created forms through screen painter.I have created it at runtime through coding as follows,

Dim creationPackage

creationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)

creationPackage.UniqueID = "UidFrmMatrix"

creationPackage.FormType = "TypeFrmMatrix"

'// Add our form to the SBO application

oForm = SBO_Application.Forms.AddEx(creationPackage)

Regards,

Dilip Kumbhar

Former Member
0 Kudos

HI Dilip!

just get the parameters x / y of the form you opened before, and set them for the new form before you set it to visible

hopeithelps

Matthias

Answers (0)