[07 Jan 2010] MoveDisplay() problem...
Posted: Sat Jun 13, 2020 5:32 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 07 Jan 2010 01:23:24 -0000
Hi ALL!
I've that code:
Why the window (Disaply was sizeable with noscaling parameter on scaling method and placed on start at #CENTER #CENTER position) dont scale itself in the correct position (at X,Y window position) ? It returns centered almost everytime...but sometime was correctly placed...
The routine above was called by SizeWindow event handler...so I've a sizeable window like the wb ones...
Thanks to all! Maybe I've done some stupid mistake...
Hi ALL!
I've that code:
Code: Select all
LOCAL DisplayX, DisplayY
DisplayL = GetAttribute(#DISPLAY, 0, #ATTRWIDTH)
DisplayH = GetAttribute(#DISPLAY, 0, #ATTRHEIGHT)
DisplayX = GetAttribute(#DISPLAY, 0, #ATTRXPOS)
DisplayY = GetAttribute(#DISPLAY, 0, #ATTRYPOS)
DebugPrint(DisplayL, DisplayH, DisplayX , DisplayY)
IF (DisplayL < 420) OR (DisplayH < 200)
IF DisplayL < 420 THEN DisplayL = 420
IF DisplayH < 200 THEN DisplayH = 200
ChangeDisplaySize(DisplayL, DisplayH)
MoveDisplay(DisplayX, DisplayY)
EndIF
The routine above was called by SizeWindow event handler...so I've a sizeable window like the wb ones...
Thanks to all! Maybe I've done some stupid mistake...