Give Your Clients Control of the GUI Wheeling WV

Giving your clients control of Graphic User Interface, GUI, is a great way to build client relationships. In the following article, you'll learn more about GUI.

Local Companies

American Solutions Inc
(304) 232-9560
Wheeling, WV
Stenger Business Systems
(304) 233-2666
1035 Chapline St
Wheeling, WV
Technology Services Group Inc
(304) 232-5427
48 14th St Ste 301
Wheeling, WV
Blue Line Computers Llc
(304) 242-0032
1062 E Bethlehem Blvd
Wheeling, WV
Computerland
(304) 232-5427
48 14th St Ste 301
Wheeling, WV
Groupstar.Com
(304) 243-9811
41 11th St
Wheeling, WV
Wholesale Computers
(304) 748-0273
3129 Main St
Weirton, WV
Computers 4 U Inc
(304) 675-5282
303 Main St
Point Pleasant, WV
Future Tech Inc
(304) 425-2709
105 S Walker St
Princeton, WV
Harvey Computer Service Inc
(304) 845-1862
63 Linden Ave
Moundsville, WV

This article demonstrates how users can alter their GUI at runtime.

Delphi Developer
February 1999

Copyright Pinnacle Publishing, Inc. All rights reserved.
Give Your Clients Control of the GUI
Steve Zimmelman

How many times have you delivered what you thought was a completed application, only to hear your client say, "Gee, this is nice, but I'd really like the Name on the left, and the Status field should be red, not black, and . . ." Wouldn't it be nice if all your users had to do was right-click the mouse over the control, and up comes a popup menu allowing them to change the control's attributes? Or if they press Ctrl-ArrowKey or Shift-ArrowKey to change the position or size of the control?

Giving users control of the GUI is a two-step process. First you have to create controls with properties users can change at runtime, and then you must have a way to save and restore the changes. Usually, the control that gets the most use is the DB Edit. So this example will focus on creating a DB Edit that uses a customized Popup Menu that's activated on the right-click of the mouse. The menu will allow the user to change Color, Font, Tab Order, and Text Case. Additionally, the key combination of Ctrl-Arrow and Shift-Arrow will change the position and size of the control, respectively.

Before I begin, I want to introduce you to a new text-case property: ProperCase. Most proper-case conversions usually capitalize only the first letter, then any letter that follows a space. But this leaves a host of names and abbreviated titles looking a bit awkward, like McDonald, O'Hara, M.D., and so forth. So in my attempt to create a better mouse-trap, I included a proper-case conversion that has the intelligence to handle these special names. I placed the functions used for the proper-case conversion in a unit called StrFunc.pas and then included the unit StrFunc in the Uses statement of the component....

Click here to read the rest of the article at HowToDoThings.com

Author: brian shaifer

Featured Local Company

Image Computer Solutions

740-453-5953
44 N. 4th St.
Zanesville, OH
www.imagecomputersolutions.com


Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Advertising Family Home Services Real Estate Resources
Business Services Fashion Industrial Goods & Services Retail & Consumer Services
Career Financial Services Insurance Software
Cars Food & Beverage Internet Technology
Computer Hardware Franchise Legal Telecommunications
Construction Health Miscellaneous Trade Shows
Education Holidays Nightlife Travel
Entertainment Home Appliances Online Database Weddings
Environmental Home Electronics Pets World History