Skip to Content
author's profile photo Former Member
Former Member

How to draw line on SAP form

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

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 16, 2006 at 04:21 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.