Re: Enable and disable buttons in a database block

From: Daniel Morgan <damorgan_at_exxesolutions.com>
Date: Sat, 19 Jul 2003 14:03:56 -0700
Message-ID: <3F19B23C.2A08C8E_at_exxesolutions.com>


Manikandan wrote:

> Hi,
> If i use set_item_property,all the 10 buttons would be disabled.
> But i need only few buttons (based on the values in the text box)
> enabled..not all...
> I hope you undertsand my problem.
>
> --
> Posted via http://dbforums.com

You are correct and you are out of luck unless you get underhanded and crafty . Here's what you do.

Create another single button (probably attached to a control block) that is the exact same size as the button you are trying to change. Set visible to False and place it on top of the button you are trying to change

Next find the coordinates of the upper left corner of the button you are trying to change.

Then, when conditions are right make that button visible and the problem is solved.

Alternatively ... put the button at a different coordinate on the form and not only make it visible ... but move it to the correct coordinate.

--
Daniel Morgan
http://www.outreach.washington.edu/extinfo/certprog/oad/oad_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Sat Jul 19 2003 - 23:03:56 CEST

Original text of this message