Quantcast Trouble with window not triggering events - LoTROInterface
Search Downloads

Go Back   LoTROInterface > LotRO > General Discussion & Support > Interface Help (L)

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Unread 04-17-2017, 08:28 AM
gillothrin gillothrin is offline
The Undefeated
Interface Author - Click to view interfaces
Join Date: Apr 2017
Posts: 6
Trouble with window not triggering events


I'm having trouble with Lotro.UI.Window events. I understand that there's some sort of caveat here but I seem to miss it.

MyWindow = class(Turbine.UI.Window());
function MyWindow:Constructor()
	self.defaultWidth = 220;
	self.defaultHeight = 100;
	self:SetSize(self.defaultWidth, self.defaultHeight);
	self:SetWantsUpdates(true); -- seems like it doesn't do anything
	local bbg = Turbine.UI.Color(rgb(7),rgb(32),rgb(71));
	self:SetBackColor( bbg );
	--self.MouseDown = function(s,a) debug("MouseDown"); end; -- not working
	self.MouseDown = self.MouseDownHandler; -- not working

function MyWindow:MouseDownHandler(s,a)
--Not working either
--function MyWindow:MouseDown(s,a)
--	Turbine.Shell.WriteLine("MouseDown");
So it paints but there are no events recorded. However any added control to the window works fine. To make sure that the windows answers, do I have to make sure it has a "shadow" control to get the events?


Last edited by gillothrin : 04-17-2017 at 08:44 AM. Reason: (I've seemed to have posted this in the wrong topic, sorry)
Reply With Quote

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing Events in Lua glafria Lua Programming Help (L) 4 06-21-2016 02:41 PM
Binding events to classes Carentil Lua Programming Help (L) 4 11-18-2013 08:19 AM
Trouble with mailbox window GrimCon XML modification help (L) 2 11-12-2010 02:19 PM
TextBox FocusGained() / FocusLost() events not implemented? Betsiel LotRO Wish List (L) 3 10-06-2010 09:44 PM
[REQ]Buff Missing/Triggering Fixer Interface Requests (L) 1 09-28-2010 12:56 AM

All times are GMT -5. The time now is 05:08 PM.

Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | VGInterface | LoTROInterface | MMOInterface | Swtorui