dbTalk Databases Forums  

Enable and disable buttons in a database block

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


Discuss Enable and disable buttons in a database block in the comp.databases.oracle.tools forum.



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

Default Enable and disable buttons in a database block - 07-18-2003 , 10:28 AM







Hi,
I have three text items and two buttons in a row of a data base block.I
have 10 rows in my block.
I need to enable and disable button1 according to the value in
textbox 1.
I can`t use set_item_instance_property for buttons.
Please guide me.

--
Posted via http://dbforums.com

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

Default Re: Enable and disable buttons in a database block - 07-19-2003 , 01:46 AM







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

Reply With Quote
  #3  
Old   
Daniel Morgan
 
Posts: n/a

Default Re: Enable and disable buttons in a database block - 07-19-2003 , 04:03 PM



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)




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.