<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mundodelphi &#187; truco</title>
	<atom:link href="http://www.webserveis.com/mundodelphi/tag/truco/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webserveis.com/mundodelphi</link>
	<description>programacion en delphi</description>
	<lastBuildDate>Mon, 10 May 2010 12:44:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Obtener path de los directorios de windows</title>
		<link>http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/</link>
		<comments>http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 15:50:06 +0000</pubDate>
		<dc:creator>neuronic</dc:creator>
				<category><![CDATA[Trucos Delphi]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[truco]]></category>

		<guid isPermaLink="false">http://www.webserveis.com/mundodelphi/?p=238</guid>
		<description><![CDATA[Con ese truco podemos obtener los directorios de windows usando delphi
La función es FM_GetSpecialDirectory(directorio:string):string;
se debe cargar en uses la librería ShlObj
Parametros del atributo directorio
AppData
CdBurn
AdminTools
Cookies
StartMenu
Desktop
Favorites
Fonts
History
InternetCache
LocalAppData
MyMusic
MyImages
Metwork
MyDocuments
Printers
User
Programs
Shared
Sendto
Starmenu
Starmenuprog
System
Windows
Temp
Código

Uses ShlObj;
Function FM_GetSpecialDirectory(const directorio : string) : string;
var RecPath : PAnsiChar;
 CSIDL:integer;
begin
 if ansilowercase(directorio) = 'appdata' then  CSIDL := $001a;
 if ansilowercase(directorio) = 'cdburn' then  CSIDL := $003b;
 if ansilowercase(directorio) = 'admintools' [...]]]></description>
			<content:encoded><![CDATA[<p>Con ese truco podemos obtener los directorios de windows usando delphi</p>
<p>La función es <span style="color: #3366ff;"><strong>FM_GetSpecialDirectory(directorio:string):string;</strong></span><br />
se debe cargar en uses la librería <span style="color: #3366ff;"><em>ShlObj</em></span></p>
<p><strong>Parametros del atributo directorio</strong></p>
<p><span style="color: #3366ff;">AppData<br />
CdBurn<br />
AdminTools<br />
Cookies<br />
StartMenu<br />
Desktop<br />
Favorites<br />
Fonts<br />
History<br />
InternetCache<br />
LocalAppData<br />
MyMusic<br />
MyImages<br />
Metwork<br />
MyDocuments<br />
Printers<br />
User<br />
Programs<br />
Shared<br />
Sendto<br />
Starmenu<br />
Starmenuprog<br />
System<br />
Windows<br />
Temp</span></p>
<p><strong>Código</strong></p>
<pre class="brush: delphi;">
Uses ShlObj;
Function FM_GetSpecialDirectory(const directorio : string) : string;
var RecPath : PAnsiChar;
 CSIDL:integer;
begin
 if ansilowercase(directorio) = 'appdata' then  CSIDL := $001a;
 if ansilowercase(directorio) = 'cdburn' then  CSIDL := $003b;
 if ansilowercase(directorio) = 'admintools' then  CSIDL := $002f;
 if ansilowercase(directorio) = 'cookies' then  CSIDL := $0021;
 if ansilowercase(directorio) = 'startmenu' then  CSIDL := $0000;
 if ansilowercase(directorio) = 'desktop' then  CSIDL := $0010;
 if ansilowercase(directorio) = 'favorites' then  CSIDL := $0006;
 if ansilowercase(directorio) = 'fonts' then  CSIDL := $0014;
 if ansilowercase(directorio) = 'history' then  CSIDL := $0022;
 if ansilowercase(directorio) = 'internetcache' then  CSIDL := $0020;
 if ansilowercase(directorio) = 'localappdata' then  CSIDL := $001c;
 if ansilowercase(directorio) = 'mymusic' then  CSIDL := $000d;
 if ansilowercase(directorio) = 'myimages' then  CSIDL := $0027;
 if ansilowercase(directorio) = 'network' then  CSIDL := $0013;
 if ansilowercase(directorio) = 'mydocuments' then  CSIDL := $0005;
 if ansilowercase(directorio) = 'printers' then  CSIDL := $001b;
 if ansilowercase(directorio) = 'user' then  CSIDL := $0028;
 if ansilowercase(directorio) = 'programs' then  CSIDL := $0026;
 if ansilowercase(directorio) = 'shared' then  CSIDL := $002b;
 if ansilowercase(directorio) = 'recent' then  CSIDL := $0008;
 if ansilowercase(directorio) = 'sendto' then  CSIDL := $0009;
 if ansilowercase(directorio) = 'starmenu' then  CSIDL := $000b;
 if ansilowercase(directorio) = 'starmenuprog' then  CSIDL := $0007;
 if ansilowercase(directorio) = 'system' then  CSIDL := $0025;
 if ansilowercase(directorio) = 'windows' then  CSIDL := $0024;
 if ansilowercase(directorio) = 'temp' then  CSIDL := $0024;

 RecPath := StrAlloc(MAX_PATH);
 try
 FillChar(RecPath^,MAX_PATH,0);
 if SHGetSpecialFolderPath(0,RecPath,CSIDL,false) then begin
 result := RecPath;
 if ansilowercase(directori) = 'temp' then result := RecPath + '\temp';
 end else result := '';
 finally
 StrDispose(RecPath);
 end;
end;
</pre>
<p><strong>su uso es muy fácil</strong><br />
FM_GetSpecialDirectory(&#8216;windows&#8217;);</p>
<p>con eso obtenemos el directorio donde windows está instalado C:\windows en mi caso</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/&amp;title=Obtener+path+de+los+directorios+de+windows+" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/&amp;t=Obtener+path+de+los+directorios+de+windows+" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Obtener+path+de+los+directorios+de+windows++-+http://b2l.me/tsdcr+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-meneame">
			<a href="http://meneame.net/submit.php?url=http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/&amp;n=Obtener+path+de+los+directorios+de+windows+&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Obtener%20path%20de%20los%20directorios%20de%20windows%20%22&amp;body=I+thought+this+article+might+interest+you.%0A%0A%22Con%20ese%20truco%20podemos%20obtener%20los%20directorios%20de%20windows%20usando%20delphi%0D%0A%0D%0ALa%20funci%C3%B3n%20es%20FM_GetSpecialDirectory%28directorio%3Astring%29%3Astring%3B%0D%0Ase%20debe%20cargar%20en%20uses%20la%20librer%C3%ADa%20ShlObj%0D%0A%0D%0AParametros%20del%20atributo%20directorio%0D%0A%0D%0AAppData%0D%0ACdBurn%0D%0AAdminTools%0D%0ACookies%0D%0AStartMenu%0D%0ADesktop%0D%0AFavorites%0D%0AFonts%0D%0A%22%0A%0AYou+can+read+the+full+article+here%3A%20http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/&amp;title=Obtener+path+de+los+directorios+de+windows+" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/&amp;title=Obtener+path+de+los+directorios+de+windows+&amp;srcUrl=http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/&amp;srcTitle=Obtener+path+de+los+directorios+de+windows+&amp;snippet=POST_SUMMARY" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.webserveis.com/mundodelphi/2010/01/30/obtener-path-de-los-directorios-de-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Realizar una pausa, el delay en delphi</title>
		<link>http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/</link>
		<comments>http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 14:34:28 +0000</pubDate>
		<dc:creator>neuronic</dc:creator>
				<category><![CDATA[Trucos Delphi]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[truco]]></category>

		<guid isPermaLink="false">http://www.webserveis.com/mundodelphi/?p=236</guid>
		<description><![CDATA[Hacer que el programa espere un tiempo, como la función delay de pascal, tiempo de espera en delphi, realizar una pausa con delphi, retardar ejecutación con delay
En pascal hay la función delay que sirve para esperar un tiempo determinado antes de ejecutar la siguiente instrucción, en delphi carece de la función delay, pero con el [...]]]></description>
			<content:encoded><![CDATA[<p><small>Hacer que el programa espere un tiempo, como la función delay de pascal, tiempo de espera en delphi, realizar una pausa con delphi, retardar ejecutación con delay</small></p>
<p>En pascal hay la función delay que sirve para esperar un tiempo determinado antes de ejecutar la siguiente instrucción, en delphi carece de la función delay, pero con el siguiente truco conseguimos dicho efecto, podemos programar retardos en milisegundos, recuerda un segundo tiene 1000 milisegundos</p>
<pre class="brush: delphi;">
procedure SYS_Delay(msecs:integer);
var
 FirstTickCount:longint;
begin
 FirstTickCount:=GetTickCount;
 repeat
 Application.ProcessMessages; {allowing access to other
 controls, etc.}
 until ((GetTickCount-FirstTickCount) &gt;= Longint(msecs));
end;
</pre>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/&amp;title=Realizar+una+pausa%2C+el+delay+en+delphi" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/&amp;t=Realizar+una+pausa%2C+el+delay+en+delphi" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Realizar+una+pausa%2C+el+delay+en+delphi+-+http://b2l.me/tsdcs+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-meneame">
			<a href="http://meneame.net/submit.php?url=http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/&amp;n=Realizar+una+pausa%2C+el+delay+en+delphi&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Realizar%20una%20pausa%2C%20el%20delay%20en%20delphi%22&amp;body=I+thought+this+article+might+interest+you.%0A%0A%22Hacer%20que%20el%20programa%20espere%20un%20tiempo%2C%20como%20la%20funci%C3%B3n%20delay%20de%20pascal%2C%20tiempo%20de%20espera%20en%20delphi%2C%20realizar%20una%20pausa%20con%20delphi%2C%20retardar%20ejecutaci%C3%B3n%20con%20delay%0D%0A%0D%0AEn%20pascal%20hay%20la%20funci%C3%B3n%20delay%20que%20sirve%20para%20esperar%20un%20tiempo%20determinado%20antes%20de%20ejecutar%20la%20siguiente%20instrucci%C3%B3n%2C%20en%20delphi%20%22%0A%0AYou+can+read+the+full+article+here%3A%20http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/&amp;title=Realizar+una+pausa%2C+el+delay+en+delphi" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/&amp;title=Realizar+una+pausa%2C+el+delay+en+delphi&amp;srcUrl=http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/&amp;srcTitle=Realizar+una+pausa%2C+el+delay+en+delphi&amp;snippet=POST_SUMMARY" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.webserveis.com/mundodelphi/2010/01/28/realizar-una-pausa-el-delay-en-delphi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ventanas parpadeantes con FlashWindow</title>
		<link>http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/</link>
		<comments>http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 15:20:11 +0000</pubDate>
		<dc:creator>neuronic</dc:creator>
				<category><![CDATA[Trucos Delphi]]></category>
		<category><![CDATA[formulario]]></category>
		<category><![CDATA[truco]]></category>

		<guid isPermaLink="false">http://www.webserveis.com/mundodelphi/?p=223</guid>
		<description><![CDATA[frase de busqueda interna
Cómo crear una barra de título intermitente en un formulario, ventana intermitente, formulario parpadeante, formulario intermitente, formulario flashing,Window flashing,  efecto brillo formulario, efecto brillo en ventana,ventana parpadeante en la barra de tareas
Una técnica para avisar al usuario mientras tiene una ventana minimizada es hacerla parpadear en la barra de herramientas, un ejemplo [...]]]></description>
			<content:encoded><![CDATA[<p><small><span style="color: #888888;">frase de busqueda interna<br />
Cómo crear una barra de título intermitente en un formulario, ventana intermitente, formulario parpadeante, formulario intermitente, formulario flashing,Window flashing,  efecto brillo formulario, efecto brillo en ventana,ventana parpadeante en la barra de tareas</span></small></p>
<p>Una técnica para avisar al usuario mientras tiene una ventana minimizada es hacerla parpadear en la barra de herramientas, un ejemplo claro lo hace el famoso programa de meseguería MSN Messenger, que cuando alguien nos habla y tenemos su ventana minimizada, empieza a parpadear hasta que la abrimos, con delphi es muy simple hacer parpadear una ventana con una sola función lo hacemos todo</p>
<p><strong><span style="color: #99ccff;">FlashWindow(Handle,True);</span></strong></p>
<p>En Handle le pasamos el Handle de la ventana que queramos hacerla parpadear, la función solo lo hace una vez, si queremos el efecto repetitivo, una solución seria ponerla dentro de un timer como el siguiente ejemplo</p>
<pre class="brush: delphi;">
Timer1.Interval = n  (Tip for n = 1000  &quot;1 second&quot;)

procedure TForm1.Timer1Timer(Sender: TObject);
begin
 FlashWindow(Handle, true);
 FlashWindow(Application.Handle, true);
end;
</pre>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/&amp;title=Ventanas+parpadeantes+con+FlashWindow" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/&amp;t=Ventanas+parpadeantes+con+FlashWindow" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Ventanas+parpadeantes+con+FlashWindow+-+http://b2l.me/tsdcz+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-meneame">
			<a href="http://meneame.net/submit.php?url=http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/&amp;n=Ventanas+parpadeantes+con+FlashWindow&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Ventanas%20parpadeantes%20con%20FlashWindow%22&amp;body=I+thought+this+article+might+interest+you.%0A%0A%22frase%20de%20busqueda%20interna%0D%0AC%C3%B3mo%20crear%20una%20barra%20de%20t%C3%ADtulo%20intermitente%20en%20un%20formulario%2C%20ventana%20intermitente%2C%20formulario%20parpadeante%2C%20formulario%20intermitente%2C%20formulario%20flashing%2CWindow%20flashing%2C%C2%A0%20efecto%20brillo%20formulario%2C%20efecto%20brillo%20en%20ventana%2Cventana%20parpadeante%20en%20la%20barra%20de%20tareas%0D%0A%0D%0AUna%22%0A%0AYou+can+read+the+full+article+here%3A%20http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/&amp;title=Ventanas+parpadeantes+con+FlashWindow" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/&amp;title=Ventanas+parpadeantes+con+FlashWindow&amp;srcUrl=http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/&amp;srcTitle=Ventanas+parpadeantes+con+FlashWindow&amp;snippet=POST_SUMMARY" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.webserveis.com/mundodelphi/2009/09/18/ventanas-parpadeantes-con-flashwindow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Controlar multiples instancias de nuestra aplicacion</title>
		<link>http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/</link>
		<comments>http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/#comments</comments>
		<pubDate>Tue, 26 May 2009 21:12:08 +0000</pubDate>
		<dc:creator>neuronic</dc:creator>
				<category><![CDATA[Trucos Delphi]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[truco]]></category>

		<guid isPermaLink="false">http://www.webserveis.com/mundodelphi/?p=216</guid>
		<description><![CDATA[Controling the number of application instances, controlar el numero de instancias de nuestra aplicacion en delphi
Prevenir que nuestra aplicación en delphi se execute dos instancias a la vez, el truco está separado por dos partes
creamos una unidad nueva i le llamamos CheckPrevious.pas

unit CheckPrevious;

interface
uses Windows, SysUtils;

function RestoreIfRunning(const AppHandle : THandle; MaxInstances : integer = 1) : [...]]]></description>
			<content:encoded><![CDATA[<p><small><span style="color: #888888;">Controling the number of application instances, controlar el numero de instancias de nuestra aplicacion en delphi</span></small></p>
<p>Prevenir que nuestra aplicación en delphi se execute dos instancias a la vez, el truco está separado por dos partes</p>
<p>creamos una unidad nueva i le llamamos <strong>CheckPrevious.pas</strong></p>
<pre class="brush: delphi;">
unit CheckPrevious;

interface
uses Windows, SysUtils;

function RestoreIfRunning(const AppHandle : THandle; MaxInstances : integer = 1) : boolean;

implementation

type
PInstanceInfo = ^TInstanceInfo;
TInstanceInfo = packed record
PreviousHandle : THandle;
RunCounter : integer;
end;

var
MappingHandle: THandle;
InstanceInfo: PInstanceInfo;
MappingName : string;

RemoveMe : boolean = True;

function RestoreIfRunning(const AppHandle : THandle; MaxInstances : integer = 1) : boolean;
begin
Result := True;
MappingName := StringReplace(ParamStr(0), '\',  '', [rfReplaceAll, rfIgnoreCase]);
MappingHandle := CreateFileMapping($FFFFFFFF, nil, PAGE_READWRITE,  0, SizeOf(TInstanceInfo), PChar(MappingName));

if MappingHandle = 0 then
RaiseLastOSError
else
begin
if GetLastError &lt;&gt; ERROR_ALREADY_EXISTS then
begin
InstanceInfo := MapViewOfFile(MappingHandle, FILE_MAP_ALL_ACCESS, 0, 0, SizeOf(TInstanceInfo));
InstanceInfo^.PreviousHandle := AppHandle;
InstanceInfo^.RunCounter := 1;

Result := False;
end
else //already runing
begin
MappingHandle := OpenFileMapping(FILE_MAP_ALL_ACCESS, False, PChar(MappingName));
if MappingHandle &lt;&gt; 0 then
begin
InstanceInfo := MapViewOfFile(MappingHandle, FILE_MAP_ALL_ACCESS, 0, 0, SizeOf(TInstanceInfo));
if InstanceInfo^.RunCounter &gt;= MaxInstances then
begin
RemoveMe := False;
if IsIconic(InstanceInfo^.PreviousHandle) then
ShowWindow(InstanceInfo^.PreviousHandle, SW_RESTORE);
SetForegroundWindow(InstanceInfo^.PreviousHandle);
end
else
begin
InstanceInfo^.PreviousHandle := AppHandle;
InstanceInfo^.RunCounter := 1 + InstanceInfo^.RunCounter;

Result := False;
end
end;
end;
end;
end; (*RestoreIfRunning*)

initialization
//nothing special here
//we need this section because we have the
//finalization section

finalization
//remove this instance
if RemoveMe then
begin
MappingHandle := OpenFileMapping(FILE_MAP_ALL_ACCESS, False, PChar(MappingName));
if MappingHandle &lt;&gt; 0 then
begin
InstanceInfo := MapViewOfFile(MappingHandle, FILE_MAP_ALL_ACCESS, 0, 0, SizeOf(TInstanceInfo));
InstanceInfo^.RunCounter := -1 + InstanceInfo^.RunCounter;
end
else
RaiseLastOSError;
end;

if Assigned(InstanceInfo) then UnmapViewOfFile(InstanceInfo);
if MappingHandle &lt;&gt; 0 then CloseHandle(MappingHandle);

end. (*unit CheckPrevious*)

{
********************************************
Zarko Gajic
About.com Guide to Delphi Programming

http://delphi.about.com

email: delphi.guide@about.com
free newsletter: http://delphi.about.com/library/blnewsletter.htm
forum: http://forums.about.com/ab-delphi/start/
********************************************
}
</pre>
<p>y justo en la inicialización de la aplicación</p>
<pre class="brush: delphi;">
program Project1;

uses
Forms,  Unit1 in 'Unit1.pas' {Form1},  CheckPrevious in 'CheckPrevious.pas';

{$R *.res}

begin
//permetir solo una instancia
if not CheckPrevious.RestoreIfRunning(Application.Handle, 1) then
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end;
end.
</pre>
<p>Fuente: <a title="prevent multiple instance with delphi" href="http://delphi.about.com/od/windowsshellapi/l/aa100703a.htm" target="_blank">delphiabout.com</a><br />
Descarga: <a title="descargar codigo fuente en delphi" href="http://delphi.about.com/library/weekly/code/src100703.zip" target="_blank">codigo fuente</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/&amp;title=Controlar+multiples+instancias+de+nuestra+aplicacion" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/&amp;t=Controlar+multiples+instancias+de+nuestra+aplicacion" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Controlar+multiples+instancias+de+nuestra+aplicacion+-+File: /data/app/webapp/functions.php<br />Line: 66<br />Message: Duplicate entry 'tsc6s' for key 'code'+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-meneame">
			<a href="http://meneame.net/submit.php?url=http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/&amp;n=Controlar+multiples+instancias+de+nuestra+aplicacion&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Controlar%20multiples%20instancias%20de%20nuestra%20aplicacion%22&amp;body=I+thought+this+article+might+interest+you.%0A%0A%22Controling%20the%20number%20of%20application%20instances%2C%20controlar%20el%20numero%20de%20instancias%20de%20nuestra%20aplicacion%20en%20delphi%0D%0A%0D%0APrevenir%20que%20nuestra%20aplicaci%C3%B3n%20en%20delphi%20se%20execute%20dos%20instancias%20a%20la%20vez%2C%20el%20truco%20est%C3%A1%20separado%20por%20dos%20partes%0D%0A%0D%0Acreamos%20una%20unidad%20nueva%20i%20le%20llamamos%20CheckPrevious.pas%0D%0A%0D%0A%5Bd%22%0A%0AYou+can+read+the+full+article+here%3A%20http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/&amp;title=Controlar+multiples+instancias+de+nuestra+aplicacion" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/&amp;title=Controlar+multiples+instancias+de+nuestra+aplicacion&amp;srcUrl=http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/&amp;srcTitle=Controlar+multiples+instancias+de+nuestra+aplicacion&amp;snippet=POST_SUMMARY" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.webserveis.com/mundodelphi/2009/05/26/controlar-multiples-instancias-de-nuestra-aplicacion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mostrar dialogo propiedades de fecha y hora</title>
		<link>http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/</link>
		<comments>http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/#comments</comments>
		<pubDate>Tue, 26 May 2009 20:44:06 +0000</pubDate>
		<dc:creator>neuronic</dc:creator>
				<category><![CDATA[Trucos Delphi]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[truco]]></category>

		<guid isPermaLink="false">http://www.webserveis.com/mundodelphi/?p=213</guid>
		<description><![CDATA[open the Date/Time Properties window with delphi,abrir propiedades de fecha y hora en delphi
Truco para Mostrar el dialogo de sistema &#8220;propiedades de fecha y hora&#8221;

uses ShellApi;
procedure TForm1.Button1Click(Sender: TObject);
begin
ShellExecute(Handle, 'open', 'control', 'date/time', nil, SW_SHOW);
end;

Relacionado: Mostrar el Administrador de Tareas
Fuente:  delphitricks.com





		
			Share this on del.icio.us
		
		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Subscribe to the comments for this post?
		
		
			Submit this to Meneame
		
		
			Blog [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #888888;"><small>open the Date/Time Properties window with delphi,abrir propiedades de fecha y hora en delphi</small></span></p>
<p>Truco para Mostrar el dialogo de sistema &#8220;propiedades de fecha y hora&#8221;</p>
<pre class="brush: delphi;">
uses ShellApi;
procedure TForm1.Button1Click(Sender: TObject);
begin
ShellExecute(Handle, 'open', 'control', 'date/time', nil, SW_SHOW);
end;
</pre>
<p><strong>Relacionado</strong>: <a title="Permanent Link: Mostrar el Administrador de Tareas" rel="bookmark" href="../2009/05/26/mostrar-el-administrador-de-tareas/">Mostrar el Administrador de Tareas</a><br />
Fuente:  <a title="call the systemtime dialog delphi" href="http://www.delphitricks.com/source-code/windows/call_the_systemtime_dialog.html" target="_blank">delphitricks.com</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/&amp;title=Mostrar+dialogo+propiedades+de+fecha+y+hora" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/&amp;t=Mostrar+dialogo+propiedades+de+fecha+y+hora" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Mostrar+dialogo+propiedades+de+fecha+y+hora+-+http://b2l.me/tsp9a+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-meneame">
			<a href="http://meneame.net/submit.php?url=http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/&amp;n=Mostrar+dialogo+propiedades+de+fecha+y+hora&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Mostrar%20dialogo%20propiedades%20de%20fecha%20y%20hora%22&amp;body=I+thought+this+article+might+interest+you.%0A%0A%22open%20the%20Date%2FTime%20Properties%20window%20with%20delphi%2Cabrir%20propiedades%20de%20fecha%20y%20hora%20en%20delphi%0D%0A%0D%0ATruco%20para%20Mostrar%20el%20dialogo%20de%20sistema%20%22propiedades%20de%20fecha%20y%20hora%22%0D%0A%0D%0A%5Bdelphi%5D%0D%0Auses%20ShellApi%3B%0D%0Aprocedure%20TForm1.Button1Click%28Sender%3A%20TObject%29%3B%0D%0Abegin%0D%0AShellExecute%28Handle%2C%20%27open%27%2C%20%27control%27%2C%20%27date%2Fti%22%0A%0AYou+can+read+the+full+article+here%3A%20http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/&amp;title=Mostrar+dialogo+propiedades+de+fecha+y+hora" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/&amp;title=Mostrar+dialogo+propiedades+de+fecha+y+hora&amp;srcUrl=http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/&amp;srcTitle=Mostrar+dialogo+propiedades+de+fecha+y+hora&amp;snippet=POST_SUMMARY" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.webserveis.com/mundodelphi/2009/05/26/mostrar-dialogo-propiedades-de-fecha-y-hora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mostrar,Ocultar,Bloquear,Desbloquear barra de tareas</title>
		<link>http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/</link>
		<comments>http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/#comments</comments>
		<pubDate>Sat, 23 May 2009 16:56:44 +0000</pubDate>
		<dc:creator>neuronic</dc:creator>
				<category><![CDATA[Trucos Delphi]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[truco]]></category>

		<guid isPermaLink="false">http://www.webserveis.com/mundodelphi/?p=210</guid>
		<description><![CDATA[poner visible la barra de tareas en delphi, bloquear barra de tareas en delphi, desbloquear barra de tareas en delphi, ocultar barra de tareas en delphi, visible taskbar, hide taskbar,showtaskbar,enable taskbar with delphi
Con la función SetTaskBar podemos ocultar,mostrar,bloquear,desbloquear la barra de tareas de windows
 SetTaskBar(TaskBarVisible:boolean=true;TaskBarEnabled:boolean=true): Boolean;

Los parametros que tenemos que pasar son
TaskBarVisible: Indicamos si queremos [...]]]></description>
			<content:encoded><![CDATA[<p><small><span style="color: #808080;">poner visible la barra de tareas en delphi, bloquear barra de tareas en delphi, desbloquear barra de tareas en delphi, ocultar barra de tareas en delphi, visible taskbar, hide taskbar,showtaskbar,enable taskbar with delphi</span></small></p>
<p>Con la función <strong>SetTaskBar </strong>podemos ocultar,mostrar,bloquear,desbloquear la barra de tareas de windows</p>
<p><span style="color: #3366ff;"><strong> SetTaskBar</strong>(<strong><span style="color: #888888;">TaskBarVisible</span></strong>:boolean=true;<strong><span style="color: #888888;">TaskBarEnabled</span></strong>:boolean=true): Boolean;<br />
</span></p>
<p>Los parametros que tenemos que pasar son<br />
<strong>TaskBarVisible</strong>: Indicamos si queremos mostrar o ocultar la barra de tareas<br />
<strong>TaskBarEnabled</strong>: Indicamos si queremos que este desbloqueada o bloqueada</p>
<p><strong>Código de la función SetTaskBar</strong></p>
<pre class="brush: delphi;">
var
WndTaskbar: HWND;
begin
Result:=true;
WndTaskbar := FindWindow('Shell_TrayWnd', nil);//buscamos la barra de tareas
if TaskBarVisible then
ShowWindow(wndTaskbar, SW_SHOW)
else
ShowWindow(wndTaskbar, SW_HIDE);
if TaskBarEnabled then
EnableWindow(wndTaskbar, True)
else
EnableWindow(wndTaskbar, False);
end;
</pre>
<p><strong>Su uso</strong></p>
<pre class="brush: delphi;">
SetTaskBar(true,false); //bloquea la barra de tareas
SetTaskBar(true,true); //desbloquea la barra de tareas
SetTaskBar(false); //oculta la barra de tareas
SetTaskBar(true); //muestra la barra de tares
SetTaskBar(); //muestra y desbloquea la barra de tareas
</pre>
<p><strong>Inspiración</strong>: <a title="Disable/enable/hide/show taskbar" href="http://www.delphitricks.com/source-code/windows/disableenablehideshow_taskbar.html" target="_blank">DelphiTricks</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/&amp;title=Mostrar%2COcultar%2CBloquear%2CDesbloquear+barra+de+tareas" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/&amp;t=Mostrar%2COcultar%2CBloquear%2CDesbloquear+barra+de+tareas" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Mostrar%2COcultar%2CBloquear%2CDesbloquear+barra+de+tareas+-+http://b2l.me/twf6d+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-meneame">
			<a href="http://meneame.net/submit.php?url=http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/&amp;n=Mostrar%2COcultar%2CBloquear%2CDesbloquear+barra+de+tareas&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Mostrar%2COcultar%2CBloquear%2CDesbloquear%20barra%20de%20tareas%22&amp;body=I+thought+this+article+might+interest+you.%0A%0A%22poner%20visible%20la%20barra%20de%20tareas%20en%20delphi%2C%20bloquear%20barra%20de%20tareas%20en%20delphi%2C%20desbloquear%20barra%20de%20tareas%20en%20delphi%2C%20ocultar%20barra%20de%20tareas%20en%20delphi%2C%20visible%20taskbar%2C%20hide%20taskbar%2Cshowtaskbar%2Cenable%20taskbar%20with%20delphi%0D%0A%0D%0ACon%20la%20funci%C3%B3n%20SetTaskBar%20podemos%20ocultar%2Cmostrar%2Cbloquear%2Cdesbloquear%20la%22%0A%0AYou+can+read+the+full+article+here%3A%20http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/&amp;title=Mostrar%2COcultar%2CBloquear%2CDesbloquear+barra+de+tareas" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/&amp;title=Mostrar%2COcultar%2CBloquear%2CDesbloquear+barra+de+tareas&amp;srcUrl=http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/&amp;srcTitle=Mostrar%2COcultar%2CBloquear%2CDesbloquear+barra+de+tareas&amp;snippet=POST_SUMMARY" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.webserveis.com/mundodelphi/2009/05/23/mostrar-ocultar-bloquear-desbloquear-barra-de-tareas/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Enviar un email con delphi</title>
		<link>http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/</link>
		<comments>http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/#comments</comments>
		<pubDate>Sat, 23 May 2009 16:23:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[truco]]></category>

		<guid isPermaLink="false">http://www.webserveis.com/mundodelphi/?p=208</guid>
		<description><![CDATA[enviar un email delphi, send email with delphi, enviar email con el programa por defecto, send email with default program
Con la función SendEmailByDefault podemos crear un email y enviarlo con el programa definido por el sistema, su declaración es la siguiente
Function SendEmailByDefault(Para:string=&#8217;user@host.com&#8217;;Titulo:string=&#8217;Te envio este email&#8217;;Contenido:string=&#8217;Ese es el contenido&#8217;):Boolean;
Los parametros que tenemos que pasar son
Para: Dirección [...]]]></description>
			<content:encoded><![CDATA[<p><small><span style="color: #808080;">enviar un email delphi, send email with delphi, enviar email con el programa por defecto, send email with default program</span></small></p>
<p>Con la función <strong>SendEmailByDefault </strong>podemos crear un email y enviarlo con el programa definido por el sistema, su declaración es la siguiente</p>
<p><span style="color: #3366ff;">Function <strong>SendEmailByDefault</strong>(<strong><span style="color: #808080;">Para</span></strong>:string=&#8217;user@host.com&#8217;;<strong><span style="color: #808080;">Titulo</span></strong>:string=&#8217;Te envio este email&#8217;;<span style="color: #808080;"><strong>Contenido</strong></span>:string=&#8217;Ese es el contenido&#8217;):<span style="color: #808080;">Boolean</span>;</span></p>
<p>Los parametros que tenemos que pasar son<br />
<strong>Para</strong>: Dirección email que queremos enviar el email<br />
<strong>Titulo</strong>: Titulo del mensaje<br />
<strong>Contenido</strong>: Cuerpo del mensaje que puede ser texto llano o bien HTML enrrequecido</p>
<p><strong>Código de la función SendEmailbyDefault</strong></p>
<pre class="brush: delphi;">
uses ..., ShellApi;
...
Function SendEmailByDefault(Para:string='user@host.com';Titulo:string='Te envio este email';Contenido:string='Ese es el contenido'):Boolean;
var
Parametros:string;
begin
Result:=true;
try
Parametros := 'mailto:' + Para + '?subject=' + Titulo + '&amp;Body=' + Contenido;
ShellExecute(Form1.Handle, 'open', PChar(Parametros), nil, nil, SW_SHOWNORMAL);
except
Result:=true;
end;
end;
</pre>
<p>Recueda en declarar en uses la libreria <strong>ShellApi </strong>para poder utilizar funciones de la Win32Api de windows</p>
<p><strong>Su uso</strong></p>
<pre class="brush: delphi;">
procedure TForm1.Button2Click(Sender: TObject);
begin
SendEmailByDefault('usuario@usuario.com','Buenas tardes','Para mas informacion llamame');
end;
</pre>
<p>en mi caso tengo configurado el Thunderbird como programa de correo por defecto, me pide la clave de mi correo y lo envia</pre>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/&amp;title=Enviar+un+email+con+delphi" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/&amp;t=Enviar+un+email+con+delphi" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Enviar+un+email+con+delphi+-+http://b2l.me/tsz69+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-meneame">
			<a href="http://meneame.net/submit.php?url=http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/&amp;n=Enviar+un+email+con+delphi&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Enviar%20un%20email%20con%20delphi%22&amp;body=I+thought+this+article+might+interest+you.%0A%0A%22enviar%20un%20email%20delphi%2C%20send%20email%20with%20delphi%2C%20enviar%20email%20con%20el%20programa%20por%20defecto%2C%20send%20email%20with%20default%20program%0D%0A%0D%0ACon%20la%20funci%C3%B3n%20SendEmailByDefault%20podemos%20crear%20un%20email%20y%20enviarlo%20con%20el%20programa%20definido%20por%20el%20sistema%2C%20su%20declaraci%C3%B3n%20es%20la%20siguiente%0D%0A%0D%0AFunction%20SendEmailByDefault%28Pa%22%0A%0AYou+can+read+the+full+article+here%3A%20http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/&amp;title=Enviar+un+email+con+delphi" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/&amp;title=Enviar+un+email+con+delphi&amp;srcUrl=http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/&amp;srcTitle=Enviar+un+email+con+delphi&amp;snippet=POST_SUMMARY" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.webserveis.com/mundodelphi/2009/05/23/enviar-un-email-con-delphi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ocultar nuestra aplicacion delphi de la barra de tareas</title>
		<link>http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/</link>
		<comments>http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/#comments</comments>
		<pubDate>Sat, 23 May 2009 14:13:26 +0000</pubDate>
		<dc:creator>neuronic</dc:creator>
				<category><![CDATA[Trucos Delphi]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[truco]]></category>

		<guid isPermaLink="false">http://www.webserveis.com/mundodelphi/?p=206</guid>
		<description><![CDATA[Si queremos ocultar nuestra aplicacion hecha en delphi, que no aparezca en la bara de tares de windows tenemos dos maneras para poder ocultar una aplicacion en delphi

procedure TForm1.FormCreate(Sender: TObject);
begin
ShowWindow(Application.Handle, SW_HIDE) ;
SetWindowLong(Application.Handle, GWL_EXSTYLE, getWindowLong(Application.Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW) ;
ShowWindow(Application.Handle, SW_SHOW) ;
end;

justo en la creacion del formulario principal de la aplicación le decimos que no aparezca en [...]]]></description>
			<content:encoded><![CDATA[<p>Si queremos ocultar nuestra aplicacion hecha en delphi, que no aparezca en la bara de tares de windows tenemos dos maneras para poder ocultar una aplicacion en delphi</p>
<pre class="brush: delphi;">
procedure TForm1.FormCreate(Sender: TObject);
begin
ShowWindow(Application.Handle, SW_HIDE) ;
SetWindowLong(Application.Handle, GWL_EXSTYLE, getWindowLong(Application.Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW) ;
ShowWindow(Application.Handle, SW_SHOW) ;
end;
</pre>
<p>justo en la creacion del formulario principal de la aplicación le decimos que no aparezca en la barra de tareas executadas</p>
<p>Fuente:  <a title="Hide a Delphi Application Button from the TaskBar" href="http://delphi.about.com/od/adptips1999/qt/hidefromtaskbar.htm" target="_blank">Delphi About</a><br />
testeada con <strong><span style="color: #3366ff;">delphi 7.0</span></strong></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/&amp;title=Ocultar+nuestra+aplicacion+delphi+de+la+barra+de+tareas" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/&amp;t=Ocultar+nuestra+aplicacion+delphi+de+la+barra+de+tareas" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Ocultar+nuestra+aplicacion+delphi+de+la+barra+de+tareas+-+http://b2l.me/tr9n7+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-meneame">
			<a href="http://meneame.net/submit.php?url=http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/&amp;n=Ocultar+nuestra+aplicacion+delphi+de+la+barra+de+tareas&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Ocultar%20nuestra%20aplicacion%20delphi%20de%20la%20barra%20de%20tareas%22&amp;body=I+thought+this+article+might+interest+you.%0A%0A%22Si%20queremos%20ocultar%20nuestra%20aplicacion%20hecha%20en%20delphi%2C%20que%20no%20aparezca%20en%20la%20bara%20de%20tares%20de%20windows%20tenemos%20dos%20maneras%20para%20poder%20ocultar%20una%20aplicacion%20en%20delphi%0D%0A%0D%0A%5Bdelphi%5D%0D%0Aprocedure%20TForm1.FormCreate%28Sender%3A%20TObject%29%3B%0D%0Abegin%0D%0AShowWindow%28Application.Handle%2C%20SW_HIDE%29%20%3B%0D%0ASetWindowLong%28Applicati%22%0A%0AYou+can+read+the+full+article+here%3A%20http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/&amp;title=Ocultar+nuestra+aplicacion+delphi+de+la+barra+de+tareas" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/&amp;title=Ocultar+nuestra+aplicacion+delphi+de+la+barra+de+tareas&amp;srcUrl=http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/&amp;srcTitle=Ocultar+nuestra+aplicacion+delphi+de+la+barra+de+tareas&amp;snippet=POST_SUMMARY" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.webserveis.com/mundodelphi/2009/05/23/ocultar-nuestra-aplicacion-delphi-de-la-barra-de-tareas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convertir numeros de una base a otra</title>
		<link>http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/</link>
		<comments>http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/#comments</comments>
		<pubDate>Sat, 23 May 2009 10:41:02 +0000</pubDate>
		<dc:creator>neuronic</dc:creator>
				<category><![CDATA[Trucos Delphi]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[truco]]></category>

		<guid isPermaLink="false">http://www.webserveis.com/mundodelphi/?p=201</guid>
		<description><![CDATA[Funcion delphi conversora de decimal a binario, Conversión de Binario a Decimal en Delphi, Decimal codificado en Binario, Conversor binario/decimal/hexadecimal, Convertir Números Romanos a Numeros Decimales, Como convertir cifras numéricas a números Romanosen Delphi, Convertir Arábigos a Romanos con Delphi, Conversión a Números Romanos en Delphi, convertir numeros naturales a numeros romanos en Delphi, Convertir [...]]]></description>
			<content:encoded><![CDATA[<p><small><span style="color: #888888;">Funcion delphi conversora de decimal a binario, Conversión de Binario a Decimal en Delphi, Decimal codificado en Binario, Conversor binario/decimal/hexadecimal, Convertir Números Romanos a Numeros Decimales, Como convertir cifras numéricas a números Romanosen Delphi, Convertir Arábigos a Romanos con Delphi, Conversión a Números Romanos en Delphi, convertir numeros naturales a numeros romanos en Delphi, Convertir números arábigos en romanos en Delphi, Funcion para convertir numeros a numeros romanos en Delphi, Números Romanos Delphi, Conversión de números romanos con Delphi</span></small></p>
<p>Set de funciones para pasar de decimal a binario decimal octal, natural a romano y viceversa de binario a decimal, octal a decimal y romano a natural, para sistema hexadecimal delphi dispone de <strong>IntToHex </strong>y <strong>HexToInt</strong></p>
<p><strong>Listado de Funciones</strong></p>
<ul>
<li>IntToBin</li>
<li>BinToInt</li>
<li>IntToOctal</li>
<li>OctalToInt</li>
<li>IntToRoman</li>
<li>RomanToInt</li>
</ul>
<p><strong>Código de las funciones agrupadas</strong></p>
<pre class="brush: delphi;">
//----- Funciones para base binario
Function IntToBin ( Numero: LongInt; Digits: integer=8): string;
begin
result := StringOfChar ( '0', Digits ) ;
while Numero &gt; 0 do begin
if ( Numero and 1 ) = 1 then
result [ digits ] := '1';
dec ( digits ) ;
Numero := Numero shr 1;
end;
end;

Function BinToInt(Numero: String): LongInt;
var i: Integer;
begin
Result:=0;
//quita los ceros delanteros
while Copy(Numero,1,1)='0' do Numero:=Copy(Numero,2,Length(Numero)-1) ;
//crea la conversion
for i:=Length(Numero) downto 1 do
if Copy(Numero,i,1)='1' then
Result:=Result+(1 shl (Length(Numero)-i)) ;
end;

//----- Funciones para base Octal
Function IntToOct(Numero: Longint; digits: Integer=8): string;
var
rest: Longint;
oct: string;
i: Integer;
begin
oct := '';
while Numero &lt;&gt; 0 do
begin
rest  := Numero mod 8;
Numero := Numero div 8;
oct := IntToStr(rest) + oct;
end;
for i := Length(oct) + 1 to digits do
oct := '0' + oct;
Result := oct;
end;

function OctToInt(Numero: string): Longint;
var
i: Integer;
int: Integer;
begin
int := 0;
for i := 1 to Length(Numero) do
begin
int := int * 8 + StrToInt(Copy(Numero, i, 1));
end;
Result := int;
end;

//----- Funciones para numeros Romanos
Function IntToRoman(Numero: LongInt): String;
const
Arabes: Array[1..13] of Integer = (1,4,5,9,10,40,50,90,100,400,500,900,1000) ;
Romanos: Array[1..13] of String = ('I','IV','V','IX','X','XL','L','XC','C','CD','D','CM','M') ;
var
i: Integer;
begin
for i := 13 downto 1 do
while (Numero &gt;= Arabes[i]) do begin
Numero := Numero - Arabes[i];
Result := Result + Romanos[i];
end;
end;

function RomanToInt(const roman: string) : LongInt;
var
i: integer;
lastChar: Char;
begin
result := 0;
lastChar := ' ';
for i := Length(roman) downto 1 do
begin
case roman[i] of
'I': if (lastChar = 'X') or (lastChar = 'V') then
Dec(result) else Inc(result);
'V': Inc(result, 5);
'X': if (lastChar = 'C') or (lastChar = 'L') then
Dec(result, 10) else Inc(result, 10);
'L': Inc(result, 50);
'C': if (lastChar = 'M') or (lastChar = 'D') then
Dec(result, 100) else Inc(result, 100);
'D': Inc(result, 500);
'M': Inc(result, 1000);
end;
lastChar := roman[i];
end;
end;
</pre>
<p><strong>Muestra de uso de la funciones</strong></p>
<pre class="brush: delphi;">
var
Numero_dec,Numero_dec1,Numero_dec2: Integer;
Numero_bin: String;
Numero_oct: String;
Numero_rom: String;
begin
Numero_dec := 123;
Numero_bin := IntToBin(Numero_dec);
Numero_oct := IntToOct(Numero_dec);
Numero_rom := IntToRoman(1999);

memo1.Lines.Clear;
memo1.Lines.add('Binario: ' + Numero_bin);
memo1.Lines.add('Octal: ' + Numero_oct);
memo1.Lines.add('Romano: ' + Numero_rom);

Numero_dec := BinToInt('01111011');
Numero_dec1 := OctToInt('173');
Numero_dec2 := RomanToInt('MCMXCIX');

memo1.Lines.add('Bin to decimal: ' + IntToStr(Numero_dec));
memo1.Lines.add('Oct to decimal: ' + IntToStr(Numero_dec1));
memo1.Lines.add('Roman to decimal: ' + IntToStr(Numero_dec2));
end;
</pre>
<p><strong>Obtendremos</strong></p>
<div class="console-output">Binario: 01111011<br />
Octal: 00000173<br />
Romano: MCMXCIX<br />
Bin to decimal: 123<br />
Oct to decimal: 123<br />
Roman to decimal: 1999</div>
<p><strong>Fuentes:</strong> <a title="foros club delphi" href="http://clubdelphi.com" target="_blank">forosclubdelphi</a>, <a title="delphi tricks y tips" href="http://www.delphitricks.com" target="_blank">delphitricks.com</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/&amp;title=Convertir+numeros+de+una+base+a+otra" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/&amp;t=Convertir+numeros+de+una+base+a+otra" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Convertir+numeros+de+una+base+a+otra+-+http://b2l.me/tr9ny+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-meneame">
			<a href="http://meneame.net/submit.php?url=http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/&amp;n=Convertir+numeros+de+una+base+a+otra&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Convertir%20numeros%20de%20una%20base%20a%20otra%22&amp;body=I+thought+this+article+might+interest+you.%0A%0A%22Funcion%20delphi%20conversora%20de%20decimal%20a%20binario%2C%20Conversi%C3%B3n%20de%20Binario%20a%20Decimal%20en%20Delphi%2C%20Decimal%20codificado%20en%20Binario%2C%20Conversor%20binario%2Fdecimal%2Fhexadecimal%2C%20Convertir%20N%C3%BAmeros%20Romanos%20a%20Numeros%20Decimales%2C%20Como%20convertir%20cifras%20num%C3%A9ricas%20a%20n%C3%BAmeros%20Romanosen%20Delphi%2C%20Convertir%20Ar%C3%A1bigos%20a%20Romano%22%0A%0AYou+can+read+the+full+article+here%3A%20http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/&amp;title=Convertir+numeros+de+una+base+a+otra" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/&amp;title=Convertir+numeros+de+una+base+a+otra&amp;srcUrl=http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/&amp;srcTitle=Convertir+numeros+de+una+base+a+otra&amp;snippet=POST_SUMMARY" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.webserveis.com/mundodelphi/2009/05/23/convertir-numeros-de-una-base-a-otra/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mover un formulario sin barra de titulo en delphi</title>
		<link>http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/</link>
		<comments>http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/#comments</comments>
		<pubDate>Fri, 22 May 2009 14:17:07 +0000</pubDate>
		<dc:creator>neuronic</dc:creator>
				<category><![CDATA[Trucos Delphi]]></category>
		<category><![CDATA[formulario]]></category>
		<category><![CDATA[truco]]></category>

		<guid isPermaLink="false">http://www.webserveis.com/mundodelphi/?p=200</guid>
		<description><![CDATA[Drag a Delphi Form (Window) without the caption title Bar, Drag window without title bar in Delphi, ventanas movibles sin barra de titulo en delphi,
mover una ventana sin barra de titulo en delphi,mover un formulario sin barra de titulo en delphi
Truco en delphi para mover un formulario sin barra de titulo
Agregar procedure WMNCHitTest( var Msg [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #888888;"><small>Drag a Delphi Form (Window) without the caption title Bar, Drag window without title bar in Delphi, ventanas movibles sin barra de titulo en delphi,<br />
mover una ventana sin barra de titulo en delphi,mover un formulario sin barra de titulo en delphi</small></span><br />
Truco en delphi para mover un formulario sin barra de titulo</p>
<p>Agregar <span style="color: #0000ff;">procedure <strong>WMNCHitTest</strong>( var <strong>Msg </strong>: TWMNCHitTest );  message <strong>wm_NCHitTest</strong>;</span> en  la parte <strong>private </strong>de la clase <strong>Tform</strong></p>
<pre class="brush: delphi;">
TForm1 = class(TForm)
....
private
procedure WMNCHitTest( var Msg : TWMNCHitTest );  message wm_NCHitTest;
{ Private declarations }
</pre>
<p>y en la sección <strong>implementation </strong>poner el codigo de la función <span style="color: #0000ff;"><strong>WMNCHitTest</strong></span></p>
<pre class="brush: delphi;">
procedure TForm1.WMNCHitTest( var Msg : TWMNCHitTest );
begin
inherited;
if( Msg.Result = htClient )then   Msg.Result := htCaption;
end;
</pre>
<p><strong>Truco relacionado: </strong> <a title="Ocultar el titulo de un formulario en delphi" href="http://www.webserveis.com/mundodelphi/2009/05/22/ocultar-el-titulo-de-un-formulario-en-delphi/" target="_self">Ocultar el titulo de un formulario en delphi</a><br />
<strong>Fuentes:</strong> <a title="Drag a Delphi Form Without the Caption Bar" href="http://www.chami.com/tips/delphi/010397D.html" target="_blank">Chami.com Tips</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/&amp;title=Mover+un+formulario+sin+barra+de+titulo+en+delphi" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/&amp;t=Mover+un+formulario+sin+barra+de+titulo+en+delphi" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Mover+un+formulario+sin+barra+de+titulo+en+delphi+-+http://b2l.me/ttz4k+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-meneame">
			<a href="http://meneame.net/submit.php?url=http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/&amp;n=Mover+un+formulario+sin+barra+de+titulo+en+delphi&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Mover%20un%20formulario%20sin%20barra%20de%20titulo%20en%20delphi%22&amp;body=I+thought+this+article+might+interest+you.%0A%0A%22Drag%20a%20Delphi%20Form%20%28Window%29%20without%20the%20caption%20title%20Bar%2C%20Drag%20window%20without%20title%20bar%20in%20Delphi%2C%20ventanas%20movibles%20sin%20barra%20de%20titulo%20en%20delphi%2C%0D%0Amover%20una%20ventana%20sin%20barra%20de%20titulo%20en%20delphi%2Cmover%20un%20formulario%20sin%20barra%20de%20titulo%20en%20delphi%0D%0ATruco%20en%20delphi%20para%20mover%20un%20formulario%20sin%20barra%20%22%0A%0AYou+can+read+the+full+article+here%3A%20http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/&amp;title=Mover+un+formulario+sin+barra+de+titulo+en+delphi" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/&amp;title=Mover+un+formulario+sin+barra+de+titulo+en+delphi&amp;srcUrl=http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/&amp;srcTitle=Mover+un+formulario+sin+barra+de+titulo+en+delphi&amp;snippet=POST_SUMMARY" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.webserveis.com/mundodelphi/2009/05/22/mover-un-formulario-sin-barra-de-titulo-en-delphi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
