Visual InterDev
Determines which buttons display images and which buttons display text.
Syntax
object.getButtonStyles(nStyles)
Parameters
Object
A RecordsetNavbar script object.
nStyles
An integer that is the sum of the button styles.
Remarks
The setButtonStyles method uses a single value to indicate the styles for all four buttons. The value of nStyles is a sum of the values listed below.
Value | Style Description |
1 | First button displays a text caption. |
2 | First button displays an image. |
4 | Previous button displays a text caption. |
8 | Previous button displays an image. |
16 | Next button displays a text caption. |
32 | Next button displays an image. |
64 | Last button displays a text caption. |
128 | Last button displays an image. |
To return a value that indicates which buttons display images and which buttons display text, see getButtonStyles.
Example
The following line uses the value 85 to set all four buttons as buttons that display text. 85 is the sum of 1+4+16+64.
RecordsetNavbar1.setButtonStyles(85)