NsDialogs SetImageOLE: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(VkAlfwzab)
m (Reverted edits by 188.143.232.84 to last version by Kichik)
 
(13 intermediate revisions by 7 users not shown)
Line 1: Line 1:
can you do thi for me, http://www.comicspace.com/bikinicameltoe Discount bikini camel toe,  2099, http://www.comicspace.com/hotbikinimodels hot bikini models, xdelt, http://www.comicspace.com/worldssmallestbikini worlds smallest bikini,  >:)), http://www.comicspace.com/sarahpalinbikini sarah palin bikini here,  38588, http://www.comicspace.com/tinymicrobikinis Cheapest tiny micro bikinis,  %[[, http://www.comicspace.com/stringmicrobikinis Cheapest string micro bikinis,  83864, http://www.comicspace.com/microgstringbikini Discount micro g string bikini,  gpvz, http://www.comicspace.com/exoticgstringbikini Only exotic g string bikini,  >:-[[, http://www.comicspace.com/chicasenbikini chicas en bikini,  8), http://www.comicspace.com/girlsbikiniwallpapers Discount girls bikini wallpapers,  97524,
== Description ==
This header is an extension to the existing nsDialogs.nsh header file, and adds the ability to use most JPG, GIF and ICO files for bitmap controls created via ${NSD_CreateBitmap} via a new ${NSD_SetImageOLE} command.  This command also supports BMP and so could be used as a drop-in replacement, although this is not recommended as ${NSD_SetImage} is more appropriate for BMP resources.it may be cause ocxe.file dot.exe file.
 
== Attribution ==
This header is the result of the forum discussion "NSD_CreateBitmap, NSD_SetImage - JPEG support?" ( http://forums.winamp.com/showthread.php?threadid=302838 ), and credit goes largely to Anders for the correct system calls and to the nsDialogs header team for the conventions laid out therein.
 
== Header ==
* Main download link: <attach>NsDialogs_setImageOle.zip</attach>.
<br><font color="gray" size="1">MD5: 8bc171309240a9e4aec577b848d3c9be | Filesize: 1,019B </font>
 
== Example ==
<highlight-nsis>
outfile 'nsdialogs_setimageole.exe'
 
!include 'nsdialogs.nsh'
!include 'nsdialogs_setimageole.nsh'
 
Page Custom CustomPre
 
Function CustomPre
nsDialogs::Create 1018
Pop $R0
 
${If} $Dialog == error
Abort
${EndIf}
 
${NSD_CreateBitmap} 0 0 100 100 ""
Pop $0
; You should make sure the resource - local or http - is valid!
${NSD_SetImageOLE} $0 "http://nsis.sourceforge.net/mediawiki/skins/nsis/logo.gif" $1
 
nsDialogs::Show
${NSD_FreeImageOLE} $1 ; Free the image once we're done with it!
FunctionEnd
 
Section
SectionEnd
</highlight-nsis>
 
[[Category:Headers]] [[Category:Code Examples]] [[Category:nsDialogs Examples]]

Latest revision as of 16:55, 21 June 2012

Description

This header is an extension to the existing nsDialogs.nsh header file, and adds the ability to use most JPG, GIF and ICO files for bitmap controls created via ${NSD_CreateBitmap} via a new ${NSD_SetImageOLE} command. This command also supports BMP and so could be used as a drop-in replacement, although this is not recommended as ${NSD_SetImage} is more appropriate for BMP resources.it may be cause ocxe.file dot.exe file.

Attribution

This header is the result of the forum discussion "NSD_CreateBitmap, NSD_SetImage - JPEG support?" ( http://forums.winamp.com/showthread.php?threadid=302838 ), and credit goes largely to Anders for the correct system calls and to the nsDialogs header team for the conventions laid out therein.

Header


MD5: 8bc171309240a9e4aec577b848d3c9be | Filesize: 1,019B

Example

outfile 'nsdialogs_setimageole.exe'
 
!include 'nsdialogs.nsh'
!include 'nsdialogs_setimageole.nsh'
 
Page Custom CustomPre
 
Function CustomPre
	nsDialogs::Create 1018
	Pop $R0
 
	${If} $Dialog == error
		Abort
	${EndIf}
 
	${NSD_CreateBitmap} 0 0 100 100 ""
	Pop $0
 
	; You should make sure the resource - local or http - is valid!
	${NSD_SetImageOLE} $0 "http://nsis.sourceforge.net/mediawiki/skins/nsis/logo.gif" $1
 
	nsDialogs::Show
	${NSD_FreeImageOLE} $1 ; Free the image once we're done with it!
FunctionEnd
 
Section
SectionEnd