Reply To: Drag&Drop

Home Forums General Programming Drag&Drop Reply To: Drag&Drop

#47758
zeoka
Participant
  • Topics: 73
  • Replies: 466
  • Total: 539
  • ★★★

Hi

I get the Description userdata !

if u <= 15 then MyDetails = string.format("0%x",u) else MyDetails = string.format("%x",u) end details = DragAndDropSourceDetails(MyDetails ,SrcTrgI,0,0) the description here is a number ,generally useful for later , I pass it to hexstring and in isInterested callback : if SOURCE == 1 then local a = component:getOwner():getPropertyInt("modulatorCustomIndex") local b = dragSourceDetails:getDescription() local c = MemoryBlock(b) if c:getByte(0) <= Sidx[a].mx then panel:getComponent("drtext"):setText(""..c:getByte(0)) return (1) else return (0) end else return (0) end end I pass the description into a local memoryblock and get the byte as value I pass that to text to check the value

Ctrlr