Skip to content

CenterTabWorkspaceView - cDbScrollingClientArea

This is used by the view to determine if it should center tabbed workspace views

Type: Function
Return Data Type: Boolean

Syntax

Function CenterTabWorkspaceView Returns Boolean

Call Example

Get CenterTabWorkspaceView to BooleanVariable

Description

This is used by the view to determine if it should center tabbed workspace views ((pbTabbedWorkspaces = True).

By default, it just returns the cCJCommandBarSystem object's pbCenterTabbedViews property.

By setting this property in in the command bar system object all views will use the same behavior. If, for some reason, you want a specific view to behave differently, you could augment CenterTabWorkspaceView in the scrolling client area object.

Object oSomeView is a dbView
    Set Size to 146 277
    Set piMaxSize to 175 350
    :
    // insert these object before any visual controls are created in the view
    Object oScrollingContainer1 is a cDbScrollingContainer
        Object oScrollingClientArea1 is a cDbScrollingClientArea
            Function CenterTabWorkspaceView Returns Boolean
                Function_Return False // never center this one view
            End_Function
        End_Object
    End_Object
End_Object