data window object 和 control 的基本技術掌握

Upload: toan-hang

Post on 03-Apr-2018

232 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    1/21

    C LEVEL EXAMINATION PREPARATION

    DATA WINDOW OBJECT CONTROL

    (Property),(Event)(Funtion)Share Data

    Drop Down Data Window

    Cc i tng c bn trong POWERBUILDER

    commandButtonPictureButtonsingleLineEdit

    CREATED BY: LE HANG TOAN 1

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    2/21

    C LEVEL EXAMINATION PREPARATION

    MultiLineEditEditMaskRichTextEditCheckBoxRadioButtonStaticTextDropDownListBoxDropDownPictureListBoxListBoxPictureListBoxListViewTreeViewTabDataWindowGraphOLEUserObjectLine

    GroupBox

    Oval

    Rectangle

    RoundRectangle

    WINDOWProperties:

    WindowType:Child!

    Main!MDI!MDIHelp!Popup!Response!

    Toolbarvisible:Title: Specifies the text of the window title.

    Functions:RangeSheets:---Su dung trong MDI frame voi chuc nang sap xep cac cua so trong MDI

    mdiframe.ArrangeSheets ( arrangetype )Voi arrangetype : Cascade!, Layer!, Tile!, TileHorizontal!, Icons!Thidu: w_main.RangeSheets(Cascade!)

    GetActiveSheet:--- Su dung trong MDI frame voi chuc nang tra ve window dang activemdiframewindow.GetActiveSheet ( )

    GetFirstSheet: ---Su dung trong MDI frame voi chuc nang tra ve window dau tienmdiframewindow.GetFirstSheet ( )

    GetNextSheet:mdiframewindow.GetNextSheet ( sheet )

    Show:objectname.Show ( )

    TriggerEvent:

    objectname.TriggerEvent ( event {, word, long } )Events:Active:

    CREATED BY: LE HANG TOAN 2

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    3/21

    C LEVEL EXAMINATION PREPARATION

    Close:CloseQuery:Hide:Open:Show:Timer:

    MENU:Properties:Checked:Enabled:Visible

    Functions:Check:

    menuname.Check ( )Disable:

    menuname.Disable ( )Enable:

    menuname.Enable ( )Hide:

    objectname.Hide ( )Show:

    objectname.Show ( )TriggerEvent:

    objectname.TriggerEvent ( event {, word, long } )Uncheck:

    menuname.Uncheck ( )Events:

    Clicked:Selected:

    USEROBJECTClass:

    Custom:nonvisualobject

    Standard:Standard select type:connectioncontextinformationcontextkeyword

    datastoredynamicdescriptionareadynamicstagingareaerrorinetinternetresultmailsessionmessageoleobjectolestorage

    olestreampipelineprofiling

    CREATED BY: LE HANG TOAN 3

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    4/21

    C LEVEL EXAMINATION PREPARATION

    servicetimingtracetreetransactiontransport

    Visual:Custom:

    Window objectExternal:

    Userobject used DLL name of windowStandard:

    checkboxcommandbuttondatawindowdropdownlistboxdropdownpicturelistbox

    editmaskgraphgroupboxhscrollbarlistboxlistviewmultilineeditolecontrolpicturepicturebutton

    picturelistboxradiobuttonrichtexteditsinglelineeditstatictexttabtreeviewvscrollbar

    Mt s lnh c bn trong lp trnh POWERBUILDER:SetTransObject(sqlca): lnh ny s dng trong i tng datawindow control khi i tng ny

    cha mt datawindow object. Lnh nay cho php datawindow control th hin d liu t CSDLtng ng sau khi gi hm retrieve().Retrieve: Lnh ny i khi c i km theo tham i nu i tng datawindow object c thami.Send:

    Syntax: Send ( handle, message#, lowword, long )Example: Send( Handle(This), 256, 9, long(0,0) )

    Send(Handle(Parent), 273, 0, Handle(cb_OK))Both of the following statements click the CommandButton cb_OK:

    KeyEnter:Datawindow Control: pbm_dwnprocessenterOther object: pbm_keydown

    Keydown:Datawindow Control: pbm_dwnkey

    CREATED BY: LE HANG TOAN 4

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    5/21

    C LEVEL EXAMINATION PREPARATION

    Other object: pbm_keydownProfilestring: Obtains the string value of a setting in the profile file for your application.

    Syntax: ProfileString ( filename, section, key, default )Example: ls_string = ProfileString("C:\PROFILE.INI", "Employee","Name", "None")

    Registrys function:

    + RegistryDelete: Delete a key or value for an entry in the system registry.+ RegistryGet: Get a value for a particular key from the system registry.+ RegistryKeys: Get the subkeys available for a particular key.+ RegistrySet: Set or create a value for particular key in the system registry.+ RegistryValues: Get the set of named values for a particular key.(No effect in W3.1.)

    Call:Syntax: CALL ancestorobject {`controlname}::event { ( argumentlist ) }Example: Call Super::ue_save

    Connect: connect to database.Disconnect:Commit:Rollback:Windows function:Global External function:Local External function:How about create new display format:

    Database Design Display Format Maintenance NewHow about create new Edit styles:

    Database Design Edit Style maintenance NewDATAWINDOW:

    CONTROL:Properties:DataObject:Enabled:Icon:HScrollBar:Visible:VScrollBar:

    Functions:AcceptText: dwcontrol.AcceptText ( )DBErrorCode: dwcontrol.DBErrorCode ( )DBErrorMessage: dwcontrol.DBErrorMessage ( )DeletedCount: dwcontrol.DeletedCount ( )DeleteRow: dwcontrol.DeleteRow ( row )Describe: dwcontrol.Describe ( propertylist )Filter: dwcontrol.Filter ( )FilteredCount: dwcontrol.FilteredCount ( )GetChild: dwcontrol.GetChild ( name, dwchildvariable )GetClickedColumn: dwcontrol.GetClickedColumn ( )GetClickedRow: dwcontrol.GetClickedRow( )GetColumn: dwcontrol.GetColumn( )GetColumnName: dwcontrol.GetColumnName( )

    CREATED BY: LE HANG TOAN 5

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    6/21

    C LEVEL EXAMINATION PREPARATION

    GetItemDate: dwcontrol.GetItemDate ( row, column {, dwbuffer,originalvalue } )

    GetItemDateTime:dwcontrol.GetItemDateTime( row, column {,dwbuffer,originalvalue})

    GetItemDecimal: dwcontrol.GetItemDecimal ( row, column {, dwbuffer,originalvalue } )

    GetItemNumber: dwcontrol.GetItemNumber( row, column {, dwbuffer, originalvalue} )

    GetItemStatus: dwcontrol.GetItemStatus ( row, column, dwbuffer )GetItemString: dwcontrol.GetItemString( row, column {, dwbuffer, originalvalue }

    )GetItemTime: dwcontrol.GetItemTime ( row, column {, dwbuffer,

    originalvalue } )GetRow: dwcontrol.GetRow ( )GetSelectedRow:dwcontrol.GetSelectedRow( row )GetSQLPreview: dwcontrol.GetSQLPreview ( )

    ImportFile:dwcontrol.ImportFile ( filename {, startrow {, endrow {, startcolumn {, endcolumn{, dwstartcolumn } } } } } )ImportString:dwcontrol.ImportString ( string {, startrow {, endrow {, startcolumn {, endcolumn{, dwstartcolumn } } } } } )InsertRow: dwcontrol.InsertRow ( row )Isselected: dwcontrol.IsSelected ( row )ModifiedCount: dwcontrol.ModifiedCount ( )Print: dwcontrol.Print ( { canceldialog } )

    PrintCancel: dwcontrol.PrintCancel ( )ReselectRow: dwcontrol.ReselectRow ( row )Reset:Retrieve: dwcontrol.Retrieve ( {, argument, argument . . . } )RowCount: dwcontrol.RowCount ( )SaveAs: dwcontrol.SaveAs ( { filename, saveastype, colheading } )ScrollNextPage: dwcontrol.ScrollNextPage ( )ScrollNectRow: dwcontrol.ScrollNextRow ( )ScrollPriorPage: dwcontrol.ScrollPriorPage ( )ScrollPriorRow: dwcontrol.ScrollPriorRow ( )

    ScrollToRow: dwcontrol.ScrollToRow ( row )SelectRow: dwcontrol.SelectRow ( row, boolean )SetColumn: dwcontrol.SetColumn ( column )SetFilter: dwcontrol.SetFilter ( format )SetFocus: objectname.SetFocus ( )SetItem: dwcontrol.SetItem ( row, column, value )SetRedraw: objectname.SetRedraw ( boolean )SetRow: dwcontrol.SetRow ( row )SetRowFocusIndicate: dwcontrol.SetRowFocusIndicator ( focusindicator {,

    xlocation {, ylocation } } )

    SetTransObject: dwcontrol.SetTransObject ( transaction )Update: dwcontrol.Update ( { accept {, resetflag } } )

    Events:

    CREATED BY: LE HANG TOAN 6

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    7/21

    C LEVEL EXAMINATION PREPARATION

    clicked: When the user clicks a noneditable field or between fields in theDataWindow control.Return codes:0 - (Default) Continue processing.1 - Stop

    processing.Constructor: Immediately before the Open event occurs in the window.DBError: When a database error occurs in the DataWindow control.Return codes:0 -

    (Default) Display the error message.1 - Do not display the error message.

    Destructor: Immediately after the Close event occurs in the window.DoubleClicked: When the user double-clicks a noneditable field or between fields in

    the DataWindow control.EditChange: When a user types in an edit control in the DataWindown control.Error: When an error is found in a data or property expression for a DataWindow

    object.GetFocus: Just before the DataWindow control receives focus (before it is selected

    and becomes active).ItemChanged: When a field in the DataWindow has been modified and loses focus

    (for example, the user presses ENTER, the TAB key, or an arrow key or clicks the

    mouse on another field within the DataWindow).Return codes:0 - (Default) Acceptthe data value.1 - Reject the data value and don't allow focus to change.2 - Rejectthe data value but allow focus to change.

    ItemError: When a field has been modified, the field loses focus (for example, theuser presses ENTER, TAB, or an arrow key or clicks the mouse on another field),and the field does not pass the validation rules for its column.Return codes:0 -(Default) Reject the data value and show an error message box.1 - Reject the datavalue with no message box.2 - Accept the data value.3 - Reject the data value butallow focus to change.If the Return code is 0 or 1 (rejects the data), the field withthe incorrect data regains the focus.

    ItemFocusChanged: When the current item in the control changes.PrintEnd: When the printing of the DataWindow ends.PrintPage: Before each page of the DataWindow is formatted for printing.Return

    codes:0 - Do not skip a page.1 - Skip a page.PrintStart: When the printing of the DataWindow startsRButtonDown: When the right mouse button is pressed on the control.RetrieveEnd: When the retrieval for the DataWindow is complete.RetrieveRow: After a row has been retrieved. Return codes:0 - (Default) Continue.1 -

    Stop the retrieval.RetrieveStart: When the retrieval for the DataWindow is about to begin.Return

    codes:0 - (Default) Continue.1 - Do not perform the retrieval.2 - Do not reset the

    rows and buffers before retrieving the data from the database.RowFousChanged: When the current row changes in the DataWindow.UpdateEnd: When all the updates from the DataWindow to the database are

    complete.UpdateStart:After an Update function call and just before changes in the

    DataWindow are sent to the database.Return codes:0 - (Default) Continue.1 - Donot perform the update

    OBJECT:Datawindow painter functions:

    Aggregate: Use these functions in expressions in DataWindow objects and

    InfoMaker reports. You might use them for filters, validation rules, or computedfields.Avg Count CumulativePercentCumulativeSum First Large

    CREATED BY: LE HANG TOAN 7

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    8/21

    C LEVEL EXAMINATION PREPARATION

    Last Max MedianMin Mode PercentSmall StDev StDevPSum Var VarP

    Crosstab: Use these functions in expressions in DataWindow objects and InfoMakerreports. You might use them for filters, validation rules, or computed fields.

    CrosstabAvg CrosstabCount CrosstabMaxCrosstabMin CrosstabSumData type checking and conversion: Use these functions in expressions inDataWindow objects and InfoMaker reports. You might use them for filters,validation rules, or computed fields.

    Asc Char Integer IsDate IsNull IsNumber IsTime Long Number

    Datawindow information: Use these functions in expressions in DataWindow objectsand InfoMaker reports. You might use them for filters, validation rules, or computedfields.

    CurrentRow Describe GetRowGetText IsRowModified IsRowNewIsSelected LookUpDisplay PagePageAcross PageCount PageCountAcrossRowCount RowHeight

    Day, date and time: Use these functions in expressions in DataWindow objects andInfoMaker reports. You might use them for filters, validation rules, or computedfields.

    Date DateTime DayDayName DayNumber DaysAfter Hour Minute Month

    Now RelativeDate RelativeTimeSecond SecondsAfter TimeToday Year

    Miscellaneous: Use these functions in expressions in DataWindow objects andInfoMaker reports. You might use them for filters, validation rules, or computedfields.

    Bitmap Case If ProfileInt ProfileString RGB

    Numeric: Use these functions in expressions in DataWindow objects and InfoMakerreports. You might use them for filters, validation rules, or computed fields.

    Abs Ceiling CosExp Fact IntLog LogTen MaxMin Mod PiRand Round SignSin Sqrt TanTruncate

    String: Use these functions in expressions in DataWindow objects and InfoMakerreports. You might use them for filters, validation rules, or computed fields.

    Fill Left LeftTrimLen Lower Match

    Mid Pos ReplaceRight RightTrim SpaceString Trim Upper

    CREATED BY: LE HANG TOAN 8

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    9/21

    C LEVEL EXAMINATION PREPARATION

    WordCapData Expressions:

    The Object property of the DataWindow control lets you specify expressions that referdirectly to the data of the DataWindow object in the control. This direct datamanipulation allows you to access small and large amounts of data in a single statement,without calling functions.

    There are several variations of data expression syntax, divided into three groups. Thissection summarizes the syntax for the three groups. The syntaxes are described in detaillater in this chapter.Data in columns or computed fields when you know the nameOne or all items in the column (if rownum is absent, include either buffer or datasource)dwcontrol.Object.columnname {.buffer } {.datasource } { [ rownum ] }

    Returns a single value (for a specific row number) or an array of values (when rownumis omitted).See One or all items in a named column or computed field .Selected items

    dwcontrol.Object.columnname {.Primary }{.datasource }.Selected

    Returns an array of values with an array element for each selected row.See Items in the column from selected rows .Range of itemsdwcontrol.Object.columnname {.buffer } {.datasource } [startrownum, endrownum ]

    Returns an array of values with an array element for each row in the range.

    See Items from a range of rows in a column or computed field .Data in numbered columnsSingle itemsdwcontrol.Object.Data {.buffer } {.datasource } [ rownum, colnum ]

    Returns a single item whose data type is the data type of the column.See Single items .Blocks of data involving a range of rows and columnsdwcontrol.Object.Data {.buffer } {.datasource } [startrownum,startcolnum, endrownum,endcolnum ]

    Returns an array of structures or user objects. The structure elements match the columns

    in the range. There is one array element for each row in the range.See A block of rows and columns .Whole rowsSingle row or all rowsdwcontrol.Object.Data {.buffer } {.datasource } { [ rownum ] }

    Returns one structure or user object (for a single row) or an array of them (for all rows).The structure elements match the columns in the DataWindow object.See Single rows or all rows .Selected rowsdwcontrol.Object.Data {.Primary } {.datasource } .Selected

    Returns an array of structures or user objects. The structure elements match the columnsin the DataWindow object. There is one array element for each selected row.

    CREATED BY: LE HANG TOAN 9

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    10/21

    C LEVEL EXAMINATION PREPARATION

    See Selected rows .Summary of syntaxes

    This diagram summarizes the variations in data expression syntax:

    For information about getting and setting values of DataWindow object properties using

    a similar syntax, see Basic syntax and Syntax for nested objects .Property Expressions:DataWindow property expressions use dot notation to specify the objects, objects withinobjects, and properties that you want to access.Syntaxdwcontrol.Object.dwobjectname {.Object.dwobjectnameproperty } {.propertyvalue }{ = value }Argument DescriptiondwcontrolThe name of the DataWindow control or child DataWindow in which youwant to get or set propertiesObjectObject indicates that subsequent elements refer to the object within dwcontrol or

    dwobjectnamedwobjectnameAn object within the DataWindow. Possible values are DataWindow (for

    properties that apply to the whole DataWindow) or the name of a bitmap, column,computed field, graph, line, oval, rectangle, round rectangle, report, TableBlob, or textobjectIf dwobjectname is a column with the DropDownDataWindow style, a reportobject, or an OLE object, you can specify another Object keyword and dwobjectname torefer to properties of objects within the nested object. You can specifyObject.dwobjectname as many times as needed to refer to a deeply nested reportFornested syntax, see "Syntax for nested objects"dwobjectnamepropertyA property that applies to dwobjectname. If the property requiresadditional qualifying properties, list the additional properties, separating them with adotFor lists of applicable properties, see the Property tables at the beginning of Chapter5, "DataWindow Object Properties"valueA string whose value is to be assigned to the propertyAlthough value is stored as astring, if the property value is a number value can either be a string whose value is anumber or a numeric data type. The value is stored as a stringIf the property value is ayes or no value, value can be either a string whose value is "yes" or "no" or a booleanvalue (TRUE or FALSE). The value is stored as "yes" or "no" stringsIf the propertyvalue can be an expression, then value can be a string that takes the form:defaultvalue~tDataWindowpainterexpressionwhere:?Defaultvalue is any value that is allowed for

    property?DataWindowpainterexpression is an expression that can include names of

    objects in the DataWindow and DataWindow painter functions?Defaultvalue andDataWindowpainterexpression are separated by a tab character (~t)For examples ofDataWindow painter expressions, see "Using DataWindow painter expressions"Return valueAny. The data type of the value is string.For more information about the expression's data type, see .ExamplesExample 1. In this statement, the boolean value FALSE is stored as the string "no":dw_1.Object.DataWindow.ReadOnly = FALSE

    This statement displays the value of the ReadOnly property (either "yes" or "no") in the

    StaticText st_status:st_status.Text = dw_1.Object.DataWindow.ReadOnly

    CREATED BY: LE HANG TOAN 10

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    11/21

    C LEVEL EXAMINATION PREPARATION

    When you test the value of a property in a relational expression, you must compare yourtest value to the stored values. For ReadOnly, stored values are yes or no, not booleanTRUE or FALSE:IF dw_1.Object.DataWindow.Readonly = 'yes' THENThis statement fails because the expression is not boolean:IF dw_1.Object.DataWindow.Readonly THEN // Not valid

    Example 2. Valid values for the Visible property are 0 and 1. You can set the property tonumbers, yes and no, or TRUE and FALSE. Therefore, these three statements areequivalent:dw_1.Object.street.Visible = FALSEdw_1.Object.street.Visible = "NO"dw_1.Object.street.Visible = 0

    Example 3. This example tests whether the X property contains a constant (which canbe converted to a number) or a DataWindow painter expression. A default value of 50 isspecified if the property contains an expression the script can't convert:

    integer li_xIF IsNumber( dw_1.Object.id.X ) THEN

    li_x = Integer( dw_1.Object.id.X )ELSE

    li_x = 50END IF

    Example 4. This script sets the X property to a DataWindow painter expression. Theexpression indents ID values for IDs less than 10:string modstring, ls_xls_x = "50"modstring = ls_x + "~t" + "If(id > 10, " + ls_x + "," + String(li_x + 20 ) + ")"dw_1.Object.id.X = modstring

    Example 5. This example makes three columns updatable and reports the value of theUpdate property in the StaticText st_status. The reported value is "yes," not TRUE:dw_1.Object.id.Update = TRUEdw_1.Object.street.Update = TRUEdw_1.Object.last_name.Update = TRUEst_status.Text = "Updateable: id " + dw_1.Object.id.Update + ", street " + &

    dw_1.Object.street.Update + ", last_name " + dw_1.Object.last_name.Update

    Example 6. This example checks whether the id column is set up as a spin control. If so,it sets the spin range to 0 through 10:IF dw_1.Object.id.EditMask.Spin = "yes" THEN

    dw_1.Object.id.EditMask.SpinRange = "0~~~~10"END IF

    Datawindow Object Properties:A subset of the properties can be used with the SyntaxFromSQL function to generateDataWindow source code. You can use that code in the Create function to create newDataWindows.The following topics list the properties for each object within the DataWindow and for

    keywords for SyntaxFromSQL.

    Objects

    CREATED BY: LE HANG TOAN 11

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    12/21

    C LEVEL EXAMINATION PREPARATION

    Bitmap:An x in the M (Modify) column means you can change the property. When (exp ) isincluded in the description, you can specify a DataWindow painter expression asthe value for that property.Property for a Bitmap M

    Description

    Attributes A list of the properties of the bitmapBand The band containing the bitmapBorder x (exp ) The type of border around the

    bitmapFilename x (exp ) The file containing the bitmapHeight x (exp ) The height of the bitmapHideSnaked x Whether the object appears once per

    page when printing newspaper columnsInvert x (exp ) Whether the colors are displayedinvertedMoveable x Whether the user can move the bitmap

    Name The name of the bitmap objectPointer x (exp ) The pointer image when it isover the bitmapResizeable x Whether the user can resize the bitmapSlideLeft x (exp ) Whether the bitmap moves leftto fill in empty spaceSlideUp x (exp ) How the bitmap moves up to fillin empty spaceTag x (exp ) The tag text for the bitmapType The object's type, which is bitmapVisible x (exp ) Whether the bitmap object isvisibleWidth x (exp ) The width of the bitmapX x (exp ) The x coordinate of the bitmapY x (exp ) The y coordinateof the bitmap

    Button:An x in the M (Modify) column means you can change the property. When (exp ) isincluded in the description, you can specify a DataWindow painter expression asthe value for that property.Property for a Button M

    DescriptionAction x (exp ) The action a user can assign tothe buttonAttributes A list of the properties of the buttonobjectBackground.property x (exp ) Background settings for the

    button objectBand The band containing the button objectColor x (exp ) The text color DefaultPicture x Whether or not the action's default

    picture is to be used on the button (user defined action has no picture)

    Font.property x (exp ) Font settings for the textHTextAlign x (exp ) How the text in the button ishorizontally aligned. Values are: 0 (center), 1 (left), 2 (right)

    CREATED BY: LE HANG TOAN 12

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    13/21

    C LEVEL EXAMINATION PREPARATION

    Height x (exp ) The height of the button objectHideSnaked x Whether the button object appears once

    per page when printing newspaper columnsMoveable x Whether the user can move the buttonobject

    Name The name of the button object

    PictureName x (exp ) Name of the file containing thepicture to be used on the button (if not specified, just the text is used)Pointer x (exp ) The pointer image when it isover the button objectResizeable x Whether the user can resize the buttonobjectSlideLeft x (exp ) Whether the button object movesleft to fill in empty spaceSlideUp x (exp ) How the button object moves upto fill in empty spaceSuppressEventProcessing x Whether or not ButtonClicked and

    ButtonClicking events are fired for this particular buttonTag x (exp ) The tag text for the button objectText x (exp ) The displayed textType The object's type, which is buttonVTextAlign x (exp ) How the text in the button isvertically aligned. Values are: 0 (center), 1 (top), 2 (bottom), 3 (multiline)Visible x (exp ) Whether the button object isvisibleWidth x (exp ) The width of the button objectX x (exp ) The x coordinate of the buttonobjectY x (exp ) The y coordinate of the buttonobject

    Column:An x in the M (Modify) column means you can change the property. An x in the Scolumn means you can use the property with SyntaxFromSQL. When (exp ) isincluded in the description, you can specify a DataWindow painter expression asthe value for that property.Property for a Column M

    SDescriptionAccelerator x (exp ) The accelerator key for

    the columnAlignment x (exp ) The alignment of thecolumn's textAttributes A list of the properties of thecolumnBackground.property x x (exp ) Background settings for the columnBand The band containing the columnBitmapName Whether the column's contentsnames a bitmap that will be displayed instead of the textBorder x x (exp ) The type of border

    around the columnCheckBox.property x Settings for CheckBox editstyle

    CREATED BY: LE HANG TOAN 13

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    14/21

    C LEVEL EXAMINATION PREPARATION

    Color x x (exp ) The text color ColType The column's data typeCriteria.property x Settings for column in Promptfor Criteria dialog boxdbName x The name of the databasecolumn

    dddw.property x Settings for DropDownDataWindow edit styleddlb.property x Settings for DropDownListBoxedit styleEdit.property x x Settings for Edit edit styleEditMask.property x Settings for EditMask edit styleFont.property x x (exp ) Font settings for thecolumn textFormat x (exp ) The column's displayformatHeight x (exp ) The height of the column

    Height.AutoSize x Whether column height isadjusted to fit the dataHideSnaked x Whether the object appearsonce per page when printing newspaper columnsIdentity x Whether the DBMS sets thecolumn's valueID The number of the columnInitial x The initial value in the columnfor a new rowKey x Whether column is part of thetable's primary keyLineRemove x Whether to remove line of textwhen the column is not visibleMoveable x Whether the user can move thecolumnMultiline x Whether the column can bemultiline

    Name The name of the columnPointer x (exp ) The pointer's image whenit is over columnProtect x (exp ) Whether column is

    protected from changesRadioButtons.property x Settings for RadioButton editstyleResizeable x Whether the user can resize thecolumnSlideLeft x (exp ) Whether column movesleft to fill in spaceSlideUp x (exp ) How the column movesup to fill in spaceTabSequence x The position of the column inthe tab order

    Tag x (exp ) The tag text for thecolumnType The object's type, which is

    CREATED BY: LE HANG TOAN 14

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    15/21

    C LEVEL EXAMINATION PREPARATION

    ColumnUpdate x Whether the column isupdatableValidation x (exp ) The validation expressionfor the columnValidationMsg x (exp ) The message displayed

    when validation failsValues (for columns) x The values in the column's codetableVisible x (exp ) Whether the columnobject is visibleWidth x (exp ) The width of the columnWidth.Autosize x Whether width adjusts to thedataX x (exp ) The x coordinate of thecolumnY x (exp ) The y coordinate of the

    columnComputed field:

    An x in the M (Modify) column means you can change the property. When (exp ) isincluded in the description, you can specify a DataWindow painter expression asthe value for that property.Property for a computed field M

    DescriptionAlignment x (exp ) The alignment of the computedfield's textAttributes A list of the properties of the computedfieldBackground.property x (exp ) Background settings for thecomputed fieldBand The band containing the computedfieldBorder x (exp ) The type of border around thecomputed fieldColor x (exp ) The text color ColType The column's data typeExpression x The expression for the computed fieldFooter.property x (exp ) Font settings for the computed

    fieldFormat x (exp ) The computed field's displayformatHeight x (exp ) The height of the computed fieldHeight.AutoSize x Whether the computed field's height isadjusted to fit the dataHideSnaked x Whether the object appears once per

    page when printing newspaper columnsLineRemove x Whether to remove line of text whenthe computed field is not visibleMoveable x Whether the user can move the

    computed fieldMultiline x Whether the column can be multilineName The name of the computed field

    CREATED BY: LE HANG TOAN 15

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    16/21

    C LEVEL EXAMINATION PREPARATION

    Pointer x (exp ) The pointer image when it isover the computed fieldResizeable x Whether the user can resize thecomputed fieldSlideLeft x (exp ) Whether the computed fieldmoves left to fill in space

    SlideUp x (exp ) How the computed field movesup to fill in empty spaceTag x (exp ) The tag text for the computedfieldType The object's type, which is ComputeVisible x (exp ) Whether the computed fieldobject is visibleWidth x (exp ) The width of the computed fieldWidth.Autosize x Whether width adjusts to the dataX x (exp ) The x coordinate of thecomputed field

    Y x (exp ) The y coordinate of thecomputed field

    DataWindow:An x in the M (Modify) column means you can change the property. An x in the Scolumn means you can use the property with SyntaxFromSQL.When (exp ) isincluded in the description, you can specify a DataWindow painter expression asthe value for that property.Property for the DW M

    SDescriptionAttributes All general propertiesBands List of bandsBandname.property x Color, height, and so on for a

    band, where bandname is Detail, Footer, Header, Summary, or TrailerBandname.Text x Rich text content where

    bandname is Detail, Footer, or HeaderColor x x Background color Column.Count Number of columnsCrosstab.property x Settings for a crosstabDataWindowData Description of dataData.HTMLTable Description of the data in the

    DataWindow in HTML table formatDetail.property x Color, height, and so on for thedetail bandEditMask.property x Settings for EditMask edit styleFirstRowOnPage The row number of the firstdisplayed rowFont.Bias x Treat fonts as display or printer Footer.property x Color, height, and so on for thefooter band (see Bandname.property in this table)Grid.ColumnMove x Whether the user can drag toreposition columns

    Grid.Lines x Options for lines in gridDataWindow and crosstabHeader.#.property x Color, height, and so on for a

    CREATED BY: LE HANG TOAN 16

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    17/21

    C LEVEL EXAMINATION PREPARATION

    group's header bandHeader.property x Color, height, and so on for theheader bandHelp.property x Help settings for DataWindowactionsHorizontalScrollMaximum Width of scroll box in the

    horizontal scrollbarHorizontalScrollMaximum2 Width of second scroll boxwhen scrollbar is splitHorizontalScrollPosition x Position of the scroll box in thescrollbarHorizontalScrollPosition2 x Position of scroll box in secondsplit scrollbarHorizontalScrollSplit x The position of the split in thescrollbarHTMLTable.property x Settings for the display of DataWindow data when displayed in HTML table format

    Label.property x x Settings for the Labelpresentation styleLastRowOnPage The last visible row on the pageMessage.Title x x The title of the dialog box thatdisplays errors

    Nested Whether the DataWindow hasnested reportsObjects The objects in the DataWindowOLE.Client.property x Settings for the DataWindow asOLE clientPointer x (exp ) The pointer when over the DataWindowPrint.Buttons x Whether buttons display on the

    printed outputPrint.Preview.Buttons x Whether buttons display in print

    previewPrint.property x x Various settings for printingPrinter The currently selected printer Processing Processing required by the

    presentation styleQueryMode x Whether the DataWindow is in

    query modeQuerySort x Whether to sort the result setfrom the queryReadOnly x Whether the DataWindow isread-onlyRetrieve.AsNeeded x Whether to retrieve data only asneededRichText.property x Settings for a RichTextDataWindowRow.Resize x Whether user can change theheight of rows

    Rows_Per_Detail x Number of rows in each columnof N-Up styleSelected x List of selected objects

    CREATED BY: LE HANG TOAN 17

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    18/21

    C LEVEL EXAMINATION PREPARATION

    Selected.Data List of selected dataSelected.Mouse x Whether user can use the mouseto selectShowDefinition x (exp ) Display column namesinstead of dataSparse x (exp ) The repeating columns to

    be suppressedStorage The amount of storage used byDataWindowSummary.property x Color, height, and so on for thesummary bandSyntax The syntax of the DataWindowSyntax.Data The data of the DataWindow in

    parse formatSyntax.Modified x Whether the syntax has beenmodifiedTable.property x Various settings for the database

    Timer_Interval x x The milliseconds between timer eventsTrailer.#.property x Color, height, and so on for agroup's trailer bandUnits x The unit of measure for theDataWindowVerticalScrollMaximum The height of the scroll box inthe scrollbarVerticalScrollPosition x The position of the scroll box inthe scrollbarZoom x The scaling percentage of theDataWindow

    Graph:An x in the M (Modify) column means you can change the property. When (exp ) isincluded in the description, you can specify a DataWindow painter expression asthe value for that property.Property for a Graph M

    DescriptionAttributes A list of the properties of the graphAxis x (exp ) List of items (categories, series,or values) for the axis

    Axis.property x (exp ) Properties for a graph axisAxis.DispAttr x (exp ) Display properties for an axis(see DispAttr.fontproperty in this table)BackColor x (exp ) The background color of thegraphBand The band containing the graphBorder x (exp ) The type of border around thegraphCategory x (exp ) List of categories for the axis(see Axis in this table)Category.property x (exp ) Properties for the Category axis

    (see Axis.property in this table)Category.DispAttr x (exp ) Display properties for theCategory axis (see DispAttr.fontproperty in this table)

    CREATED BY: LE HANG TOAN 18

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    19/21

    C LEVEL EXAMINATION PREPARATION

    Color x (exp ) The text color Depth x (exp ) The depth of a 3D graphDispAttr.fontproperty x Font settings for various components of the graphElevation x (exp ) The elevation of a 3D graphGraphType x (exp ) The type of graph (pie, bar, and

    so on)Height x (exp ) The height of the graphHideSnaked x Whether the object appears once per

    page when printing newspaper columnsLegend x (exp ) The location of the legendLegend.DispAttr.fontproperty x (exp ) Display properties for the legendMoveable x Whether the user can move the graph

    Name The name of the graph objectOverlapPercent x (exp ) The overlap between datamarkers in different seriesPerspective x (exp ) The distance of the graph from

    the front of the windowPie.DispAttr.fontproperty x (exp ) Display properties for the pieslice labelsPointer x (exp ) The pointer image when it isover the graphRange The rows in the DataWindow that areincluded in the graphResizeable x Whether the user can resize the graphRotation x (exp ) The left-to-right rotation of a 3DgraphSeries x (exp ) List of series for the axis (seeAxis in the table)Series.property x (exp ) Properties for the Series axis(see Axis.property in this table)Series.DispAttr x (exp ) Display properties for the Seriesaxis (see DispAttr.fontproperty in this table)ShadeColor x (exp ) The color of the back edge for 3D data markersSizeToDisplay x (exp ) Whether to size the graph to thedisplay areaSlideLeft x (exp ) Whether the graph moves left to

    fill in empty spaceSlideUp x (exp ) How the graph moves up to fillin empty spaceSpacing x (exp ) The gap between categoriesTag x (exp ) The tag text for the graphTitle x (exp ) The graph's titleTitle.DispAttr.fontproperty x(exp ) Display properties for the titleType The object's type, which is graphValues x (exp ) List of values for the axis (seeAxis in the table)Values.property x (exp ) Properties for the Values axis

    (see Axis.property in the table)Values.DispAttr x (exp ) Display properties for the Valuesaxis (see DispAttr.fontproperty in the table)

    CREATED BY: LE HANG TOAN 19

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    20/21

    C LEVEL EXAMINATION PREPARATION

    Visible x (exp ) Whether the graph object isvisibleWidth x (exp ) The width of the graphX x (exp ) The x coordinate of the graphY x (exp ) The y coordinateof the graph

    GroupBoxLineOval, Rectangle, and RoundRectangleReport:

    An x in the M (Modify) column means you can change the property. When (exp ) isincluded in the description, you can specify a DataWindow painter expression asthe value for that property.Property for a Report M

    DescriptionAttributes A list of the properties of the reportBand The band containing the report

    Border x (exp ) The type of border around thereportCriteria x The WHERE clause that relates thereport to the main DataWindowDataObject x The name of the DataWindow that isthe nested reportHeight x (exp ) The height of the reportHideSnaked x Whether the object appears once per

    page when printing newspaper columnsMoveable x Whether the user can move the report

    Name The name of the Report objectNest_Arguments x Retrieval arguments for the reportNewPage (Report objects) x Whether to start the report on a newpage (composite only)Pointer x (exp ) The pointer image when it isover the reportResizeable x Whether the user can resize the reportSlideLeft x (exp ) Whether the report moves left tofill in empty spaceSlideUp x (exp ) How the report moves up to fillin empty space

    Tag x (exp ) The tag text for the reportTrail_Footer x Where to print the footer (compositeonly)Type The object's type, which is reportVisible x (exp ) Whether the Report object isvisibleWidth x (exp ) The width of the reportX x (exp ) The x coordinate of the reportY x (exp ) The y coordinate of the report

    TableBlobText

    KeywordsGroup:

    CREATED BY: LE HANG TOAN 20

  • 7/28/2019 DATA WINDOW OBJECT CONTROL

    21/21

    C LEVEL EXAMINATION PREPARATION

    You can use these properties with SyntaxFrom SQL.Property Description

    NewPage (Group keywords) Whether a change in a group column's value causes apage breakResetPageCount Whether a new value in a group column restarts pagenumbering

    Style:You can use these properties with SyntaxFromSQL.Property DescriptionDetail_Bottom_Margin Bottom margin of the detail areaDetail_Top_Margin Top margin of the detail areaHeader_Bottom_Margin Bottom margin of the header areaHeader_Top_Margin Top margin of the header areaHorizontal_Spread Horizontal space between columnsin the detail areaLeft_Margin The left margin of the DataWindowReport Whether the DataWindow is a read-

    only reportType The presentation styleVertical_Size The height of the columns in thedetail areaVertical_Spread The vertical space between columnsin the detail area

    Title:

    CREATED BY LE HANG TOAN 21