Upload
buithuan
View
244
Download
1
Embed Size (px)
Citation preview
BUILDING MODERN POWERBUILDER APPLICATIONS
DONALD D. CLAYTON PRESIDENT, INTERTECH CONSULTING, INC.
DECEMBER 14, 2011
2 – December 3, 2012
TOPICS
• The Shifting UI Landscape
• Strategies for Modernizing PowerBuilder Applications
• Building New PowerBuilder Applications
3 – December 3, 2012
THE SHIFTING UI LANDSCAPE
• User Interface (UI) standards have evolved
• WPF
• Metro
• Custom-developed applications haven’t kept pace
• Applications developed in the 1990’s have a dated look and feel
• With some effort, applications can be given a fresh look by making a few key User Interface (UI) changes
4 – December 3, 2012
A TYPICAL POWERBUILDER UPDATE SCENARIO
• Typical PowerBuilder applications underwent initial design and development in the mid to late 1990s were developed to look good in Windows 95 and 98
• PowerBuilder applications were also designed to interoperate with Microsoft Office Applications
–Office products in the 1990s looked very different
–Office products made substantial use of MDI
8 – December 3, 2012
STEPS TO MODERNIZE A POWERBUILDER APPLICATION
• Move away from Windows Classic Style Controls
• Change Project Objects
• Change Default Fonts
• Make intelligent use of color
• Use contemporary Menus and Toolbars
• Introduce Treeview controls to show hierarchies
• Use the New RTF Controls
• Use more Modern Frameworks
• Move away from MDI
9 – December 3, 2012
MOVING AWAY FROM WINDOWS CLASSIC STYLE CONTROLS
The first thing PowerBuilder developers should do when updating applications is to move away from Windows Classic Style controls
10 – December 3, 2012
CHANGING THE PROJECT OBJECTS
For relevant PowerBuilder Win32-based Project Objects, open each project object and uncheck the “Windows Classic Style” checkbox
12 – December 3, 2012
CHANGE THE DEFAULT FONT
Font use has evolved as new system fonts have been added
Many applications still use older fonts like MS Sans Serif
For revising applications, select more modern fonts
– Tahoma
– Calibri
• Has equal or better use of space than Times New Roman or MS Sans Serif
Be sure to use fonts “without feet”
14 – December 3, 2012
INCORPORATE CONTEMPORARY MENUS AND TOOLBARS
Another easy thing to do is to incorporate “contemporary” menus, toolbars, tooltips, and other UI mnemonics
15 – December 3, 2012
USE TREEVIEW CONTROLS TO DISPLAY HIERARCHICAL NAVIGATION AND DATA
Treeview Controls and DataWindows can be used to display hierarchical data or to aid navigation
16 – December 3, 2012
A HIERARCHICAL TASK LIST USING THE XPLISTBAR CONTROL*
* XPListBar Control Courtesy of Brad Wery, Werysoft
17 – December 3, 2012
UPGRADE TO THE NEW RTF CONTROLS
PowerBuilder’s aging RTF control was replaced in PowerBuilder 10.5 with a much more powerful control
This new control supports the current RTF specifications in – RichTextEdit controls
– RichText DataWindows
– The new RTF column style
The new control also suppports new “Save As” formats – FileTypeDoc! saves the file in Microsoft Word format
– FileTypeHTML! saves the file in HTML
– FileTypePDF! saves the file in PDF format
19 – December 3, 2012
UTILIZE OTHER MODERN CONTROLS
There are many other modern controls that can be used today, including
– Hyperlink controls
– Progress Bars
– Spin Boxes
20 – December 3, 2012
USE MODERN FRAMEWORKS
The Kodigo project framework Brad Wery’s PowerDock framework
Modern PowerBuilder Frameworks make it easy to construct contemporary interfaces
21 – December 3, 2012
WHAT IF I’M USING PFC?
The PFC is an excellent framework
– Robust
–Widely Used
22 – December 3, 2012
MOVE AWAY FROM MDI
• MDI was the dominant interface for
–Windows 3.1 Program Manager
–Microsoft Office
– Large PowerBuilder applications
• Microsoft started trending away from MDI some time ago
• It appears that the MDI interface is on borrowed time
23 – December 3, 2012
BEYOND MDI – THE WINDOWS PRESENTATION FOUNDATION
• The Windows Presentation Foundation (WPF) is a graphical OS subsystem for rendering user interfaces in windowing applications
• There is no concept of MDI in WPF
• Sheets become tabs in the legacy frame window
27 – December 3, 2012
UPDATING POWERBUILDER IS MORE THAN UI
• There is a lot of valuable business logic in most PowerBuilder applications
• This valuable business logic can be made accessible with some modifications
– Batch Programs
–Web Services
– .NET Assemblies
28 – December 3, 2012
CONCLUDING REMARKS
• The migration to a recent version of PowerBuilder is required to provide modern OS support, current database drivers, and to take advantage of the features discussed
• Developers can do many simple things to modernize the look and feel of applications
• The techniques explored here are simple, low cost, and low risk
• When developing with an eye to the future, be sure to remain committed to making your applications the best they can be
29 – December 3, 2012
Thank You
DONALD D. CLAYTON
INTERTECH CONSULTING, INC
[email protected] WWW.INTERTECH.US