Palette & Modal Dialog for Xojo Web 2.0

Small gift for the community. Given the current state of WebDialog and the removal of the palette version, I integrated the jsPanel library into Xojo.
Obviously not all the functionality is present because I integrated only those that I needed.

For those interested you can download the example with the class here.


Looks great, thank you for this.

I will try to see if there is a way for a child to minimize within the parent. I can only move the child within the parent and maximize works as expected.

1 Like

Yes, you can. I need to update the example to allow minimizeTo to be set. Now I don’t think I can, but I will surely do it.

1 Like

This is awesome, thanks for sharing!

1 Like

Thank you for sharing!

1 Like

Updated to version 1.0.1:

-Added ability to specify where to minimize the window. Parameters it accepts are (default,parent,parentpanel,Controlid)

New Link here.

1 Like

Thank you very much, I’m no longer stuck in my project!
Great addition!

Updated to version 1.0.2:

-Fixed the problem that did not set correctly the top property

New Link here.

Do you know why, when I minimize the child:

  • it takes all the parent’s width (I expected the same minimized width as other dialogs)
  • it only has the icon to maximize (I expected 2 icons, one to restore to the previous state and maximize button)

Unfortunately when specifying the controlID it has this behavior which is not up to me. I can’t tell if it’s a bug or intentional. There would be also a fourth parameter that is used to disable the function and involves manually writing code to place the dialog where you want. To get the effect you are looking for just set it to ‘parent’.

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