Re: About enable or disble a button

From: unique <serena.c7_at_gmail.com>
Date: 10 Mar 2007 06:28:43 -0800
Message-ID: <1173536923.456831.199440_at_c51g2000cwc.googlegroups.com>


On Mar 10, 4:33 am, "nick048" <nicosia.gaet..._at_moonsoft.it> wrote:
> Hi to all,
>
> I need Your help on this question:
> In the header of my Form I have a button and a canvas with 3 pages.
> When the form start the button must be disabled and must be activated
> only when I press on the tab 3.
> How can perform this.
>
> Thank You and best regards.
> Gaetano

In the "WHEN-NEW-FORM-INSTANCE" trigger on the form level, put the following code:

set_item_property('button_you_want_disabled", enabled, property_false);

set a "WHEN-TAB-PAGE-CHANGED" trigger to set the item property back to true.
("if var_tab_page = 'tab3' then
set_item_property('button that was disabled', enabled, property_true); end if;") Received on Sat Mar 10 2007 - 15:28:43 CET

Original text of this message