audio_form object
This method will return the number of controls currently on the window.
int get_control_count()
Parameters:
None.
Return value:
The control count on success, or 0 on failure.
Remarks:
None.
Example:

    // Make a simple form with a few buttons.

    #include "form.bgt"

    audio_form form;

    void main()
    {
    form.create_window("Example Form", true);
    int ok=form.create_button("OK");
    int cancel=form.create_button("E&xit");
    while(true)
    {
    form.monitor();
    wait(5);
    if(form.is_pressed(ok))
    {
    alert("Information", "There are currently "+form.get_control_count()+" controls on the window.");
    exit();
    }
    if(form.is_pressed(cancel))
    {
    exit();
    }
    if((key_down(KEY_LMENU))&&(key_pressed(KEY_F4)))
    {
    exit();
    }
    }
    }