Welcome, Guest. Please login or register.

Author Topic: How do I get wordwrapping in MUI listviews?  (Read 1946 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline jahcTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 521
    • Show only replies by jahc
    • http://wookiechat.amigarevolution.com
How do I get wordwrapping in MUI listviews?
« on: June 16, 2003, 09:18:15 AM »
I asked this on the wrong forum a few days ago, hopefully I'll get some replies here...

I want a listview with word wrapping.. How do I do that? Floattext has word wrap, but you can only have one entry.. I want multiple entries..

Sorry if this sounds like a stupid question, but I havent found anything in the autodocs..

I'm guessing that I have to use a displayhook? I dont know anything about hooks, I couldnt understand what little I've read about them..
 
 

Offline xeron

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show only replies by xeron
    • http://www.petergordon.org.uk
Re: How do I get wordwrapping in MUI listviews?
« Reply #1 on: June 16, 2003, 10:08:05 AM »
I don't know about wordwrapping listviews, but I can explain a little about hooks.

There is no black magic, or voodoo to hooks, they are simply a small structure in which you place a pointer to a function. When MUI wants to display something in the listview (or NListView), it jumps to the routine you provided in the hook structure, and you do the drawing for it. Usually the info needed to draw the item is passed in processor registers.

There are examples in the RKMs, and in the MUI devkit.
Playstation Network ID: xeron6