Are the parameters for the SetGadgetShape function discribing the gadget rect or the client rect?
I tried it out and it seems like its depending on how the window was created.
In this example the parameters for SetGadgetShape are client coords:
I think they should always be gadget coords whatever the window was created.
If anyone wants to set them as client coords there should be a function like SetClientShape.
How do you think?
I tried it out and it seems like its depending on how the window was created.
In this example the parameters for SetGadgetShape are client coords:
Strict Local Window:TGadget = CreateWindow ( "" , 0 , 0 , 0 , 0 , Desktop ( ) , WINDOW_TITLEBAR | WINDOW_CLIENTCOORDS ) SetGadgetShape Window , 300 , 300 , 300 , 300 While True WaitEvent WendAnd here they're gadget coords:
Strict Local Window:TGadget = CreateWindow ( "" , 0 , 0 , 0 , 0 , Desktop ( ) , WINDOW_TITLEBAR ) SetGadgetShape Window , 300 , 300 , 300 , 300 While True WaitEvent WendIsn't this a bug?
I think they should always be gadget coords whatever the window was created.
If anyone wants to set them as client coords there should be a function like SetClientShape.
How do you think?