|
Comments
|
Today's Top SOA Links
Features PowerBuilder UI Designer
Visually design your UI controls WYSIWYG style
By: Brad Wery
Dec. 19, 2009 11:45 PM
PowerToTheBuilder.com is a PowerBuilder developer's source for free, open source, high-quality user interface controls. Using any number of the controls available can provide your application with an instant facelift. Integration is easy and becomes less complicated based on the knowledge you have of your own application. Inherently, PowerBuilder doesn't provide designer support for custom visual controls. The PB UI Controls therefore must be tested by first calling its exposed functions, then running your application. This causes several problems. First you must figure out which methods to call and what parameters to pass. Once you have the code in place you have to run your solution, find your UI, and confirm that it appears and behaves the way you want. If it doesn't work as expected, you have to go back to your code, make your changes, and test again.
UI Painter There are many different types of properties that are presented in the properties window - everything from item collections to colors to images. Take for example the XPListBar painter. There are two separate collections: one for groups and one for items (see Figure 2 and Figure 3). A lot of the controls also have an image property. Image properties can be set to a file resource or a built-in PB image resource (see Figure 4). Pseudo Ribbon If you want to use this look now, you can; everything is in place. Just follow these steps:
Height = 192, X = 14, Y = 4.
uo_ribbon.Width = NewWidth - 25
uo_ribbon.of_SetStyle(uo_ribbon.RIBBON) uo_ribbon.of_OpenTab(uo_file, ‘File', 0) That's it. In the future, this will be much simpler and wrapped up for you so you can just plug it in and use it. Next Release With each release of the UI Designer should come a new release of the UI Controls. Functionality will be added to the UI controls to make the designer a better tool. Currently, most of the planned enhancements revolve around the Toolbar. There will be buttons that display popup menus, larger images, full font support, text positioning (top, bottom, left and right), and item padding. The XPListBar will also receive a little attention in coming releases. More specifically, new styles will be added. Known Issues The toolbar painter is missing the ability to add separators between your items. A new item type dropdown will be added to the toolbar's item collection window. In the meantime you can simply add a call to of_AddSeparator to your code. The ShortcutBar has a bug that wasn't solved at the time of the release of the application. If you click on the chevron to open the context menu, some weird behavior occurs. Simply reselect the ShortcutBar tab to reset things. Most controls have theme properties. The default is automatically displayed as Blue in the UI Designer regardless of the actual default theme. The code that is generated does use the correct theme. Font name dropdowns are not being loaded correctly. You can manually type your font but you can't select from a list. This will be fixed so that all available fonts in the system are displayed. Conclusion Reader Feedback: Page 1 of 1
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
|||||||||||||||||||||||||||