Progress
AppBuilder
Developer’s Guide
Configuring a Basic Data Browser Instance
You can make a number of changes to the appearance and behavior of your basic Browse object, if the default settings in the property sheet do not meet your needs.
Click on the object to select it, if necessary, and choose Tools
Property Sheet. The Property Sheet dialog box opens:
![]()
Minimal Configuration
Although you can accept many of the default settings, you might wish to make two changes to individualize this object:
Query and Fields
If the Query and Fields buttons are visible, it means you can edit those elements using Query Builder and Column Editor rather than the Section Editor. If the buttons are not visible, you must use the Section editor, and the balance of this section does not apply to this Browse.
Since the query is local to this Browse, rather than in a separate module, you can make changes both to the terms of the query and to the fields the Browse will display.
CAUTION: If you lock more columns than will fit in the Browse’s window, you effectively disable the horizontal scroll bar.
- Choosing the Query button will start Query Builder and allow you to modify the terms of the query. See the "Defining and Editing Queries Using Query Builder" section in "Data-access Objects," for more information.
- Choosing the Fields button will start Column Editor and allow you to modify the columns this SmartDataBrowser will display. For information about how to use Column Editor, see the "Selecting Database Fields for Browsing" section in Data-access Objects."
- By default, all columns can be scrolled horizontally, if there are too many columns to display at once. You can choose to lock the leftmost columns in place, so that scrolling does not affect them. Enter in the Locked Columns box the number of columns you want to freeze in place.
- When displaying a vertical scroll bar, the system tries to size the scroll bar’s thumb slider to reflect the total number of lines in the data stream. Ideally, the size of the thumb varies inversely with the number of lines (records). In general, the number of records being returned by a query will be larger than the number of lines that can be buffered and, when that is the case, the system cannot begin to correctly size the thumb. If you have a good idea about the total number of records in this data stream, you can improve the accuracy of the scroll bar’s appearance. Enter your estimate in the Max Data Guess field.
- Type into the Tooltip field the identifying text that you want the system to display whenever the mouse cursor hovers over this Browse.
Geometry
You can set the exact XY origin (relative to the containing Frame) and size of this Browse instance. Set the values, in character units, in the appropriate fields. You can choose whether the origin is measured at the upper-left corner (the default) or the upper-right corner.
If you would prefer to use pixels rather than character units, choose the Advanced button and set the values using that dialog box instead.
Miscellaneous Properties (Other Settings)
You can make a number of changes to the appearance and behavior of this Browse instance, if the default settings do not meet your needs:
- Column Scrolling — Normally set. Clearing this check box causes the horizontal scrolling granularity to be one character. The default is one field (column). This option applies only when running under MS-Windows.
- Drop Target — Normally cleared. Setting this check box causes the system to generate an event when the user drags and drops another object onto this one. You must write code to deal with that event.
- Enable — Normally set. Clearing this check box causes the Browse to be insensitive.
- Expandable — Normally set. Clearing this check box prevents stretching the last column to cover any background exposed by scrolling. In general, when Column Scrolling is set, and the Browse window is scrolled all the way to the right, some background will be exposed because it is unlikely that the last n columns will exactly fit the Browse window width. When this option is set, the last column expands cosmetically to the right to mask any exposed background from view. Applies only when running under MS-Windows.
- Hidden — Normally cleared. Setting this check box prevents implicit display of the object.
- Multiple Selection — Normally cleared. Setting this check box allows the user to select multiple rows. If any of the fields are updatable, you must also clear the No Row Markers check box.
- No Assign — Normally cleared. When set, changes to updatable fields are not automatically written back to the database when the user moves to a different row (record).
- No Box — Normally cleared. Setting this check box causes the Browse window to display without a border. Under MS-Windows, this border is a single-pixel black line.
- No Labels — Normally cleared. Setting this check box prevents display of the column labels.
- No Tab Stop — Normally cleared. Setting this check box removes the Browse instance from the TAB-traversal list for the containing Frame. Under MS-Windows, removing the object from the traversal list has some effects that might confuse the user.
- No Validate — Normally cleared. Setting this check box disables all validation conditions specified in the Data Dictionary for fields in this Browse.
- Open the Query — Normally set. Setting this check box activates the query and populates the fields during initialization.
- scroll bar Vertical — Normally set. Clearing this option hides the vertical scroll bar. The user can still scroll using the arrow keys.
- Separators — Normally set. Clearing this check box causes the widget to paint itself without lines separating the rows and columns.
- Title Bar — Normally cleared. Setting this check box causes the Browse widget to display a full-width Frame-like title bar. Specify the title string if you set this option.
Advanced Properties
Choose the Advanced button. The Advanced Properties dialog box opens:
![]()
You can make a number of changes to the Browse’s appearance and behavior by changing the default settings in this dialog box:
- Help — The text in this field is displayed in the status bar of the parent window when the Browse has the focus. If the parent window has no status area, this text never displays.
- Private Data — AppBuilder writes the contents of this field out as the value of the PRIVATE–DATA attribute. You can write code to use this data in any way that meets your needs.
- Generated Code Layout Unit — Controls whether AppBuilder describes the position and size of this Browse in character or pixel units, when it generates source code.
- Geometry — Expresses the origin and size of this widget in pixels. You can set a particular origin and size for the object here rather than interactively, if you wish. You can also choose to have the origin be measured at the upper-right rather than the upper-left corner.
- Column Movable — Normally cleared. Setting this check box allows the user to reorder the columns by dragging. Such reordering is cosmetic and has no effect on the actual record.
- Column Resizable — Normally cleared. Setting this check box allows the user to resize the columns interactively. Resizing the column has no effect on the actual field widths.
- Column Searching — Normally cleared. Setting this check box allows the user to search on a selected column (field).
- Movable — Normally cleared. Setting this check box, together with the Selectable box, allows the user to move the entire Browse object around within the bounds of the enclosing Frame.
- Resizable — Normally cleared. Setting this check box, together with the Selectable box, allows the user to change the size of the Browse object, within the limits of the enclosing Frame.
- Row Resizable — Normally cleared. Setting this check box allows the user to change the vertical size (height) of the rows by dragging a horizontal separator line.
- Selectable — Normally cleared. Setting this check box allows the use to select the Browse object.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |