CENTERED (set centered image)

Top  Previous  Next

 

CENTERED

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