Drag & Drop files on windows

BlitzMax Forums/MaxGUI Module/Drag & Drop files on windows

Cronos(Posted 2008) [#1]


Moderator: Please use the [code ] / [codebox ] tags when posting code samples on the forum. What are the forum codes?


SebHoll(Posted 2008) [#2]
OK, I've had a look at this on my Vista Ultimate (x86) PC and I can't seem to reproduce your problem.

What exactly are you having trouble with? Is it not emitting EVENT_WINDOWACCEPT? Is it failing when loading the image? Is it not drawing on the canvas?

Can you please be more specific as to your problem, post your exact system specs, and post the output given by the following tweaked version of your example when you do try to drop a file onto the window from Explorer:




Cronos(Posted 2008) [#3]
EVENT_WINDOWACCEPT - never occur ???
Is not emitted


WindowActivate: data=0, mods=0, x=0, y=0, extra=""
AppSuspend: data=0, mods=0, x=0, y=0, extra=""


BlitzMax v1.28 with MaxGUI
HP Pavilion dv6420la Notebook
On Windows Vista Home Premium

Amd Turion64x2 -> HD 160 gb -> Ram 2 gb -> Nvidia Gforce go 6150

-------------------------------------
test it on my WinXP work fine :-)

-------------------------------------
Drag & Drop files on my Windows Vista Home Premium
Dont Work :-(


SebHoll(Posted 2008) [#4]
Can you download and run this Drag n' Drop Text Program?



Drag and drop any text file onto it and tell me whether or not you get any text displayed in the text-area and status bar.

If you still don't get anything, can you tell me whether your mouse cursor changes the Windows drag n' drop cursor when you drag a file onto the window?


Cronos(Posted 2008) [#5]
test - Drag n' Drop Text Program

text displayed in the text-area
ÿØÿà

status bar
"c:\Users\luis enrique braga\Desktop\Image.jpg" (1)

cursor changes when you drag a file onto the window
yes


work fine :-)


SebHoll(Posted 2008) [#6]
OK, does the following program run: GUI Drop v2?

Do you get a message box when you try to drag n' drop now?

Just out of curiosity, are you using a non-English version of Windows or a non-ASCII filename? Also, can you post the module version of your MaxGUI.Win32MaxGUIEx, e.g. have a look in mod\maxgui.mod\win32maxguiex.mod\win32maxguiex.bmx for the ModuleInfo line at the top. Did you build modules after your last checkout on SVN?


Cronos(Posted 2008) [#7]
you get a message box when you try to drag n' drop

yes

File Dropped:
"C:\Users\luis enrique braga\Desktop\image.jpg"

it work now :-)


are you using a non-English version of Windows
SPANISH VERSION - I live in mexico :-)


win32maxgui.bmx - info

Rem
bbdoc: MaxGUI/Windows MaxGUI
about:
This module provides a Win32 based Windows driver for #MaxGUI.
End Rem
Module MaxGUI.Win32MaxGUI

Strict

ModuleInfo "Version: 1.36"
ModuleInfo "Author: Mark Sibly and Simon Armstrong"
ModuleInfo "License: Blitz Shared Source Code"
ModuleInfo "Copyright: Blitz Research Ltd"
ModuleInfo "Modserver: BRL"



SebHoll(Posted 2008) [#8]
Ooops - that's MaxGUI.Win32MaxGUI - could you post the version info for MaxGUI.Win32MaxGUIEx?


Cronos(Posted 2008) [#9]
win32maxguiex.bmx - info

Rem
bbdoc: MaxGUI Windows Driver (Take 2)
End Rem
Module MaxGUI.Win32MaxGUIEx

ModuleInfo "Version: 0.47"
ModuleInfo "Copyright: Armstrong Communications Ltd"
ModuleInfo "Author: Simon Armstrong, Seb Hollington"
ModuleInfo "Modserver: BRL"



SebHoll(Posted 2008) [#10]
Thanks, that's the most recent SVN version so I'm not sure why you are getting the problems. I've sent you the latest dev version which hasn't been committed yet (v0.48) - if you could let me know if it helps.

Cronos: You have e-mail!


Cronos(Posted 2008) [#11]
lebr_gdl@...

thanks for your help !!!!!!

nice support :-)


SebHoll(Posted 2008) [#12]
OK, I've resent it to your Hotmail address (I had originally sent it to the address in your profile).


Cronos(Posted 2008) [#13]
i replaced
maxgui.mod\win32maxguiex.mod\win32maxguiex.bmx

maxgui.mod\win32maxguiex.mod\winimports.bmx

rebuild all modules

but "Drag & Drop!" project sample dont work :-(

AppSuspend: data=0, mods=0, x=0, y=0, extra=""
AppResume: data=0, mods=0, x=0, y=0, extra=""
WindowActivate: data=0, mods=0, x=0, y=0, extra=""

-------------------------------------------
your GUIDrop2.exe work fine :-)

i use MinGW-5.1.3 to rebuild all modules


Cronos(Posted 2008) [#14]
a small youtube video for you see the trouble

http://www.youtube.com/watch?v=s8p6oJlCZzE

the compile example not work :-(
your GUIDrop2.exe work nice :-)


SebHoll(Posted 2008) [#15]
Cronos,

Can you also try the following EXE:
GUI Drop 3

Also, please can you compile the following BMX file and e-mail me the resulting EXE and .bmx folder generated in a single ZIP archive:
GUIDrop3.bmx

...making sure you have only "Build GUI App" checked in the IDE's "Build Options" sub-menu (under the "Program Menu").

Thanks


SebHoll(Posted 2008) [#16]
Don't worry about the EXE size - I use an EXE compressor (called UPX Compression) which results in smaller EXEs - they are inflated at runtime though so should behave in exactly the same way.

I may have an idea... Check your e-mail...


Cronos(Posted 2008) [#17]
I discovered that

http://www.youtube.com/watch?v=CJGxlSQKtdo

if you closed MaxIDE and run the compiled program it work :-)

sorry never tested it :-)

replaced
maxgui.mod\win32maxguiex.mod\win32maxguiex.bmx
maxgui.mod\win32maxguiex.mod\winimports.bmx
work :-)

never replaced MaxIDE :-) maybe need recompile it


SebHoll(Posted 2008) [#18]
Well that certainly is a strange issue... Not sure why MaxIDE would have any effect on the program, but hey, if it works... ;-)


Cronos(Posted 2008) [#19]
i replaced

bcc.exe
bmk.exe
libunicows.a

but you ned closed MaxIDE and run the compiled program for it work :-)

but is not important fo me :-)
only need that compiled program works :-)

thanks for your help !!!!