Re: developer 2000 forms disable button

From: Aleksandr Kononov <AKononov_at_pptk.energo.ru>
Date: Thu, 21 Dec 2000 06:46:55 GMT
Message-ID: <91s90u$hae$1_at_nnrp1.deja.com>


Try to define two triggers on both items.

PRE-TEXT-ITEM trigger:
Set_Item_Property( 'CONTROL.buttona', ENABLED, PROPERTY_FALSE );

POST-TEXT-ITEM trigger:
Set_Item_Property( 'CONTROL.buttona', ENABLED, PROPERTY_TRUE );

Regards,
Aleksadr Kononov

In article <91rfj7$u2n$1_at_nnrp1.deja.com>,   ssharma24_at_my-deja.com wrote:
> Developer 2000 forms disable button
> situation:
> There is a “buttonA” that has two possible labels say “This”
 and “That”
> The “when button pressed trigger” on the “buttonA” changes the labels
> on it as well as switch the enable, displayed, navigable properties of
> two items say blocka.itema and blocka.itemb.
> If the cursor is inside the itema or itemb and the user press the
> buttona then the user gets errors…like can not change the property
> enabled, displayed of the current item…while the cursor is inside it…
>
> So, what I want to do is put an if statement somewhere saying disable
> buttona if the cursor is inside either of the above mentioned items..
> i.e.
> if (:system.current_item = :blocka.itema) (:system.current_item
> = :blocka.itemb) then
> set_item_property ('CONTROL.buttona', ENABLED, PROPERTY_FALSE);
> ELSE
> set_item_property ('CONTROL. buttona ', ENABLED, PROPERTY_TRUE);
> END IF;
>
> Problem: I don’t know where I should put this statement…..in what
> trigger???on the block???or the items in question???
> Please help…
>
> I tried.. putting
> set_item_property ('CONTROL.buttona', ENABLED, PROPERTY_FALSE);
> in when-new-item-instance on both the items…that did the trick…but
 then
> I didn’t know where to put the statement to enable the button again..
>
> thanks….
>
> Sent via Deja.com
> http://www.deja.com/
>

Sent via Deja.com
http://www.deja.com/ Received on Thu Dec 21 2000 - 07:46:55 CET

Original text of this message