Delphi magic!

1,358 views

Published on

New cool features, units, and components in Delphi 2006.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,358
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • See other presentation
  • gexperts.org
  • It’s been in Delphi since at least Delphi 5
  • Delphi magic!

    1. 1. Delphi Magic!<br />
    2. 2. Any technology sufficiently advanced<br />is indistinguishable from magic!<br />2<br />
    3. 3. Hot Keys<br />Class Completion<br />Bookmarks, Last Pos<br />Incremental Search<br />Find Declaration<br />Macros<br />The Magic:<br />Ctrl+Shift+C, Ctrl+1/Alt+1, Alt+RArrow, Ctrl+E, Right+Click/L, Ctrl+Shift+R/Ctrl+Shift+P<br />3<br />
    4. 4. Live Templates<br />New in Delphi 2006<br />Macros on steroids!<br />XML format<br />The Magic:<br />View > Templates; New/Edit<br />4<br />
    5. 5. GExperts<br />Proofreading<br />Code Librarian<br />Even more hot-keys<br />Favorites<br />ASCII Chart<br />Replace Component<br />Reverse Statement<br />Comment Code<br />Change Case<br />Block find/highlight<br />Uses List<br />Procedure List<br />Project Dependencies<br />Multi-line Tabs<br />Grep<br />And more!<br />5<br />The Magic: gexperts.org<br />
    6. 6. Component Templates<br />Create a collection of components that are instantly reusable<br />Panel without a caption<br />OK/Cancel buttons on a panel<br />The Magic:<br />Components > Create Component Template<br />6<br />
    7. 7. Unit Testing<br />Instant test case setup<br />Nice framework to build individual tests<br />Many built-in functions—read the code<br />The Magic:<br />File > New > Unit Test<br />7<br />
    8. 8. XP and Vista Theme Support<br />The Magic:<br />Delphi 6 and earlier<br />Must create a manifest file<br />Optionally link one into a resource<br />Delphi 7 – Delphi 2006<br />Add XPMan unit to uses clause<br />Delphi 2007 and later<br />Project > Options > Application > Enable runtime themes<br />8<br />
    9. 9. Handy Functions<br />Date functions<br />String functions<br />The Magic:<br />StrUtils<br />DateUtils<br />9<br />
    10. 10. Component Injection<br />Add new properties and methods to existing components!<br />Adds new functionality to the components in your application without replacing them!<br />The Magic:TButton = class(StdCtrls.TButton)<br />10<br />
    11. 11. New VCL Components<br />Labeled Edit, Buttoned Edit<br />Tray Icon, Balloon Hint<br />Category Buttons, Category Panel<br />Flow Panel, Grid Panel<br />Task Dialog<br />The Magic:Tool Palettes: Additional, VistaDialogs, others<br />11<br />

    ×