Results 1 to 2 of 2

Thread: Chat Box Auto Scroll

  1. #1

    Default Chat Box Auto Scroll

    I've been having a look at the default chat box included in the DiceWar game and it works fine except that when new messages are added they eventually drop off the bottom of the text box and you need to scroll down to see them. Is there a way to either make the box scroll automatically (by using the on_process_message to send it a forced command maybe) or to add the messages to the top of the list instead?

    Thanks ,

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    Most likely this is missing functionality in CL_ListView, where it should be possible to tell which element should be visible.

    If you wanted to put new items on top, you could add a new insert method in CL_ListViewItem which makes it possible to insert new items at top, or at an index. http://www.clanlib.org/docs/clanlib-...tViewItem.html

    I haven't really coded on the listview component, so could be my suggestions are way off

    Another solution would be to code a new custom ListBox component for dicewars, which might suit the chatview better.

Similar Threads

  1. Dungeon Scroll
    By in forum Dungeon Scroll for PC and iPhone
    Replies: 5
    Last Post: 09-25-2004, 02:14 AM
  2. Dungeon scroll.. and am I missing something?
    By in forum Dungeon Scroll for PC and iPhone
    Replies: 1
    Last Post: 01-29-2004, 01:32 AM
  3. Dungeon Scroll crashing!
    By Sandor in forum Dungeon Scroll for PC and iPhone
    Replies: 2
    Last Post: 01-16-2004, 03:08 AM
  4. dragon scroll
    By jjohn in forum Dungeon Scroll for PC and iPhone
    Replies: 0
    Last Post: 06-26-2003, 04:41 PM
  5. Auto delete this event
    By in forum Other RTsoft Games
    Replies: 0
    Last Post: 02-16-2003, 08:50 PM

Bookmarks

Bookmarks

Posting Permissions

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