ICON (call Icon selection dialog) 


Top  Previous  Next

 

ICON( title, extensions )

ICON

Calls the Windows common Open File dialog.

Title

A string constant containing the title to place on the file open dialog.

extensions

A string constant containing the available file extension selections for the List Files of Type drop list.

The ICON type in a #PROMPT statement is similar to the OPENDIALOG #PROMPT type, and indicates the prompt's symbol must contain the name of the file selected by the programmer from the Open File dialog (see also FILEDIALOG). The file must already exist on disk.

 

Examples:

 

#PROMPT('Icon (*.ico):',ICON('Select ChildRoot Level Icon','Icon files (*.ico)|*.ico')),%MCRTChildConditionalExpandedIconF

#PROMPT('&Default Icon:',ICON),%PrimaryDefaultIcon

#PROMPT('Start Icon',ICON('Select an Icon','Icons|*.ICO|GIF|*.GIF|JPEG|*.JPG|BitMap|*.BMP|Pcx|*.PCX|All|*.*')),%StartIcon