CreateXMLDialog questions

Linux specific forum
dougmo52usr
User
User
Posts: 62
Joined: Mon Jul 18, 2016 6:43 pm

CreateXMLDialog questions

Post by dougmo52usr »

PureBasic 6.11 LTS (Linux - x64)

1. Is there any way to specify a ParentID without also specifying x, y, width, height?
2. If I specify a ParentID, the dialog seems to be centered in the parent, ignoring the values of x, y, width, height. Is that typical?
3. If I skip optional parameters, is there a way to change the dialog parent window after it is created?
4. I'm launching the dialog in a menu. Is there a way to specify x and y such that the dialog is displayed at the mouse cursor where the window item was clicked?
5. Is there a way to constrain the dialog position so that I can't drag it outside of the parent window?
6. I see that GadgetX, GadgetY can return coordinates in Screen, Window, and Container coordinates. Is there an equivalent for or a way to convert WindowX and WindowY into Screen, Container, or Window coordinates?
dougmo52usr
User
User
Posts: 62
Joined: Mon Jul 18, 2016 6:43 pm

Re: CreateXMLDialog questions

Post by dougmo52usr »

4. I noticed that ResizeWindow(DialogWindow(dialog),DesktopMouseX(),DesktopMouseY(),#PB_Ignore,#PB_Ignore) puts the dialog where I clicked the mouse.
Post Reply