Form_Button_Bitmap - DfBaseForm

Allows you to define the bitmap for a button within your form

Type: Property

Access: Read/Write

Data Type: Integer

Parameters: Integer iItem

ParameterDescription
iItem (Optional)The item number (0 if omitted).


Syntax
 Property Integer Form_Button_Bitmap

Read Access: Get Form_Button_Bitmap [iItem] to IntegerVariable
Write Access: Set Form_Button_Bitmap [iItem] to IntegerVariable/Value


Description

This is a low level interface. If you need a prompt button or a spin button, sub-classes have been provided to support this at a higher level (SpinForm, dbSpinForm, dbForm). You should use Prompt_Button_Mode for this in most cases.

Form_Button allows you to define and place a button within your form. The button will be right justified. This is used in subclasses to create prompt buttons and spin buttons. Form_Button_Bitmap allows you to define a bitmap to display on the button.


Sample

This sample adds 10 rows to a Grid with 2 columns defined. It also instructs the grid to display a prompt button for each item in the 2nd column of the grid and set it's bitmap to MyBitmap.bmp.

Procedure DoFillGrid
    Integer iRow iMaxRows iCount iItemCount

    Move 10 to iMaxRows
    For iRow From 1 To iMaxRows
        Send Add_Item msg_None "John Smith"
        Send Add_Item msg_None ("305-555-1212")

        Get Item_Count to iItemCount
        Set Form_Button (iItemCount-1) to Form_Button_Prompt
        Set Form_Button_Bitmap (iItemCount-1) to "MyBitmap.bmp"
    Loop
End_Procedure

send DoFillGrid


Sample

Object oCustomer_Number is a dbForm
    Entry_Item Customer.Customer_Number
    Set Form_Button_Bitmap 0 to "Prompt.Bmp"
    Set Label to "Customer Number:"
    Set Size to 13 42
    Set Location to 5 72
    Set peAnchors to anTopLeft
    Set Label_Col_Offset to 2
    Set Label_Justification_Mode to jMode_Right
End_Object    // oCustomer_Number