Thread: [PI] - Text won't stay inside the scroll interface

Results 1 to 4 of 4
  1. #1 [PI] - Text won't stay inside the scroll interface 
    Registered Member
    Join Date
    Sep 2015
    Posts
    68
    Thanks given
    41
    Thanks received
    75
    Rep Power
    36
    removed
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Registered Member
    _Ali's Avatar
    Join Date
    Apr 2014
    Posts
    382
    Thanks given
    67
    Thanks received
    147
    Rep Power
    252
    The text has to be bound to the scrollbar widget you've defined. Show the whole interface code so we can ammend the code.

    Quote Originally Posted by dyzes View Post
    Tried adding a scroll interface but I've gotten an error I do not know how to fix:

    Attached image

    As you can see the text isn't staying inside the scroll interface as it actually should (however the first line of text does stay inside the scroll interface).

    here's the code I use for the text:

    Spoiler for code:
    Code:
    for (int i = 0; i < 40; i++) {
       addHoverText(31551 + i, "", "Select", atextdrawingarea, 1, 0xff9633, true, true, 250);
       setBounds(31551 + i, 155, y, i, scrollInterface);
       y += 23;
      }
    The text has to be bound to the scrollbar widget you've defined. Show the whole interface code so we can ammend the code.
    Reply With Quote  
     

  4. #3  
    Registered Member
    Join Date
    Sep 2015
    Posts
    68
    Thanks given
    41
    Thanks received
    75
    Rep Power
    36
    Quote Originally Posted by _Ali View Post
    The text has to be bound to the scrollbar widget you've defined. Show the whole interface code so we can ammend the code.



    The text has to be bound to the scrollbar widget you've defined. Show the whole interface code so we can ammend the code.
    Spoiler for code:
    Code:
    Reply With Quote  
     

  5. Thankful users:


  6. #4  
    Registered Member
    Join Date
    Jan 2014
    Posts
    11
    Thanks given
    30
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by dyzes View Post
    Tried adding a scroll interface but I've gotten an error I do not know how to fix:

    Attached image

    As you can see the text isn't staying inside the scroll interface as it actually should (however the first line of text does stay inside the scroll interface).

    here's the code I use for the text:

    Spoiler for code:
    Code:
    for (int i = 0; i < 40; i++) {
       addHoverText(31551 + i, "", "Select", atextdrawingarea, 1, 0xff9633, true, true, 250);
       setBounds(31551 + i, 155, y, i, scrollInterface);
       y += 23;
      }
    Nice interface
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 5
    Last Post: 05-19-2016, 05:48 PM
  2. Replies: 0
    Last Post: 08-23-2013, 09:33 PM
  3. Replies: 0
    Last Post: 01-05-2013, 07:23 PM
  4. [pi] NPC won't attack if object is in the way
    By xxskylarscapexx in forum Help
    Replies: 0
    Last Post: 02-28-2012, 06:07 PM
  5. How do I make text stay inside?
    By $_GET['life'] in forum Chat
    Replies: 1
    Last Post: 09-30-2009, 01:17 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •