User Tools

Site Tools


wallpaper_set_background_image_.htm
Navigation:  Language Reference > 9 -  Window and Report Attributes > Window and Report Attributes >====== WALLPAPER (set background image) ====== Previous pageReturn to chapter overviewNext page

NewC7.jpg

WALLPAPER(image)

blk2blue.jpg

WALLPAPER Specifies a background image to display in the toolbar or window's client area.
image A string constant specifying the name of the file to display.

The WALLPAPER attribute (PROP:WALLPAPER) specifies displaying the image as a background for the toolbar or window's client area. The image is stretched to fill the entire toolbar or window's client area unless either the TILED or CENTERED attributes are present.

Example:

MDIChild WINDOW('Child One'),MDI,SYSTEM,MAX

         MENUBAR

          MENU('Edit'),USE(?EditMenu)

           ITEM('Undo'),USE(?UndoText),KEY(CtrlZ),STD(STD:Undo)

           ITEM('Cu&t'),USE(?CutText),KEY(CtrlX),STD(STD:Cut)

           ITEM('Copy'),USE(?CopyText),KEY(CtrlC),STD(STD:Copy)

           ITEM('Paste'),USE(?PasteText),KEY(CtrlV),STD(STD:Paste)

          END

         END

         TOOLBAR,USE(?Toolbar),WALLPAPER('MyWall.GIF')

          BUTTON('Cut'),USE(?CutButton),ICON(ICON:Cut),STD(STD:Cut),FLAT

          BUTTON('Copy'),USE(?CopyButton),ICON(ICON:Copy),STD(STD:Copy),FLAT

          BUTTON('Paste'),USE(?PasteButton),ICON(ICON:Paste),STD(STD:Paste),FLAT

         END

        END

WinOne WINDOW,AT(,,380,200),MDI,WALLPAPER('MyWin.GIF')

      END

See Also:

CENTERED

TILED

wallpaper_set_background_image_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1