Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Re:2 matrix

Hi all

I have two matrix in my form.When i maximize the form the 2 matrix gets overlapping.How to solve this issue.

Regards

Mohana

replied

hi,

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_RESIZE And pVal.BeforeAction = False Then

Try

If BoolResize = False Then

oForm.Freeze(True)

oForm.Items.Item("MatItem").Height = 160

oForm.Items.Item("MatParam").Top = oForm.Items.Item("MatItem").Top + oForm.Items.Item("MatItem").Height + 20

oForm.Items.Item("MatParam").Height = 160

oForm.Freeze(False)

BoolResize =True

ElseIf BoolResize = True Then

oForm.Freeze(True)

oForm.Items.Item("MatItem").Height = 155

oForm.Items.Item("MatItem").Width = 589

oItmCodeCol.Width = 88

oItmNameCol.Width = 129

oQtyCol.Width = 75

oUOMCol.Width = 70

oSamNoCol.Width = 101

oStationCol.Width = 58

oStationDescCol.Width = 80

oNoOfSamCol.Width = 80

oSampleNoCol.Width = 40

oForm.Items.Item("MatParam").Top = 276

oForm.Items.Item("MatParam").Height = 148

oForm.Items.Item("MatParam").Width = 589

BoolResize = False

oForm.Freeze(False)

oForm.Update()

End If

Catch ex As Exception

SBO_Application.SetStatusBarMessage(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, True)

BubbleEvent = False

End Try

End If

Note:

at form close event use BoolResize = False

regards,

varma

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question