| **Navigation:**  [[templates.htm|Templates]] > [[tlrcontents.htm|Template Language Reference]] > #PROMPT Entry Types Alpha Listing >====== ICON (call Icon selection dialog) {{c6h0068.jpg|C6H0068.jpg}} ====== | [[from list of symbol values .htm|{{btn_prev_n.gif|Previous page}}]][[tlrcontents.htm|{{btn_home_n.gif|Return to chapter overview}}]][[key list of keys .htm|{{btn_next_n.gif|Next page}}]] | | || **ICON(** //title, extensions// **)** {{blk2blue.jpg|blk2blue.jpg}} | **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 return chosen file .htm|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** |