Controls and lua
Hello,
I've a few questions which I could not solve myself.
Hm, well, that are my current question :) Thanks for any answers. |
Quote:
1. I think it should work. <OnClicked> YourRef:SetMouseEnabled(not (YourRef:IsMouseEnabled())) </OnClicked> 2. <OnClicked> YourRef:SetHidden(not (YourRef:IsHidden())) </OnClicked> 3. This will help preform any method with your container's parent. If you really need it. <OnClicked> (self:GetPatent()):*yourmethod* </OnClicked> 4. Just update your container as usual. You don't have to hide it. |
Hm, thanks for the reply, that answers most of my questions :)
But about the update, I create my own scrolllist and then I update all containing controls. But when I do this, it seems that the items in the control are not updated correctly. When I close the window and reopen it, then all changes are applied. Do I need to reload the scrolllist or is there a function to tell it to refresh its contents? edit: ah, how to make a top level window capture key presses (again, in pure lua, not xml - in xml I found a way)? |
Quote:
Same as for all others. Lua Code:
Events: OnKeyDown OnKeyUp Arguments: self, key, ctrl, alt, shift, command,... |
thanks, stupid me, it's actually pretty obvious :rolleyes:
|
All times are GMT -6. The time now is 03:56 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI