ButtonEnabledMask

 

Type

 

Long Integer (Read-Only)

 

Description

 

This is a runtime-only, read-only bitmask which reflects the enabled or disabled state of the individual toolbar buttons in the toolbar. To get the state of a button, OR this property with these values:

 

HomeButtonMask

&H0001

OpenButtonMask

&H0002

HistoryButtonMask

&H0004

CheckButtonMask

&H0008

SaveButtonMask

&H0010

BackButtonMask

&H0020

ForthButtonMask

&H0040

StopGoButtonMask

&H0080

MovieButtonMask

&H0100

URLButtonMask

&H0200

PrintButtonMaskMask

&H0800

OpenShortcutButtonMask

&H1000

NewShortcutButtonMask

&H2000

CopyButtonMask

&H4000

FindButtonMask

&H8000

 

Example

 

Determine whether the PageBack button is logically enabled (regardless of whether it is visible or not):

 

If (WebsterPro1.ButtonEnabledMask AND &H0020) = &H0020 Then

 

REM PageBack button is enabled, so mine should be too…

 

End If

 

Remarks

 

The enabled states are logical and are maintained identically regardless of the visibility state of the actual toolbar buttons.

 

This property is typically used when the toolbar is hidden and alternate buttons are implemented in the container application. These alternate buttons can then be enabled or disabled based on the state of the corresponding bits in the bitmask, reflecting the state of the toolbar buttons were they visible.

 

Use the TitleWindowStyle property to show or hide the whole Title/Tool Bar or the ButtonMask property to show or hide individual buttons.