dbTalk Databases Forums  

About enable or disble a button

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss About enable or disble a button in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nick048
 
Posts: n/a

Default About enable or disble a button - 03-10-2007 , 02:33 AM






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


Reply With Quote
  #2  
Old   
unique
 
Posts: n/a

Default Re: About enable or disble a button - 03-10-2007 , 08:28 AM






On Mar 10, 4:33 am, "nick048" <nicosia.gaet... (AT) moonsoft (DOT) it> wrote:
Quote:
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;")



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.