[SOLVED] Drag'n'Drop and Admin mode
Posted: Tue Mar 19, 2024 8:22 pm
Hello,
Is there a reason why drag'n'drop doesn't work in Admin mode? or bug?
In this mode, the StringGadget doesn't accept drag operation
Tested with PB 6.03 LTS and PB 6.10b8 x64 on Win 10 x64:
Thanks.
Is there a reason why drag'n'drop doesn't work in Admin mode? or bug?
In this mode, the StringGadget doesn't accept drag operation

Tested with PB 6.03 LTS and PB 6.10b8 x64 on Win 10 x64:
Code: Select all
EnableExplicit
Define.s XMLString
XMLString="<?xml version='1.0' encoding='UTF-16'?>"+Chr(10)+ ;{
"<dialogs>"+Chr(10)+
" <window id='0' name='Window1' text='Test' xpos='0' ypos='0' width='auto' minwidth='200' flags='#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_MaximizeGadget|#PB_Window_SizeGadget|#PB_Window_ScreenCentered'>"+Chr(10)+
" <string id='0' name='String1' flags='#PB_String_ReadOnly'/>"+Chr(10)+
" </window> "+Chr(10)+
"</dialogs>" ;}
ParseXML(0,XMLString)
CreateDialog(0)
OpenXMLDialog(0,0,"Window1",0,0,0,0)
EnableGadgetDrop(0,#PB_Drop_Files,#PB_Drag_Copy)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
Break
Case #PB_Event_GadgetDrop
Select EventGadget()
Case 0
ClearDebugOutput()
Debug "Hello, I've been here!"
Debug EventDropFiles()
EndSelect
EndSelect
ForEver
Thanks.