Page 1 of 1
GetGadgetSize()
Posted: Tue May 08, 2012 1:17 am
by IdeasVacuum
We currently have GadgetX(), GadgetY(), GadgetHeight() and GadgetWidth() functions and they great. However, rather like ResizeGadget(), there are times when an all-in-one function would be more elegant: GetGadgetSize(x,y,w,h).
Re: GetGadgetSize()
Posted: Tue May 08, 2012 1:30 am
by STARGĂ…TE
GetGadgetSize(x,y,w,h) ?
you will
get gadget sizes but you will use parameters x,y,w,h ?
don't understand.
you mean: ?
Code: Select all
Procedure GetGadgetSize(Gadget.i, *X.Integer, *Y.Integer, *Width.Integer, *Height.Integer)
*X\i = GadgetX(Gadget)
*Y\i = GadgetY(Gadget)
*Width\i = GadgetWidth(Gadget)
*Height\i = GadgetHeight(Gadget)
EndProcedure
GetGadgetSize(#Gadget, @ResultX, @ResultY, @ResultWidth, @ResultHeight)
Re: GetGadgetSize()
Posted: Tue May 08, 2012 3:16 am
by IdeasVacuum
...yes, I mean the inverse of ResizeGadget().