Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

How to Resize Screens

$
0
0

Hi all,

I have created screens and given a resize function, but then it is perfectly maximizes but when i restore some the text boxes merges, how to solve it??

 

Below is my code,

 

Public Function ItemHandler_FormResize(ByRef oCompany As SAPbobsCOM.Company, _

          ByRef oApplication As SAPbouiCOM.Application, ByRef pVal As SAPbouiCOM.ItemEvent) As Boolean

 

 

        ItemHandler_FormResize = False

 

         oForm = oMain.oApplication.Forms.GetForm(pVal.FormTypeEx, pVal.FormTypeCount)

 

        Try

            oForm.Freeze(True)

              If pVal.BeforeAction = False Then

                oForm.Items.Item("rect").Width = oForm.ClientWidth - 50

                oForm.Items.Item("rect").Height = 325

            End If

            ItemHandler_FormResize = True

        Catch ex As Exception

            oApplication.MessageBox("ItemHandler_FormResize(): " & ex.Message.ToString)

        Finally

            oForm.Freeze(False)

        End Try

    End Function

 

Help me solving out this issue.

 

Regards,

Jananisuba S


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>