![]() |
gui and catchevent question
In my scrolls I use a textctrl and set it's modal to false so I can get the event from just the scroll behind. textctrl won't return the events when I test it (modal is false) but still does block the scrollctrl preventing me from catching onmousedown
PHP Code:
|
and you have:
PHP Code:
|
the event you're catching is onMouseDown, and invoking
PHP Code:
should also change this to name or this.name I believe, it is expecting a string, not an object. |
Quote:
|
TGraalVar.catchevent(str, str, str) - adds an event handler for the specified object and event, third parameter is the function which receives the event (first parameter of the event will be the object for which the event occured)
|
@ fowlplay4:
Yes it's defined properly just not echoing anything, removing useownprofile at the end doesn't work either. @Mark Sir Link: Chris Vimes instructed me to use 'this' |
Sometimes Graal wants an object, aka "this" sometimes it wants a reference to an object, aka "name." Enjoy the ****ing headaches.
|
I am only going with what scripthelp displays as the expected params, 3 strings
not sure what other string it could possibly want besides name, and I'm sure the reason this works isn't because it's what's expected, but instead because echoing objects tends to return object.name Anyway, on closer look, I think the real issue here is you are throwing an event for mousedown when I assume that that event is thrown when the scroll buttons are pushed. You have the scroll bars disabled, so I think it would be a virtual impossibility to ever throw that event. |
Quote:
|
Quote:
Quote:
it want's an object, documention failure. (<- future reference, i know it have been solved already) |
Quote:
I.e: PHP Code:
|
Quote:
Specified leads me to believe string even more so. |
Quote:
You could use the name, but I think it's silly to do so in an object-oriented language. Who knows what it does behind the scenes, though... |
| All times are GMT +2. The time now is 02:51 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.