Button pallete in Forms 4.0.12

From: Glenn Nicholas <Glenn_at_wplace.demon.co.uk>
Date: Mon, 11 Jul 1994 12:03:01 +0000
Message-ID: <773928181snz_at_wplace.demon.co.uk>


I am having a problem creating a toolbar using Forms 4.0.12 under MS Windows.

The structure of the form is as follows:

Window Canvas Block Contains ROOT_WINDOW TOOLBAR TOOLBAR 12 buttons, each with its own do_key

                                  trigger under when-button-pressed
                                  eg. TOOL1 (Next): do_key('key-nxtrec');
MAIN        PROGRAMS   PROGRAMS   Database block.
MENU_LINES MENU_LINES MENU_LINES Detail block (master is PROGRAMS).

The toolbar buttons are set up as navigable, with mouse navigate off. This matches the way buttons are created for default button palettes.

When the form starts up, the cursor navigates to the programs block. But pressing a button causes:

   FRM 41004: Function key not allowed in this mode.

This applies to all buttons - Exit, Next Record, Commit etc.

According to the debugger, the current MODE is NORMAL (Form status is query, block status is query, record status is query).

By creating default blocks using the default button palette, I can simulate this - and it works just fine. I have checked the status of the system variables, and they are the same (ie. mode NORMAL).

Any ideas?

-- 
Glenn Nicholas, Concept             |   Internet: Glenn_at_wplace.demon.co.uk
Ph: +44 908 221313                  | Compuserve: 100070,3562
Received on Mon Jul 11 1994 - 14:03:01 CEST

Original text of this message