Results 1 to 6 of 6

Thread: Debug TBox in Simba

  1. #1
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Debug TBox in Simba

    Can this be done? If so, how?

  2. #2
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    SCAR Code:
    var
      B : TBox;
    begin
      WriteLn([B.x1, B.y1, B.x2, B.y2]);
    end.
    Or are you talking on painting it on a debug canvas?

  3. #3
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I meant painting in on the debug canvas, sorry.

  4. #4
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    WriteLn(b) is enough

  5. #5
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bbri06 View Post
    I meant painting in on the debug canvas, sorry.
    SCAR Code:
    {.include SRL\SRL.scar}
    {.include SRL\SRL\Misc\Debug.scar}

    const
      X1 = 0;
      Y1 = 0;
      X2 = 100;
      Y2 = 100;

    var
      ATPA: T2DPointArray;

    begin
      SetLength(ATPA, 1);
      SetLength(ATPA[0], 2);
      ATPA[0][0] := Point(X1, Y1);
      ATPA[0][1] := Point(X2, Y2);
      DebugATPABounds(ATPA);
    end.

  6. #6
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Perfect, thanks IceFire.

    Edit: It seems I can't give you any more rep right now
    Last edited by bbri06; 05-16-2010 at 09:13 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •