1. Home
  2. Computing & Technology
  3. Delphi Programming

Positioning Web controls in design view (Asp.Net - Delphi for .Net)

By Zarko Gajic, About.com

In Delphi for .Net Web projects, the design view editing surface offers two ways to position web elements (web controls), flow layout and absolute layout.
By default, when you drop web controls from the Tool Palette onto a web form, the controls are positioned next to each other.

In order to "freely" move web controls on a web form, with the component selected press the button on the toolbar above the design view with the "absolute position" hint text.
This will add style="position:absolute" as an attribute to the web control in the aspx view.

Note: if you use double-click to drop a web control onto a web form, a control will always use relative positioning ("stick to the closest"). If you drag a control from the Tool Palette, absolute positioning is default ("move as you whish").

Delphi tips navigator:
» Simulating keystrokes from code
« How to right align items in a TComboBox

Zarko Gajic
Guide since 1998

Zarko Gajic
Delphi Programming Guide

Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Coding Delphi Applications
  5. Delphi Tips and Tricks
  6. 2004 Delphi Tips
  7. Positioning Web controls in design view (Asp.Net - Delphi for .Net)

©2009 About.com, a part of The New York Times Company.

All rights reserved.