This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19.8
folder.getIcon( )

folder.getIcon( ) 


 

folder.getIcon ( {size} ) -> Result 
Parameter Type   Description
size  Longint in Side length for the returned picture (pixels)
Result  Picture in Folder icon

The folder.getIcon( ) method returns the icon of the folder. 

The optional size parameter specifies the dimensions in pixels of the returned icon. This value actually represents the length of the side of the square containing the icon. Icons are usually defined in 32x32 pixels (“large icons”) or 16x16 pixels (“small icons”). If you pass 0 or omit this parameter, the "large icon" version is returned.

If the folder does not exist on disk, a default blank icon is returned.  

Returned value

Folder icon picture

Example  

 C_PICTURE($docIcon)
 $docIcon:=Folder(fk documents folder).getIcon(256)



See also 

file.getIcon( )
GET DOCUMENT ICON

 
PROPERTIES 

Product: 4D
Theme: File and Folder

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R5

 
ARTICLE USAGE

4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)