Code: Select all
Local ID = CreateDisplay(Nil, {X=100, Y=100, Width=500, Height=300, Sizeable=True, Mode="windowed"})
OpenDisplay(ID)
InstallEventHandler({SizeWindow = Function(Action)
ForEach(Action, DebugPrint)
EndFunction})
Repeat
WaitEvent()
ForeverThis isn't a big problem, since I can use GetAttribute() command to get the X and Y position, but main point here is consistency.
Thing is, at least in Windows you can also resize Hollywood windows by either choosing the left side of the window, or top side of the window, to be the dragging point, which means that not only will the Width and Height change, but also X and Y position. Currently "Action" doesn't recognise this possibility, but I need to make a separate GetAttribute() inquiry to get the new X and Y positions.