Home › Forums › General › Programming › Drag&Drop › Reply To: Drag&Drop
May 4, 2015 at 4:13 pm
#45670
Hi
I need some help !
I can’t get painting of my childs created, it lacks something , it is just a first test
--
-- Called when the panel has finished loading
--
Loaded = function()
Gsrc = Graphics(Image(2,64,40,true))
Gsrc:setColour(Colour(0xffffffff))
Gsrc:fillRect(0,0,64,40)
Gsrc:setColour(CL3[panel:getGlobalVariable(5)+1])
for i = 1,6
do l = {89,91,94,109,111,114}
MyFilter:addChildAndSetID(Component("Flt"..i),""..l{i})
--MyFilter:findChildWithID(""..l{I}):setAlwaysOnTop(true)
MyFilter:findChildWithID(""..l{i}):setBounds (Sidx{l{i}}.x,Sidx{l{i}}.y,64,40)
Gsrc:drawText(Sidx{l{i}}.n,0,10,64,20,CENTRE,false)
MyFilter:findChildWithID(""..l{I}):paintEntireComponent(Gsrc,true)
--MyFilter:findChildWithID(""..l{I}): setBufferedToImage (true )
end
end
I see also in the lua editor “addMethod” there is Callbacks like componentLUAmouseup . are they callback I could use for my childs
and try to drop on them ?