User Tools

Site Tools


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

NewC7.jpg

CENTERED

blk2blue.jpg

The CENTERED attribute (PROP:CENTERED) indicates an image displayed at its default size and centered in its display area:

·On an IMAGE control, the image is centered in the area specified by the AT attribute.

·On a TOOLBAR with the WALLPAPER attribute, the toolbar's background image is centered in the toolbar.

·On an APPLICATION or WINDOW with the WALLPAPER attribute, the window's background image is centered in the client area of the window.

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'),CENTERED

          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('MyWall.GIF'),CENTERED

      END

WinOne WINDOW,AT(,,380,200),MDI

       IMAGE('MyWall.GIF'),AT(0,0,380,200),CENTERED

      END

See Also:

WALLPAPER

TILED

centered_set_centered_image_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)