$EXEICON

From QB64 Wiki
Revision as of 16:35, 4 January 2017 by imported>Clippy
Jump to navigation Jump to search

$EXEICON pre-compiler metacommand embeds a designated icon file into the compiled EXE file to be viewed in Windows Explorer.


Syntax

$EXEICON: 'iconfile.ico'


Parameters

  • The filename must use an icon extension .ICO inside of apostrophies


Description

  • _ICON can designate an alternate window image or use the embedded image without any image handle.


Example: Embeds a designated icon file into the compiled EXE which can be viewed in Windows Explorer folders.

$EXEICON:'mush.ico' _ICON _TITLE "Mushroom Kingdom" SCREEN _NEWIMAGE(320, 200, 32) WHILE NOT _SCREENEXISTS: WEND _DELAY .5 _FONT 16 COLOR _RGB32(255, 255, 255) Center 6, "- Nintendo -" _FONT 8 Center 13, "Presents" PLAY "t160l16b>e" _DELAY 1 i = 255 DO _LIMIT 20 i = i - 10 IF i < 0 THEN EXIT DO COLOR _RGB32(i, i, i) _FONT 16 Center 6, "- Nintendo -" _FONT 8 Center 13, "Presents" _DISPLAY LOOP COLOR _RGB32(255, 255, 255) END SUB Center (row, t$) IF LEN(t$) THEN _PRINTSTRING (_WIDTH \ 2 - (LEN(t$) * _FONTWIDTH) \ 2, (row * _FONTHEIGHT) - _FONTHEIGHT), t$ END IF END SUB

Code and command by Fellippe Heitor
mush.ico download


See also




Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page