Quantcast LoTROInterface - View Single Post - Binding events to classes
View Single Post
  #3  
Unread 11-17-2013, 04:27 PM
Carentil's Avatar
Carentil Carentil is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Nov 2013
Posts: 5
Thank you so much Garan! I got a bit farther and also realized I had another issue in my actual code, which this helped me to solve.

I was doing this:

Code:
self.myCheckbox:CheckedChanged = function(sender,args)
	-- toggle enabled flag of a field based upon a checkbox
	self.myTextBox:SetEnabled(self.myCheckBox:IsChecked())
end
...and getting an error still, but changed that to

Code:
self.myCheckbox.CheckedChanged = function(sender,args)
...and everything works as desired.

I've been relying on your Plugins for noobs post heavily, thanks. It's what's gotten me as far as I have. I'm an old hand programmer but Lua is entirely new to me, so I think a lot of the problems I have had and will have with syntax are just a matter of experience. Thank you again for the help!
Reply With Quote