Manikandan wrote:
Quote:
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/e...ad/oad_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)