Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - <b>icons commands</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Icons Commands
--------------------------------------------------------------------------------

 Creating an Icon            @ <nRow>, <nCol> ICON [ <oIcon> ] ;
 control from source            [ NAME | RESOURCE | RESNAME <cResName> ] ;
 code                           [ FILE | FILENAME | DISK <cIcoFile> ] ;
                                [ BORDER ] ;
                                [ COLOR | COLORS <nClrFore>;
                                [,<nClrBack>] ] ;
                                [ ON CLICK <uClick> ] ;
                                [ OF | WINDOW | DIALOG <oWnd> ];
                                [ UPDATE ] ;
                                [ WHEN <WhenFunc> ] ;


 Redefing an Icon        REDEFINE ICON <oIcon> [ ID <nId> ] ;
 from Resources                 [ NAME | RESOURCE | RESNAME <cResName> ] ;
                                [ FILE | FILENAME | DISK <cIcoFile> ] ;
                                [ ON CLICK <uClick> ] ;
                                [ OF | WINDOW | DIALOG <oWnd> ] ;
                                [ UPDATE ] ;
                                [ WHEN <WhenFunc> ] ;


 <nRow>, <nCol>  Are the coordinates on the screen. We simulate text coordinates.

 <oIcon>         Is a reference to the Icon Object.

 <cResName>     Is the name of the icon resource if we are loading the icon
                    from a RC, RES or a DLL.

 <cIcoFile>     Is the name of a ICO file if we are loading the ICO directly
                    from disk.

 <uClick>       Is the action to be performed when the mouse clicks over the
                    icon.

 <oWnd>          Is the container Object of the Icon.

 <WhenFunc>      An expression to evaluate in order to determine if the
                     control is available or not.

 <nClrFore>      Foreground color as a RGB number, or as a xBase string

 <nClrBack>      Background color as a RGB number

 Defining an Icon            DEFINE ICON <oIcon> ;
 without showing it             [ NAME | RESOURCE | RESNAME <cResName> ] ;
                                [ FILE | FILENAME | DISK <cIcoFile> ]
                                [ WHEN <WhenFunc> ]

 <oIcon>         Is a reference to the Icon Object.

 <cResName>      Is the name of the icon resource if we are loading the icon
                 from a RC, RES or a DLL.

 <cIcoFile>      Is the name of a ICO file if we are loading the ICO directly
                 from disk.

CLAUSES

UPDATE           Indicates if this control has to be updated when doing
                 a <oDlg>:Update() of its container.

BORDER           Create a border arround the control.


See Also: Class TIcon

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson