Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3737

PopOver problems

$
0
0

I thought I’d try to replace my homegrown popovers with the new container.showPopover which look nice, but here’s the problems I found:

  1. showPopover(parentControl) requires a desktopUIControl as its parentControl. So can’t use it based on a container or window. Adding a new control on-the-fly doesn’t work - just crashes without error. Have to add an empty control on the window/container, position it correctly, and then use that. An overloaded showPopover(container) would be good.

  2. I wanted to add a click to a colour picker within the popped container. But opening any new window (e.g. the picker), automatically closes the popover, so can’t continue to edit in the popover.

  3. Accidental double clicking of the control to open the popover, results in duplicate popovers. Need to ensure only one is created somehow.

Note, to close the popup programmatically need self.window.close inside the container as the popover seems to be a window.

Any solutions to (2) above - otherwise I’ll revert to homegrown without the nice little pointy hat.

7 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3737

Trending Articles