Alpha Splash Screen lazarus / 39-Graphics ---------------------------------------------------------------------- lainz · 2011-03-21 16:31 How i can create an splash screen like: http://sites.google.com/site/blingonmywrist2/iTunes_Splash_preview.JPG or http://blogs.msdn.com/blogfiles/visualstudio/WindowsLiveWriter/Behindt heScenesSplashScreen_CC39/image_2.png with transparency? ---------------------------------------------------------------------- circular · 2011-03-21 16:56 I see two ways : - defining an alpha bitmap for the window (don't know if it's available in Lazarus) - taking a screenshot of the region where you want to draw, add your elements on the bitmap, create a window without border with the bitmap inside. It's kind of a workaround, because if you move something behind, it won't appear. ---------------------------------------------------------------------- fabienwang · 2011-03-21 19:08 here is what i did for windows. for multiplatform solution, there seems to be some Regions functions in LCLIntf, but i haven't tried (http://bugs.freepascal.org/view.php?id=1804 ) For windows, it's much simple: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE) or WS_EX_LAYERED);SetLayeredWindowAttributes(Handle,clBlack,255,LWA_CO LORKEY);Note: replace clBlack by the transparent color you want to set. PS: i had to put "Brush.Style:= bsClear;" over it to get it to work. PS2 ^^: Project demo added in SVN: http://code.google.com/p/lazsamples/ ---------------------------------------------------------------------- lainz · 2011-03-22 03:13 In this site a lot of info about splash screen alpha blended from bmp and png: picture: http://melander.dk/wordpress/wp- content/uploads/2008/05/alphasplash2shot.png article: http://melander.dk/articles/alphasplash http://melander.dk/articles/alphasplash2/ but i don't know how to use it in Lazarus ---------------------------------------------------------------------- circular · 2011-03-22 12:10 This article works on Windows only. It uses an API to assign a transparent Bitmap to a Window handle. ---------------------------------------------------------------------- rajivsoft · 2011-03-24 09:21 Quote from: lainz on March 21, 2011, 05:31:07 pmHow i can create an splash screen like: http://sites.google.com/site/blingonmywrist2/iTunes_Splash_preview.JPG or http://blogs.msdn.com/blogfiles/visualstudio/WindowsLiveWriter/Behindt heScenesSplashScreen_CC39/image_2.png with transparency? for Mac OS X look here: http://www.lazarus.freepascal.org/index.php/topic,8186.msg39863.html#m sg39863 ---------------------------------------------------------------------- Paul Ishenin · 2011-03-24 09:29 Use TWinControl.SetShape methods.