Loads the icon you want from a specified file for display in the title bar of an ABL window, in the task bar, and when selecting a program using ALT+TAB. This method can accommodate icons formatted as small size (16x16) icons, regular size (32x32) icons, or both.
Return type:
Applies to:
LOAD-ICON ( icon-filename , n )A character-string expression that specifies a full or relative pathname for a file that contains the icon that you want to load for display in the title bar of a window and in the task bar. The pathname can contain Unicode characters. See OpenEdge Development: Internationalizing Applications for more information about Unicode.In Windows, you can specify a URL pathname for icon-filename. If you specify a fully-qualified URL, LOAD-ICON( ) loads the icon file directly without searching directories or URLs in PROPATH. Valid URL protocols include HTTP and HTTPS.If you specify URL pathnames on the PROPATH and your application repeatedly uses the LOAD-ICON( ) method with a URL pathname, you can improve performance by using the SEARCH function once to determine the full URL pathname to the directory containing the icon files. Use this value to create a fully-qualified URL pathname for icon-filename and avoid repeated searches of the PROPATH.If you specify an empty string ("") for icon-filename, this method removes the most recently loaded icon.For example, the following invocation of LOAD-ICON( ) finds the second icon in the icon file file.ico and loads it:
LOAD-ICON("file.ico", 2).
LOAD-ICON("").You typically use this method to load a large icon, primarily for use in the ALT+TAB window for switching applications. ABL has no means of specifying a default icon for this purpose, and Windows provides a generic icon if you do not specify one..NET forms allow you to specify a default icon that works for this purpose using the form Icon property, which in OpenEdge is provided by the Progress.Windows.Form class. You can then change this property as required for different uses.
See also:
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |