cancel
Showing results for 
Search instead for 
Did you mean: 

Screen Painter Form objects change size

Former Member
0 Kudos

I have had a problem where objects on a screen painter form change size if I change the resolution on the monitor.

When I change the resolution back there doesn't seem to be anyway to get them to revert to the original size.

I have tried looking for values stored in the xml and haven't found anything. Also I have experimented with Form Settings to no avail.

Has anyone else experienced this?

Thanks for any suggestions.

Accepted Solutions (1)

Accepted Solutions (1)

Nussi
Active Contributor
0 Kudos

Hi Mel,

i had the same problem at a customer.

he was changing the resolution often when a user form was opened and complained that the buttons are not visible.

the solution: i told him that after changing the resolution reopen the form

ok, thats a lame solution but i had nothing to change in the addon ))

regards

David

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks everyone for your help! I guess this is just one of those small glitches we all have to remember and work around.

Mel

Former Member
0 Kudos

One thing i noticed is that SBO creates the screenpainter (or any form from xml/srf) by using the form.height, not the form.clientheight. So if a form was designed with a total height of 120 and a border height of let's say 20, then height/clientheight would be set in the xml at (100 + 20, 100). Now restoring the form on a machine were border height is 30 (due to windows settings, or resolution differences), then the formheight will still be 120, but the client height will be 120 - 30 = 90, leaving less space for the controls, and making the buttons at the botton disappear. I fixhacked this by resetting clientheight after creating the form. I reported the issue to SAP, but they did not really seem to care.. (quote: "Always design your forms to 800x600")

Former Member
0 Kudos

Rob,

Thanks for your comment. I am glad to know I am not the only one experiencing this.

I am on 2007a PL15.

I went ahead and edited my forms in screen painter again. However, for some reason the Title Height and Row height for all the grids keeps decreasing.

Does anyone know how to prevent the forms from being changed by B1 to different settings than are set in screen painter?

Thanks,

Mel

Former Member
0 Kudos

Mel,

when you create the form, use BorderStyle as fbs_Fixed - than user cannot change the resoluton of form.

Former Member
0 Kudos

David,

Thanks very much for your response.

The problem I am having is not fixed by closing and re-opening the form. Somehow the actual form itself is affected in screen painter. For example, I had a matrix that was almost as wide as the form and was working. After changing the resolution the matrix spilled over the right edge of the form. When I opened it in screen painter it was the same as at runtime. Something had changed so that the matrix was now too wide. However, the value of the width of the form had not changed. It seemed like the font, or grid size, or form setting, or something had changed.

I know this sounds strange but it has affected all of my forms and is going to be tedious to go back and fix them all. The frustrating thing is that nothing I have tried will put the forms back the way they were. Some of them are large with many tabs.

I couldn't find anything in the .srf file itself or in B1 form settings that seemed like it would cause this.

Former Member
0 Kudos

I had a similar problem when using 2007A PL7( or 8?) .. Went away when i moved to PL15 ..