Blogs

Paul Kimmel's Blog

Automatic Edit Type Switching New in v2009 Volume 3

     

Some features are small and to the point. New features are being added all the time. The feature in this blog is short and to the point and it is a design time feature, so I combined it with another feature.

Suppose you have a TextEdit control on a form and you set the TextEdit.Properties.Mask to ‘f’ for Full date/time (short time) using the Mask Editor (see Figure 1). You now also have the design time capability—a new feature in volume 3—of changing the actual design control while keeping layout and location the same. For example, to change the TextEdit control to a DateEdit control at design time click the TextEdit’s smart tags menu, click Change editor type (see Figure 2). All control types can be changed this way and you get to avoid the headache of reconstructing your very carefully constructed layout.

image
Figure 1: The Mask Editor let’s you pick from pre-defined edit masks for the TextEdit control.

 

image
Figure 2: Change control types in place on the fly at design time.

Published Jan 05 2010, 06:42 PM by Paul Kimmel (DevExpress)
Bookmark and Share

Comments

 

Neal said:

What a great idea, I wonder who thought of that?  Ohh, umm, never mind! :)

January 5, 2010 2:51 PM
 

Marc Greiner [DX-Squad] said:

Yes Neal, it was you, I remember it also !

January 5, 2010 3:34 PM
 

Christopher D. Todd said:

I have to say it was a brilliant idea!! Hope they add it to ASP.NET as well as WPF.

January 5, 2010 7:27 PM
 

Julien Ferraro said:

What about the same behavior at runtime. Sometimes users want to use a SpinEdit, sometimes they need a CalEdit, for the same value.

It's a hard choice for the developper to make. And more than once I had to create a new version just because my users needed more a calculator than a spin.

January 5, 2010 11:14 PM
 

Darko Pecnik said:

In the UI designer perspective LayoutControl alone is why people buy DevExpress, this makes it even more brilliant.

January 7, 2010 8:13 AM
 

NiceIdea said:

i saw this feature actually with Delphi 5 or 6. nice feature tho

January 7, 2010 10:45 AM
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.