on 07-20-2005 7:09 PM
I have some user-defined fields at the header level of a system form that are moving (inappropriately) when the form is resized. I want them to stay where I placed them. What can be done?
I am sorry for being unclear. I am using the UI API to move both system-defined and user-defined fields on the form, as such:
oForm.Items.Item("91").Left = 50
oForm.Items.Item("MyField").Top = 100
However, while some of the fields remain fixed where I place them, others move with the form resize. What can be done to keep them fixed in the location where I have placed them?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would find a item that you want to relate to.
Set the left (or top ...) property with relation to that, in the Event where you create the item and also on the et_FORM_RESIZE event.
dim oRelateItem as SAPbouiCOM.Item
dim oMyItem as SAPbouiCOM.Item
set oRelateItem = oForm.Items("SystemItem") 'that you think is a good benchmark for you
oMyItem.Left = oRelateItem.Left + oReletItem.Width + 25
oMyItem.Top= oRelateItem.Top
don't see why this should fail.
Indika.
Message was edited by: Indika Dekumpitiya
I don't think you can move userdefined fields around the form(except the order of them ).
But you may be able to do that using code (SDK), that is if you want to go create an add-on just for that.
Indika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
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.