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

Window Painter

  • Upload
    sorley

  • View
    145

  • Download
    0

Embed Size (px)

DESCRIPTION

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. - PowerPoint PPT Presentation

Citation preview

Page 1: Window Painter

PowerBuilder Online Courses - by Prasad PowerBuilder Online Courses - by Prasad

BodepudiBodepudi

Window PainterWindow Painter PowerBuilder Window

Window Controls

Window Properties

Window Types

Page 2: Window Painter

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.

Page 3: Window Painter

PowerBuilder Online Courses - by Prasad PowerBuilder Online Courses - by Prasad

BodepudiBodepudi

Window PainterWindow Painter PowerBuilder Window

Window Controls

Window Properties

Window Types

Page 4: Window Painter

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...

Page 5: Window Painter

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

Page 6: Window Painter

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)

Page 7: Window Painter

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)

Page 8: Window Painter

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)

Page 9: Window Painter

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.

Page 10: Window Painter

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.

Page 11: Window Painter

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).

Page 12: Window Painter

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).

Page 13: Window Painter

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.

Page 14: Window Painter

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.

Page 15: Window Painter

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).

Page 16: Window Painter

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.

Page 17: Window Painter

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).

Page 18: Window Painter

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.

Page 19: Window Painter

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.

Page 20: Window Painter

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.

Page 21: Window Painter

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.

Page 22: Window Painter

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.

Page 23: Window Painter

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++

Page 24: Window Painter

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.

Page 25: Window Painter

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.

Page 26: Window Painter

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.

Page 27: Window Painter

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.

Page 28: Window Painter

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.

Page 29: Window Painter

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.

Page 30: Window Painter

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

Page 31: Window Painter

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.

Page 32: Window Painter

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

Page 33: Window Painter

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

Page 34: Window Painter

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.

Page 35: Window Painter

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.

Page 36: Window Painter

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.

Page 37: Window Painter

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.

Page 38: Window Painter

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.

Page 39: Window Painter

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.

Page 40: Window Painter

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 [email protected]

The End