HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.
Pages: 1 [2]

Author Topic: [resolved] chat window and dockmode perfection  (Read 3910 times)

FI-ScottZ

  • General Accounts
  • *
  • Posts: 1407
    • View Profile
    • Forever Interactive, Inc.
Re: [resolved] chat window and dockmode perfection
« Reply #15 on: May 29, 13, 09:15:44 AM »

Quote
Did you manage to get it to scroll via a scrollbar, or just via mouse scroll wheel?
Both.  If you use the _TextDisplayBoxHolder, that has a scrollbar which it sets up to work with the display box.

Two other things:
  • The _TextDisplayBox prototype has scrollbarautohide set to false, so set that to true when you use it if you don't want the scrollbar to always show.
  • I found that when there are enough lines to allow scrolling, when you scroll down the bottom border of the display box moves down, which makes it hidden.  Seems that being docked BOTTOM is affected by the changing of offset, even when parent size remains the same.  So I made it dockmode NONE and when the display box OnLayout method is called, I set the bottom border position to be box size - 1.  Then it should still be at the bottom even if the box is resized.
« Last Edit: May 29, 13, 09:18:05 AM by ScottZarnke »
Logged
Scott Zarnke
Lead Programmer, Visions of Zosimos
CTO, Forever Interactive, Inc.

AWW_boss

  • General Accounts
  • *
  • Posts: 846
  • gdfgd
    • View Profile
Re: [resolved] chat window and dockmode perfection
« Reply #16 on: May 29, 13, 02:08:17 PM »

Thanks Scott, with your hints i made much progress.
Did you notice that when the display box hits around 60 lines, it stops working?
I am currently trying to figure out what could be the root cause for this.


Edit: the maxLen property of the textbox was set to low value. I increased it and no longer see the problem.
« Last Edit: May 29, 13, 02:29:12 PM by AWW_boss »
Logged

AWW_boss

  • General Accounts
  • *
  • Posts: 846
  • gdfgd
    • View Profile
Re: [resolved] chat window and dockmode perfection
« Reply #17 on: Jun 02, 13, 03:08:30 PM »

<deleted>
« Last Edit: Jun 05, 13, 01:34:00 AM by AWW_boss »
Logged
Pages: 1 [2]