Sample 26038: Displaying user-defined icons in a SAS/AF Frame entry
To display user-defined icons, they must first be created and compiled in a resource file that is accessed as a dynamic link library (DLL). For more information on creating DLLs, refer to the Microsoft Win32 Software Development Kit. You then invoke SAS with the -USERICON system option specified to point to this DLL resource file. Refer to the
SAS Companion for Microsoft Windows for more information on the USERICON system option.
To display a user-defined icon on a Push Button Control within a SAS/AF Frame entry, edit the frame that contains the push button. Display the Properties window for the frame and select the push button to display its attributes in the right pane of the Properties window. Set the buttonStyle attribute to a value that displays an icon, such as Icon only, Icon with Text to Right, or Icon with Text Under. You may also want to set the iconStyle attribute for the push button to Large Icons to make the icon easier to see.
To indicate which icon to display, click the ellipses for the value of the icon attribute for the push button. This takes you to the Select Icon window. There are categories of icons at the top of the window. Click on the down arrow and then select the User Icons category. This should list the user-defined icons from your resource file. Make a selection to display this icon in your push button.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
The sample discusses how to access user-defined icons within a SAS/AF Frame application.
Date Modified: | 2006-03-15 03:02:56 |
Date Created: | 2006-02-25 18:49:54 |
Operating System and Release Information
SAS System | SAS/AF | Microsoft Windows 2000 Server | 8.2 TS2M0 | |
Microsoft Windows Server 2003 Standard Edition | 8.2 TS2M0 | |
Microsoft Windows NT Workstation | 8.2 TS2M0 | |
Microsoft Windows 2000 Professional | 8.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 8.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 8.2 TS2M0 | |
Microsoft Windows 95/98 | 8.2 TS2M0 | |
Microsoft Windows 2000 Advanced Server | 8.2 TS2M0 | |
Microsoft Windows 2000 Datacenter Server | 8.2 TS2M0 | |
Windows Millennium Edition (Me) | 8.2 TS2M0 | |
OS/2 | 8.2 TS2M0 | |
Microsoft Windows XP Professional | 8.2 TS2M0 | |