It is currently Fri May 24, 2013 8:08 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GetGadgetSize()
PostPosted: Tue May 08, 2012 1:17 am 
Offline
Addict
Addict

Joined: Fri Oct 23, 2009 2:33 am
Posts: 2862
Location: Wales, UK
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).

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
 
 Post subject: Re: GetGadgetSize()
PostPosted: Tue May 08, 2012 1:30 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Jan 10, 2008 1:30 pm
Posts: 711
Location: Germany, Glienicke
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:
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)

_________________
Image


Top
 Profile  
 
 Post subject: Re: GetGadgetSize()
PostPosted: Tue May 08, 2012 3:16 am 
Offline
Addict
Addict

Joined: Fri Oct 23, 2009 2:33 am
Posts: 2862
Location: Wales, UK
...yes, I mean the inverse of ResizeGadget().

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye