Thread: Onset varible
View Single Post
  #19  
Unread 03-28-2011, 01:20 PM
Draven_Caine's Avatar
Draven_Caine Draven_Caine is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Oct 2009
Server: Unrest
Posts: 155
Default

Quote:
Originally Posted by Drumstix42 View Post
I wasn't even thinking of which Add button this was until now. So yeah, as they already said, you can't reference the Add button or the cloned buttons from the Checkbox.

So, leave your checkbox as is, and don't put any special code in it.
What you'd probably have to do, is use a OnHoverIn code to show your fake Add button or not.

The code would look something like this:
OnHoverIn="Visible=(Parent.Parent.YourCheckBox.checked == true)"

That way if the checkbox wasn't checked, the fake button would hide, and the normal Add button would then be pressable. You'd have to put this "OnHoverIn" code directly on the FakeAdd button I'm thinkin though, so it would get copied through the whole template.
Awsome, almost got it.

My button has HoverIn=Visible=(Parent.Parent.FilterPage.AutoClose.checked == true)

But the issue now is if the checkbox (Named AutoClose) keeps the button visible if the check box is checked as needed, and if i uncheck the box it disappears on mouse-over, but if i re-check the box and mouse-over the button again the custom button doesn't re-appear.

The funny thing about this code is its not even for me, its for a friend that wanted this option added to her UI lol.
Reply With Quote