4D v13

Progress SET ICON

Home

 
4D v13
Progress SET ICON

Progress SET ICON 


 

Progress SET ICON ( id ; icon {; foreground} ) 
Parameter Type   Description
id  Longint in ID of progress bar
icon  Picture in Picture to display as icon
foreground  Boolean in Show progress bar in foreground

The Progress SET ICON method modifies the icon displayed in the progress bar. By default, the following icons are displayed:

In id, you pass the unique ID of the progress bar, returned by the Progress New method.

In icon, you pass the picture (variable or field) to use as the icon in the progress bar window. The maximum size of this icon must be:

  • under Mac OS, 40 x 40 pixels
  • under Windows, 40 x 80 pixels

If you pass an icon with a size that is smaller than these limits, it is centered but not resized. However, when its size exceeds these limits, it is both centered and resized.

Pass True in foreground when you want to force the progress window to the foreground of the application.

Examples of custom icons:

 
PROPERTIES 

Product: 4D
Theme: Progress bars

 
INDEX

Alphabetical list of commands

 
HISTORY 

 
SEE ALSO 

Progress Get Icon