View Single Post
  #4  
Old 08-18-2009, 06:31 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Just a comment on the code, you should either use const/enum, or not use the all-caps convention associated with constants when they aren't.

Although, const/enum can be problematic since they just replace the variables at compile-time, so if you do anything dynamic with them it'll fail.

An alternative route would be to use a TStaticVar:
PHP Code:
this.anchors = new TStaticVar();
this.anchors.top = {screenwidth/20};
this.anchors.topRight = {screenwidth0}; 
Glad you got it working though.
Reply With Quote