<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-34556474</id><updated>2011-12-15T03:12:59.009Z</updated><title type='text'>Living Lazarus</title><subtitle type='html'>One mans exploration into the possibilities of an open source RAD</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-34556474.post-4797530820176690982</id><published>2011-03-29T12:45:00.001+01:00</published><updated>2011-03-29T12:45:49.170+01:00</updated><title type='text'>SimpleCompressor updated.</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;I've received a few comments on the first version of SimpleCompressor and I've altered it a bit.&lt;/p&gt;&lt;p&gt;It now backs up the original executable before it processes it, informs you when it has finished and tells you how small your new executable is.&lt;/p&gt;&lt;p&gt;There is also an About box with simple instructions. Simple, to match the compressor.&lt;/p&gt;&lt;p&gt;Available from my Software pages for Windows 32bit, Linux 32bit and Linux 64bit, along with the sources.&lt;/p&gt;&lt;p/&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-4797530820176690982?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/4797530820176690982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=4797530820176690982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/4797530820176690982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/4797530820176690982'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2011/03/simplecompressor-updated.html' title='SimpleCompressor updated.'/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34556474.post-4787762533343640764</id><published>2011-03-21T11:53:00.002Z</published><updated>2011-03-21T12:06:36.401Z</updated><title type='text'></title><content type='html'>Reducing the size of Lazarus's compiled executables is fairly frequently commented on in the Lazarus forum. The default is for the exe to have all of the debugging tags kept in so this makes for a bulky exe even though the app in itself may be modest .&lt;br /&gt;&lt;br /&gt;I have modified a small app by Marien van Westen from 2006 to enable you to compress your app to a very reasonable size.&lt;br /&gt;&lt;br /&gt;Example: The compressor can work on another instance of itself to reduce its size from 19.5MB to 1MB.&lt;br /&gt;&lt;br /&gt;I am packaging it so that versions exist for both Windows and Linux. There will be packages with just the necessary executables for both and a source package.&lt;br /&gt;&lt;br /&gt;These will be uploaded soon onto my website and I will post in the Lazarus forums that they are available.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-4787762533343640764?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/4787762533343640764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=4787762533343640764' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/4787762533343640764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/4787762533343640764'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2011/03/reducing-size-of-lazaruss-compiled.html' title=''/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34556474.post-2604126592911305540</id><published>2009-09-07T11:43:00.002+01:00</published><updated>2009-09-07T12:00:37.187+01:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;font-size:180%;" &gt;Doh!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I've been using Slackware Linux and its Vector derivative for some time now and I have found that Freepascal and Lazarus make a great programming combination.&lt;br /&gt;&lt;br /&gt;Installing is not a problem. Download the stable build of Freepascal, untar it, and, as root install using the shell script. Simply a matter of writing ./install.sh and pressing enter.&lt;br /&gt;&lt;br /&gt;After downloading the source file Lazarus is installed into your home folder by untaring it, opening a terminal in the folder and issuing the command, make clean all.&lt;br /&gt;&lt;br /&gt;This is how it's done with the latest versions anyway.&lt;br /&gt;&lt;br /&gt;I have had the previous version (2.2.2)  of Freepascal installed for a while and I have had a problem compiling updated versions of Lazarus. The errors that came up involved GTK2 calls. I investigated updating GTK2 just in case, no need to apparently, I have the latest version. It was only when I updated to Freepascal 2.2.4 and then compiled Lazarus that the errors were conspicuous by their absense!&lt;br /&gt;&lt;br /&gt;Just a word to the wise if you are having this problem.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-2604126592911305540?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/2604126592911305540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=2604126592911305540' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/2604126592911305540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/2604126592911305540'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2009/09/doh-ive-been-using-slackware-linux-and.html' title=''/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34556474.post-2663527345640805299</id><published>2008-05-29T18:16:00.003+01:00</published><updated>2008-05-29T18:24:35.132+01:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;font-size:130%;" &gt;New Application uploaded.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My database explorer application is taking longer to complete and release than I expected. I think I'm making it overly complicated, so I am editing and refining the code I have written before I finish the first release.&lt;br /&gt;&lt;br /&gt;I have uploaded onto my website a small application that will, depending on the date picked from a calendar, allow you to enter, edit and delete notes. It uses a TDbf  table to do so. It is a bit rough around the edges but works quite well.&lt;br /&gt;One thing I have noticed is with the Linux version you have to place the database table and the HTML help file into the Home folder instead of the apps folder. This isn't necessary with the Windows version. Strange. I intend to continue working on it to iron out this wrinkle and I will hopefully add a print option to the File menu.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-2663527345640805299?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/2663527345640805299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=2663527345640805299' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/2663527345640805299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/2663527345640805299'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2008/05/my-database-explorer-application-is.html' title=''/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34556474.post-3565335483267056766</id><published>2007-11-28T11:15:00.000Z</published><updated>2007-11-28T11:23:04.231Z</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;Project update.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;My Db explorer is coming along and I expect to have it ready for download within the next two months or so. This will be a testing release so, don't use it for any kind of production use.&lt;br /&gt;&lt;br /&gt;You have been forewarned!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Lazarus 0.9.24 released.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Yes, the latest release is available and having downloaded and installed it on both Windows XP and Mandriva 2007 Spring I can tell you that it's the best yet. Lots of updates and bug fixes and a pleasure to use.&lt;br /&gt;&lt;br /&gt;Try it out.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-3565335483267056766?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/3565335483267056766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=3565335483267056766' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/3565335483267056766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/3565335483267056766'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2007/11/project-update.html' title=''/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34556474.post-288261741381488426</id><published>2007-07-11T09:13:00.000+01:00</published><updated>2007-07-11T09:18:18.039+01:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;font-size:130%;" &gt;Project update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In between work and my Open University course studies I have been working on a small dbf explorer and editor. It is fairly slow going but it is progressing at least. When it is finished (are they ever?) a user will be able to load a database examine and edit its table structure, and add, delete and edit individual records within it.&lt;br /&gt;&lt;br /&gt;When will it be finished? Hopefully, within the next 3 months, or that's the plan.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-288261741381488426?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/288261741381488426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=288261741381488426' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/288261741381488426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/288261741381488426'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2007/07/project-update-in-between-work-and-my.html' title=''/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34556474.post-4383670626477316701</id><published>2007-04-25T11:22:00.000+01:00</published><updated>2007-04-25T11:24:20.180+01:00</updated><title type='text'></title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span lang="EN-GB"&gt;I haven’t posted anything here for a while I know. This is because I am working on a simple(!) programme to create and edit TDbf databases.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-GB"&gt;Oh yes, I am also part way through studying the next module of my Open University degree course. That’s the major reason.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-4383670626477316701?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/4383670626477316701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=4383670626477316701' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/4383670626477316701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/4383670626477316701'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2007/04/i-havent-posted-anything-here-for-while.html' title=''/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34556474.post-116299416545552132</id><published>2006-11-08T13:54:00.000Z</published><updated>2006-11-08T13:56:05.466Z</updated><title type='text'></title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Windows version 0.9.20 released.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Windows version is out, lots of work done since 0.9.18. Check it out for yourselves.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-116299416545552132?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/116299416545552132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=116299416545552132' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/116299416545552132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/116299416545552132'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2006/11/windows-version-0.html' title=''/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34556474.post-116290988970168831</id><published>2006-11-07T14:28:00.000Z</published><updated>2006-11-07T14:31:29.713Z</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;"&gt;New Version Released.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Yes, Lazarus 0.9.20 has been released for Linux. Available in RPM and Deb  formats from the Lazarus site.&lt;br /&gt;&lt;br /&gt;There is no sign of this version for Windows and Mac yet, but I don't suppose the release will be long delayed.&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-116290988970168831?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/116290988970168831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=116290988970168831' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/116290988970168831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/116290988970168831'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2006/11/new-version-released.html' title=''/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34556474.post-116039224795534637</id><published>2006-10-09T12:02:00.000+01:00</published><updated>2006-10-09T12:10:47.963+01:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;font-size:130%;" &gt;RandomRange function&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size:85%;"&gt;Delphi has a great function that Lazarus lacks; the ability to return a random number within a set range. However, this little function will do the job really well.&lt;br /&gt;&lt;br /&gt;Declare the following in the &lt;span style="font-weight: bold;"&gt;public &lt;/span&gt;section,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;function RandomRange(aMin: Integer; aMax: Integer) : Integer;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now add this to your &lt;span style="font-weight: bold;"&gt;implementation&lt;/span&gt; section&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;function&lt;/span&gt; TForm1.RandomRange(aMin: Integer; aMax: Integer) : Integer;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt;&lt;br /&gt;     RandomRange := Random(aMax-aMin) + aMin ;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;end;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Usage is very simple,&lt;br /&gt;&lt;br /&gt;declare a variable, say  aNum and then use like this,&lt;br /&gt;&lt;br /&gt;aNum := RandomRange(10,100);&lt;br /&gt;&lt;br /&gt;Simple.&lt;br /&gt; &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-116039224795534637?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/116039224795534637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=116039224795534637' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/116039224795534637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/116039224795534637'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2006/10/randomrange-function-delphi-has-great.html' title=''/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34556474.post-116015171424716942</id><published>2006-10-06T16:12:00.000+01:00</published><updated>2006-10-06T17:21:54.266+01:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;"&gt;Control Arrays&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Lazarus does not have the inbuilt facility to create control arrays so a work around must be used. This is not as difficult as it might seem. Try the following.&lt;br /&gt;&lt;br /&gt;Create and save a new project called Experiment.&lt;br /&gt;&lt;br /&gt;Place an Image onto the form you have created. Name it &lt;span style="font-weight: bold;"&gt;shapeImage_0.&lt;/span&gt; Set its Visible property to false.&lt;br /&gt;&lt;br /&gt;Now, in the Public declarations section create an array so...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;images : array[1..20,1..20] of TImage;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Underneath create a procedure called &lt;span style="font-weight: bold;"&gt;Shapes(i : integer; f : integer);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the &lt;span style="font-weight: bold;"&gt;var&lt;/span&gt; section put this.. &lt;span style="font-weight: bold;"&gt;MAP : array[1..20,1..20] of integer;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Now create the Shapes procedure..&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;procedure&lt;/span&gt; TForm1.Shapes(i : integer; f : integer);&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt;&lt;br /&gt;   with images[i,f] do&lt;br /&gt;    &lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt;&lt;br /&gt;          Canvas.Rectangle(20,20,0,0);&lt;br /&gt;          Case MAP[i,f] of&lt;br /&gt;                0 : &lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt; Canvas.Brush.Color := clYellow;&lt;br /&gt;                                          Canvas.Pen.Color := clYellow;&lt;br /&gt;                                          Canvas.Ellipse(5,5,15,15);&lt;br /&gt;                                          &lt;span style="font-weight: bold;"&gt;end;&lt;/span&gt;&lt;br /&gt;                1 : &lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt; Canvas.Brush.Color := clWhite;&lt;br /&gt;                                          Canvas.Pen.Color := clWhite;&lt;br /&gt;                                          Canvas.Ellipse(5,5,15,15);&lt;br /&gt;                                          &lt;span style="font-weight: bold;"&gt;end;&lt;/span&gt;&lt;br /&gt;                 2 : &lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt; Canvas.Brush.Color := clRed;&lt;br /&gt;                            Canvas.Pen.Color := clRed;&lt;br /&gt;                                           Canvas.Ellipse(1,1,18,18);&lt;br /&gt;                                           &lt;span style="font-weight: bold;"&gt;end;&lt;/span&gt;&lt;br /&gt;                3 : &lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt; Canvas.Brush.Color := clBlue;&lt;br /&gt;                                          Canvas.Pen.Color := clBlue;&lt;br /&gt;                                          Canvas.Ellipse(1,1,18,18);&lt;br /&gt;                                          &lt;span style="font-weight: bold;"&gt;end;&lt;/span&gt;&lt;br /&gt;      &lt;span style="font-weight: bold;"&gt;        end;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;end;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;end;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, fill in the FormCreate like this..&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;procedure&lt;/span&gt; TForm1.FormCreate(Sender: TObject);&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;var&lt;/span&gt;&lt;br /&gt;   i, f, g, nCtrl : integer;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   { create images for shapes }&lt;br /&gt;    nCtrl := 0;&lt;br /&gt;   for f := 1 to 20 do&lt;br /&gt;    &lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt;&lt;br /&gt;          for i := 1 to 20 do&lt;br /&gt;         &lt;span style="font-weight: bold;"&gt; begin&lt;/span&gt;&lt;br /&gt;           Inc(nCtrl);&lt;br /&gt;                images[f,i] := TImage.Create(self);&lt;br /&gt;                with images[f,i] do&lt;br /&gt;                begin&lt;br /&gt;                      parent := self;&lt;br /&gt;                      tag := nCtrl;&lt;br /&gt;                      name := 'shapeImage_' + IntToStr(tag);&lt;br /&gt;                      visible := True;&lt;br /&gt;                      autosize := False;&lt;br /&gt;                      stretch := false;&lt;br /&gt;                      Height := 20;&lt;br /&gt;               Width := 20;&lt;br /&gt;                      Left := 10 + (i*20) - 19;&lt;br /&gt;                      Top := 5 + (f*20) -20;&lt;br /&gt;                      Canvas.Pen.Color := clBlack;&lt;br /&gt;                      Canvas.Brush.Color := clBlack;&lt;br /&gt;                      OnClick := @shapeImage_0Click;&lt;br /&gt;                &lt;span style="font-weight: bold;"&gt;end;&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;           end;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;end;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   Randomize;&lt;br /&gt;    for i := 1 to 20 do&lt;br /&gt;    &lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt;&lt;br /&gt;          for f := 1 to 20 do&lt;br /&gt;          &lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt;&lt;br /&gt;                g := Random(100);&lt;br /&gt;                if(g &gt;= 1) then MAP[i,f] := 0;&lt;br /&gt;                if(g &gt;= 30) then MAP[i,f] := 1;&lt;br /&gt;                if(g &gt;= 60) then MAP[i,f] := 2;&lt;br /&gt;                if(g &gt;= 80) then MAP[i,f] := 3;&lt;br /&gt;                Shapes(i, f);&lt;br /&gt;              &lt;span style="font-weight: bold;"&gt;end;&lt;/span&gt;&lt;br /&gt;      &lt;span style="font-weight: bold;"&gt; end;&lt;br /&gt;   end;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, to end create an OnClick event with the TImage you placed on the form and fill it with this..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;procedure&lt;/span&gt; TForm1.shapeImage_0Click(Sender: TObject);&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;var&lt;/span&gt;&lt;br /&gt; j, k, l, m: integer;&lt;br /&gt; i : Longint;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt;&lt;br /&gt; i := TImage(sender).Tag;&lt;br /&gt; for j := 1 to 20 do&lt;br /&gt; &lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt;&lt;br /&gt;   for k := 1 to 20 do&lt;br /&gt;   &lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt;&lt;br /&gt;     if images[j,k].Tag = i then&lt;br /&gt;     &lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt;&lt;br /&gt;       l := j;&lt;br /&gt;       m := k;&lt;br /&gt;     &lt;span style="font-weight: bold;"&gt;end;&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;   end;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;end;&lt;/span&gt;&lt;br /&gt; MessageDlg( 'You have clicked on ' + IntToStr(l) + ',' + IntToStr(m), mtInformation, [mbOk],0);&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;end;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Save and execute the application and you should see this..&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5584/1760/1600/screen.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/5584/1760/320/screen.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click on one of the shapes and a message dialog will pop up and tell you which element of the control array you accessed.&lt;br /&gt;&lt;br /&gt;That's it, from this starting point you can do a great deal. I'm sure you can think of more!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-116015171424716942?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/116015171424716942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=116015171424716942' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/116015171424716942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/116015171424716942'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2006/10/control-arrays-lazarus-does-not-have.html' title=''/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34556474.post-115912604900180880</id><published>2006-09-24T20:23:00.000+01:00</published><updated>2006-09-24T20:27:29.010+01:00</updated><title type='text'></title><content type='html'>The Lazarus site has an updated version of the RAD available. I only downloaded the Windows version 0.9.18 and installed it today so it's too early to give my impressions of it. There are also versions available to download for Linux and Mac OSX. Get yours today.&lt;br /&gt;&lt;br /&gt;I was surprised that I was the first person to download it from the SourceForge site, never had that before. It makes a change to be first in line!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-115912604900180880?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/115912604900180880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=115912604900180880' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/115912604900180880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/115912604900180880'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2006/09/lazarus-site-has-updated-version-of.html' title=''/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34556474.post-115848858008408748</id><published>2006-09-17T11:00:00.000+01:00</published><updated>2006-09-17T12:08:16.280+01:00</updated><title type='text'>The Lazarus Experience</title><content type='html'>A few years ago I discovered the Free Pascal Compiler.&lt;br /&gt;&lt;br /&gt;I had been using Delphi for about 7 years and began experimenting with FPC. Fun.&lt;br /&gt;&lt;br /&gt;However, it proved difficult to develop a GUI based application. Then I began to read about this development called Lazarus. It was very rough around the edges but had great promise. The development has reached a stage where users can develop very advanced and complex apps. The great thing is that it is Open Source, freely downloadable and extendable.&lt;br /&gt;&lt;br /&gt;This blog is intended to show how you can download and install the RAD and begin to make use of it. I will publish code snippets of various things I have found useful. necessary or just plain desirable!&lt;br /&gt;&lt;br /&gt;There are versions available for Windows, Linux, Mac, BSD and others. You can develop on one platform and deploy your App across all of the available platforms.&lt;br /&gt;&lt;br /&gt;If you are interested give it a try. You can get it from &lt;a href="http://www.lazarus.freepascal.org"&gt;www.lazarus.freepascal.org&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;What do you need?&lt;br /&gt;&lt;br /&gt;WINDOWS : Download the current stable version - Version 0.9.16 - and doubleclick to install. This release includes the FreePascal compiler and sources.&lt;br /&gt;&lt;br /&gt;LINUX : Download the FreePascal compiler and sources from the Lazarus site, install these first and then download and install the Lazarus file, again the stable version is 0.9.16. You may receive notices that you are missing dependencies, install the devel-libraries of the missing dependencies and try again.&lt;br /&gt;&lt;br /&gt;MAC : The process is similar to that of Linux.&lt;br /&gt;&lt;br /&gt;Once it is installed, start Lazarus up and then compile the default App that first appears, if it compiles and runs then congratulations! You are a programmer!&lt;br /&gt;&lt;br /&gt;More soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34556474-115848858008408748?l=living-lazarus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://living-lazarus.blogspot.com/feeds/115848858008408748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34556474&amp;postID=115848858008408748' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/115848858008408748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34556474/posts/default/115848858008408748'/><link rel='alternate' type='text/html' href='http://living-lazarus.blogspot.com/2006/09/lazarus-experience.html' title='The Lazarus Experience'/><author><name>WibblyTim</name><uri>http://www.blogger.com/profile/14255100656834706422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
