cancel
Showing results for 
Search instead for 
Did you mean: 

How to draw line on SAP form

Former Member
0 Kudos

Hi everyone,

Who have a good way to draw lines on SAP form?

I created a Wizard form, and use Rectangle (Height=0) as the two lines between title and bottom button, but I met a problem, when show another form which cover the line, after close this form, some part of lines disappear, I have tried using SAP form refresh, it still can not restore showing line completely, who have good way to workaround the problem or give me another way to draw line.

Thanks in advance!

Kathy

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The only way I found to get a form looking really close to a standard B1 Wizard form is to use bitmaps. I use 3 - one each for the top, bottom and left hand side. The bitmaps include the line drawing and appropriate pictures/background colours. I normally define these in the XML used to create the form as in the following example:-

<item uid="PTOP" type="117" left="0" width="566" top="0" height="80" visible="1" enabled="1" from_pane="0" to_pane="0">
        <AutoManagedAttribute/>
        <specific picture="AZU_SPC_WIZ_TOP2.bmp">
                <databind databound="0" table="" alias=""/>
        </specific>
</item>
<item uid="PBOT" type="117" left="0" width="566" top="336" height="40" visible="1" enabled="1" from_pane="0" to_pane="0">
        <AutoManagedAttribute/>
        <specific picture="AZU_SPC_WIZ_BOT.bmp">
                <databind databound="0" table="" alias=""/>
        </specific>
</item>
<item uid="PLEFT" type="117" left="0" width="100" top="0" height="336" visible="1" enabled="1" from_pane="1" to_pane="1">
        <AutoManagedAttribute/>
        <specific picture="AZU_SPC_WIZ9.bmp">
                <databind databound="0" table="" alias=""/>
        </specific>
</item>

John.

Former Member
0 Kudos

John,

Thank you for your reply.

Yes put picturs can let form close to standard B1 Wizard, but I need draw pictures, I have tried using B1 pictures, i got another problem that left top pictures are not Square shape, there is a small triangle on left top pictures,

so If using pictures, do i need draw or find pictures by myself, but can not use B1 pictures in file of SBO_Resource.dll?

Thanks again!

Kathy

Former Member
0 Kudos

This is one of the few occassions where I didn't use the SBO_Resource.dll. I used an image editor and created them myself. I needed to do this anyway as I wanted a custom image to show up in the left hand side that represented the function of the wizard (each of the sap wizards has its own individual image in there).

I used photoshop for the editing so I could get the image on the opening wizard screen to display a nice transparent layered effect similar to that on the SAP screens.

John.