on 09-04-2008 8:59 AM
Hi,
why does the size of a rectangle is not depend on the fom size? Can i set the size of my rectangle dynamically, depending on the user form size?
best regards
Markus
Markus,
I use the following in the FormResize event:
Private Function ItemHandler_FormResize(ByRef oCompany As SAPbobsCOM.Company, _
ByRef oApplication As SAPbouiCOM.Application, ByRef pVal As SAPbouiCOM.ItemEvent) As Boolean
ItemHandler_FormResize = False
oForm = oApplication.Forms.GetForm(pVal.FormTypeEx, pVal.FormTypeCount)
Try
oForm.Freeze(True)
If pVal.BeforeAction = False Then
oForm.Items.Item("FldRtg").Width = oForm.Width - 20
End If
ItemHandler_FormResize = True
Catch ex As Exception
oApplication.MessageBox("ItemHandler_FormResize(): " & ex.Message.ToString)
Finally
oForm.Freeze(False)
End Try
End Function
Regards,
Vítor Vieira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
U can link it to some item on the form.
Or in the form Resize event u can set its coordinates accordingly.
Vasu Natari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.