window painter
Post on 24-Jan-2016
123 Views
Preview:
DESCRIPTION
TRANSCRIPT
PowerBuilder Online Courses - by Prasad PowerBuilder Online Courses - by Prasad
BodepudiBodepudi
Window PainterWindow Painter PowerBuilder Window
Window Controls
Window Properties
Window Types
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 - by Prasad PowerBuilder Online Courses - by Prasad
BodepudiBodepudi
Window PainterWindow Painter PowerBuilder Window
Window Controls
Window Properties
Window Types
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow Painter
Window Controls
StaticTextStaticText
Singleline EditSingleline Edit
Multiline EditMultiline Edit
CommandButtonCommandButton
PictureButtonPictureButton
CheckBoxCheckBox
RadioButtonRadioButton
ListBoxListBox
DropDownListBoxDropDownListBox
PictureListBoxPictureListBox
DropDownListBoxDropDownListBox
DropDownPictureListBoxDropDownPictureListBox
GroupBoxGroupBox
ListViewListView
TreeViewTreeView
TabTab
More...More...
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow Painter
Window Controls
RitchTextEditRitchTextEdit
DataWindowDataWindow
User ObjectUser Object
HorizontalScrollBarHorizontalScrollBar
VerticalScrollBarVerticalScrollBar
PicturePicture
EditMaskEditMask
Graph ControlGraph Control
OLE ControlOLE Control
Drawing ControlsDrawing Controls
LineLine
RectangleRectangle
OvalOval
CircleCircle
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow Painter
GroupBox Used to make logical groups among RadioButtons
when used for different prompts. Foreground & Background colors can not be
changed.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow Painter
PictureListBox Similar to ListBox with the ability to display a
picture for each item in the ListBox.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow Painter
DropDownPictureListBox Extends DropDownListBox with the ability to
display a picture next to each item in the DDPLB.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow Painter
User Object User Objects are customized PowerBuilder standard
objects or external objects (from third parties). Visual User Object
StandardCustomExternal
ClassStandardCustomC++
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow Painter
Horizontal & Vertical Scrollbars Used as a slider control for users to specify a value on a
continuous scale.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow Painter
Drawing Objects Drawing Objects are used to make better screens and
have no data awareness.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow Painter
PowerBuilder Window
Window Controls
Window Properties
Window Types
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow Painter
PowerBuilder Window
Window Controls
Window Properties
Window Types
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow Painter
Window Types Main MDI Frame MDI Frame with MicroHelp Child Popup Response
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow 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 PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
Window PainterWindow Painter
PowerBuilder Window
Window Controls
Window Properties
Window TypesQuestions? Drop an e-mail at prasad@applied-software.com
The End
top related