Comments (6)
Hi Thomas,
Thank you for sharing!
It is a good start and there are only a couple of things I would change about that implementation. For example, the QueryInterface
should return an object in ppvObject
when returning S_OK
and that should only happen for IID_IUnknown
, IID_IDropTarget
and maybe IDropSource
as well.
Normally QueryInterface
would also call AddRef
and AddRef
/Release
would increment/decrement some sort of a private counter and delete the object when that counter comes to zero but I would leave those empty in your sample as we probably don't want to free the FlutterWindow object by ourselves.
I will implement it in the package as soon as I finish the macOS support (next days).
To answer your question: yes, this can be done in the plugin, it is just a matter of time.
Thank you for the reminder!
from bitsdojo_window.
This has been on my mind for some time and I will definitely look into it!
from bitsdojo_window.
Hey there, just curious where you are at with this? We're currently working on a couple of PR's, one to add Linux support. Wondering if this is worth looking into, or if you are well underway here? Maybe we can divy up the work? We're shooting for some end of February deadline for our desktop app.
from bitsdojo_window.
I got Drag & Dropping to work on Windows by modifying FlutterWindow
:
https://codereview.stackexchange.com/questions/253264/make-flutter-app-on-windows-a-drop-target-to-accept-files
But I am unsure whether this can be used in a plugin. Maybe it helps though.
from bitsdojo_window.
@bitsdojo - great package, but has there been any progress on this issue? DnD is a key feature for my app and I'd like to use bitsdojo_window, but lacking built-in DnD support I've tried unsuccessfully to use the package along with the desktop_drop package and they appear to conflict in some way. No error, but I don't get a working drop target (just the red 'no entry" icon).
Any status or thoughts on workaround? I see the @technolion solution above, but would rather not mess with the generated code if possible. Thanks!
from bitsdojo_window.
@bitsdojo - my sincere apologies: the package does appear to be working fine with desktop_drop. I had been doing a lot of editing and hot-reloading, and must've gotten my state all out of sorts. With a fresh build-run, it's working fine. For those seeking a solution for DnD with bitsdojo_window, I think this combination works well as we can easily define a specific target widget for finer control. Thanks again for the work on this useful package.
from bitsdojo_window.
Related Issues (20)
- Likely incompatibility with NSSM and WinSW
- please upgrade HOT 2
- Upgrade to win^5.0.6 HOT 7
- requires win32 ^3.0.0 HOT 1
- Is it possible to drag windows in mac os ? HOT 1
- Custom frame doesn't hide title bar completely when using flutter_acrylic HOT 1
- Doesn't work in Windows 11 HOT 4
- segfault on Linux within getAppWindowHandle HOT 2
- MACOSX_DEPLOYMENT_TARGET
- . HOT 4
- How to totally hide title bar(title and 3 buttons in left-top) in macos HOT 1
- Can't install bitsdojo HOT 3
- There were someone published v3, is this your work? HOT 3
- -
- dependencies issue when upgrading file_picker package HOT 5
- doWhenWindowReady never called on macOS Sonoma HOT 3
- Cmake Error: No target HOT 2
- Handle/Listen close button on macOs HOT 2
- Hide bar on video fullscreen HOT 1
- No target "bitsdojo_window_windows_v3_plugin" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitsdojo_window.