Full Screen Window Snippets

Set the Border style of your main form to bsNone and then use System Parameters Info message to get the SPI_GETWORKAREA value then use Set Bounds to make your Window the correct size.

22 August, 2011   

Here shown how to center an element on screen

Delphi code to display the screen size and the list of fonts

28 January, 2013   

Save a screen capture of a Java Frame/Panel/Window

28 December, 2011   

Delphi Code Example for Print Screen using Quick Reports

17 April, 2013   

In Firefox, Safari and Chrome, this script only works if the window was originally opened using Javascript (window.open function)

07 September, 2011   

How to Center a form on the screen

As the most important building block of any Delphi application, the TForm object is most of the times used as is. Delphi's TForm object provides enough properties and events to help you do (and control) whatever needed with it. Sometimes you'll find out that a few events or properties are missing... Try creating a simple form application. Now...

18 September, 2012   

Attempts to close the current window. You can use it for popups

08 December, 2012   

Full screen background image using pure CSS3.

28 January, 2011   

The days of 800x600 screens are all but over, but most of us still try to accommodate 1024px wide screens. Hence the popularity of "960" width sites. This bookmarklet will resize the current browser window to that width and height. You know, so us web designers with giant monitors can see what it's like to be slummin' with a 1024...

The following code snippet shows you how to create a circle shaped window, by using a few Win32 API calls. You can also drag the window on the screen by using the mouse.

16 June, 2012   

You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can add also a timer to the script that will allow the page to redirect and the visitors will not need to click a link or type in the new URL.

Place the following JavaScript code into your HTML where you would like the button to appear:

08 July, 2015   

Source code for a game setup for DirectX

26 November, 2018   

Cross-browser method for testing for pop-up blockers.

Use this in the <head> of your HTML files.

Display an image anywhere on the screen, without using UI Builder. You can use this for other types of views as well.

16 January, 2012   

MySQL can perform boolean full-text searches using the IN BOOLEAN MODE modifier with MATCH function

Essentially the trick is to draw the panel/frame/etc. into a BufferedImage and use the ImageIO class to write it to an image file.