html5-img
1 / 40

Window Painter

Window Painter. PowerBuilder Window Window Controls Window Properties Window Types. Window Painter. PowerBuilder Window A window in PowerBuilder is the main interface to the application. A window can be resized, minimized, maximized, keep always on the top.

sorley
Download Presentation

Window Painter

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Window Painter PowerBuilder Window Window Controls Window Properties Window Types PowerBuilder Online Courses - by Prasad Bodepudi

  2. Window Painter • PowerBuilder Window • A window in PowerBuilder is the main interface to the application. • A window can be resized, minimized, maximized, keep always on the top. • Some types of windows can have a menu attached to it. PowerBuilder Online Courses

  3. Window Painter PowerBuilder Window Window Controls Window Properties Window Types PowerBuilder Online Courses - by Prasad Bodepudi

  4. Window Painter • Window Controls • StaticText • Singleline Edit • Multiline Edit • CommandButton • PictureButton • CheckBox • RadioButton • ListBox • DropDownListBox • PictureListBox • DropDownListBox • DropDownPictureListBox • GroupBox • ListView • TreeView • Tab • More... PowerBuilder Online Courses

  5. Window Painter • Window Controls • RitchTextEdit • DataWindow • User Object • HorizontalScrollBar • VerticalScrollBar • Picture • EditMask • Graph Control • OLE Control • Drawing Controls • Line • Rectangle • Oval • Circle PowerBuilder Online Courses

  6. Window Painter • StaticText • Used to display text as a label. • User can not change the display text. • Text can be changed in the PowerScript. • Can display text from right to left which is good for Arabic & Hebrew languages.(v6.0) PowerBuilder Online Courses

  7. Window Painter • SingleLineEdit Control • Used to enter data in a single line up to 65K. • Can be used to accept password. • Maximum data length can be set. • Editing masks such as ‘All characters’, ‘Telephone No format’ can not be applied. • Can display/accept text from right to left which is good for Arabic & Hebrew languages. (v6.0) PowerBuilder Online Courses

  8. Window Painter • MultiLineEdit Control • Used to enter data in a single line up to 65K. • Display/Accept text in multiple lines using scroll bars. • Maximum data length can be set. • Editing masks such as ‘All characters’, ‘Telephone No format’ can not be applied. • Can display/accept text from right to left which is good for Arabic & Hebrew languages. (v6.0) PowerBuilder Online Courses

  9. Window Painter • CommandButton • Used to trigger an action when clicked or press ENTER key. • Background & foreground colors can not be changed. • Can be set to trigger an action when user press ESC key in the window. PowerBuilder Online Courses

  10. Window Painter • PictureButton • Similar to CommandButton with the ability to display a picture on the button. • Different pictures can be used when the button is disabled. PowerBuilder Online Courses

  11. Window Painter • CheckBox • Used to accept a True/False choice from the user. • Text can be displayed either right or left side to the CheckBox. • Can display text from right to left which is good for Arabic & Hebrew languages (v6.0). PowerBuilder Online Courses

  12. Window Painter • CheckBox • Used to accept a True/False choice from the user. • Text can be displayed either right or left side to the CheckBox. • Can have three states, True, False and Unknown. • Can display text from right to left which is good for Arabic & Hebrew languages (v6.0). PowerBuilder Online Courses

  13. Window Painter • RadioButton • Used to accept a True/False choice from the user. • Typically two or more RadioButtons are used as a group. • Can display text from right to left which is good for Arabic & Hebrew languages (v6.0). • GroupBox control is required to use RadioButtons for more than one prompt. PowerBuilder Online Courses

  14. Window Painter • GroupBox • Used to make logical groups among RadioButtons when used for different prompts. • Foreground & Background colors can not be changed. PowerBuilder Online Courses

  15. Window Painter • ListBox • Used to display a list of choices to the user. • Items in the ListBox can be sorted using the ‘Sort’ property. • User can select multiple items from a ListBox. • Allows ExtendedSelect (selection using Ctrl, Shift keys). • Can display text from right to left which is good for Arabic & Hebrew languages (v6.0). PowerBuilder Online Courses

  16. Window Painter • PictureListBox • Similar to ListBox with the ability to display a picture for each item in the ListBox. PowerBuilder Online Courses

  17. Window Painter • DropDownListBox • Combines the features of SLE and ListBox. • Multi item selection is not allowed. • Unlike a ListBox, DDLB allows typing a new item. • Takes only a SingleLineEdit control space. • When clicked on the arrow, DDLB drops down and allows selection. • Can display text from right to left which is good for Arabic & Hebrew languages (v6.0). PowerBuilder Online Courses

  18. Window Painter • DropDownPictureListBox • Extends DropDownListBox with the ability to display a picture next to each item in the DDPLB. PowerBuilder Online Courses

  19. Window Painter • ListView • ListView displays information to the user in different formats --such as list, report, small icons and large icons, using text and pictures. • ListView is a Windows 95 control introduced with v5.0. • Icons can be displayed in fixed locations in the icon view or user can move icons within ListView. • Headers in the report view can be displayed/hidden. • Headers can be displayed with button interface. PowerBuilder Online Courses

  20. Window Painter • TreeView • Displays information in hierarchical format similar to the ‘Windows Explorer’. • Each item in the TreeView control can have text and a picture. • The top most item in the TreeView is called ‘RootNode’. • All other items in the TreeView are children of the ‘Root node’ • Information can be manipulated using PowerScript. PowerBuilder Online Courses

  21. Window Painter • Tab Control • Tab control contains tab pages • Looks similar to a diary/appointment book. • The tags for the tab pages can be arranged in any combinations of top,bottom,left or right. • User Objects can be used to create tab pages. • All Window controls can be placed on the tab page. • Tab pages can be created dynamically using PowerScript. PowerBuilder Online Courses

  22. Window Painter • RichTextEdit Control • Displays/Accepts formatted text --such as bold, italic, underline, different font attributes. • Accepts tab, new line characters. • Can display ruler and toolbar for text formatting. • Allows to invoke context sensitive popup menu in the RTE control. • Allows to save the text in rich text format. • Can attach a DataWindow to RTE Control. PowerBuilder Online Courses

  23. Window Painter • User Object • User Objects are customized PowerBuilder standard objects or external objects (from third parties). • Visual User Object • Standard • Custom • External • Class • Standard • Custom • C++ PowerBuilder Online Courses

  24. Window Painter • Graph Control • Using the graph control you can display graphs in the window with minimal programming. • Graph control supports a variety of graphs including stack, bar, graph, time, pie, area and 3D. • Graph control is rarely used control in the window since Graph presentation style DataWindow is a lot easier and gives a lot more functionality. PowerBuilder Online Courses

  25. Window Painter • DataWindow Control • DataWindow control holds a DataWindow object and displays data from the database & allows data entry. • This is the heavily used control in PowerBuilder. • Typically, you assign the DataWindow object to the DataWindow control at painting time. However, you can change the assignment at run-time using PowerScript. • DataWindow supports right-to-left property (v6.0) which is useful for Arabic/Hebrew languages. PowerBuilder Online Courses

  26. Window Painter • Horizontal & Vertical Scrollbars • Used as a slider control for users to specify a value on a continuous scale. PowerBuilder Online Courses

  27. Window Painter • Drawing Objects • Drawing Objects are used to make better screens and have no data awareness. PowerBuilder Online Courses

  28. Window Painter • EditMask • Used to accept formatted text such as dates, telephone numbers, social security numbers, zip codes, etc.. • You can specify the mask you need to apply. • You also display spin controls for the EditMask and a value of increment. PowerBuilder Online Courses

  29. Window Painter • OLE Control • Contains an object that was created by an OLE 2.0 aware application. • The object’s application can be invoked from within PowerBuilder and can be edited. • Object properties can be changed from PowerScript and methods can also be invoked. PowerBuilder Online Courses

  30. Window Painter • PowerBuilder Window • Window Controls • Window Properties • Window Types PowerBuilder Online Courses

  31. Window Painter • Window Properties • A window can have minimize, maximize and control menu box at the top along with a title bar. • A menu can be associated with a window. • Restrictions apply on the above properties depending on the window type. • Toolbar & Scrollbar options specific to the window can be specified. PowerBuilder Online Courses

  32. Window Painter • PowerBuilder Window • Window Controls • Window Properties • Window Types PowerBuilder Online Courses

  33. Window Painter • Window Types • Main • MDI Frame • MDI Frame with MicroHelp • Child • Popup • Response PowerBuilder Online Courses

  34. Window Painter • Main Window • Most used window type • Can be opened independently or as a sheet in MDI frame (with MicroHelp) • When minimized, icon displays on the OS screen. • Minimizing window when used as a sheet will display window icon at the bottom of the MDI frame window. • Can have a menu, title bar and minimize,maximize and control menu icons and window can be resized. PowerBuilder Online Courses

  35. Window Painter • MDI Frame Window • Used in Multiple Document Interface applications. • When minimized, icon displays on the OS screen. • Can have a menu, title bar and minimize,maximize and control menu icons and window can be resized. • Menu name should be supplied at design time. • When closed, closes all sheets in the window first. PowerBuilder Online Courses

  36. Window Painter • MDI Frame with MicroHelp Window • Similar to MDI Frame window with the added ability of displaying help on the status bar at the bottom of the window. PowerBuilder Online Courses

  37. Window Painter • Child Window • Can not have maximize, minimize, control menu box icons and menu. • Window can not run unless opened in a window. • Can not grow/move out of parent window. • Never considered as an active window (Activate event never fires in this window). • Closed automatically when parent window is closed. PowerBuilder Online Courses

  38. Window Painter • Popup Window • Can have all the properties of a Main window. • Always stays at the top of all other windows. • Closes automatically when parent window is closed. PowerBuilder Online Courses

  39. Window Painter • Response Window • A Model window in PowerBuilder. • Can not be resized. • Can not have maximize, minimize boxes. • Can not have a menu. • When opened with OpenSheet(), behaves like a sheet in the MDI window. • User can not access application unless this window is closed. PowerBuilder Online Courses

  40. Window Painter • PowerBuilder Window • Window Controls • Window Properties • Window Types Questions? Drop an e-mail at prasad@applied-software.com The End PowerBuilder Online Courses

More Related