WebDialog palette replacement?

Ah, thanks. I did receive a notification only for this thread.

Thank you, @Attilio_Punzi1!

1 Like

One simple thing is also the following:

Since Xojo Web 2.0 uses jQuery, you can simply also use jQuery UI.

Load jQueryUI into your app over the httpheader in the app object. Then call the draggable method over ExecuteJavascript with the controlId of your webdialog and you’re done.
https://jqueryui.com/draggable/

With jquery you’re also able to hide the background. Most simple thing I think.

3 Likes

Thank you Lars.
It is simple when you know what to do, now I need to go learn this JQuery thing. I’ll try to do this after work today.

I took the 10 minutes and made a test project for you:
https://github.com/VanDerLars/Xojo-Drag-and-Drop-Dialog

Still feels clunky and needs a bit love with css and so, but works and only uses 10 LoC or so.

1 Like

Thank you, I will try to do it before looking at your code.

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.