![]() |
Applying onMouseDragged to GuiTextListEntry?
Hi
well i tried function DragTestWindowList.rows[0].icon.onMouseDragged(keymodifier,mousescreenx,mous escreeny) but it gives that error: error: unexpected symbol [ at line 35: function DragTestWindowList.rows[0].icon.onMouseDragged(keymodifier,mousescreenx,mous escreeny) |
Uhm
A function like that isn't valid :O Try use thiso.catchevent() on the rows, then use onMouseDragged() for example: thiso.cathevent(this, "onMouseDragged", "onRowDragged"); But why would you want to drag rows? |
i tried that, didnt really work
well i want to drag the icons of the rows :D |
hmm, post some of the code used?
And I don't know if the rows support dragging :O |
quick and dirty:
PHP Code:
i tried the catchevent within the guitextlist, works i guess i have to use it in guitextlist ctrl and check mousex and y to get the row x.x |
Yep, I don't think you can drag rows/row icons :(
|
yeah i just checked for x/y, works now
|
icon is a TDrawingPanel which does not inherit GuiControl variables/functions same with GuiTextListEntry (they both just inherit TGraalVar). Your best bet is just just put it on the GuiTextListCtrl it self and just check the selected row in the control.
|
| All times are GMT +2. The time now is 02:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.