lt. Dokumentation unterstützt das ScintillaGadget momentan kein Drag & Drop:
Demnach funktioniert folgender Code auch nicht wie gewünscht:The following events are supported through EventType():
#PB_EventType_RightClick
Code: Alles auswählen
#Window = 0
#Scintilla = 0
If OpenWindow(#Window, 0, 0, 320, 90, "ScintillaGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
EnableWindowDrop(#Window, #PB_Drop_Files, #PB_Drag_Copy)
If InitScintilla()
ScintillaGadget(#Scintilla, 10, 10, 300, 70, 0)
EnableGadgetDrop(#Scintilla, #PB_Drop_Files, #PB_Drag_Copy)
Repeat
WWE = WaitWindowEvent()
Select WWE
Case #PB_Event_Gadget
Select EventGadget()
Case #Scintilla
Select EventType()
Case #PB_EventType_DragStart
Debug "#PB_EventType_DragStart"
EndSelect
EndSelect
EndSelect
Until WWE = #PB_Event_CloseWindow
EndIf
EndIfDanke im voraus & Grüße ... Kiffi