Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: jahc on June 16, 2003, 09:18:15 AM

Title: How do I get wordwrapping in MUI listviews?
Post by: jahc 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..
 
Title: Re: How do I get wordwrapping in MUI listviews?
Post by: xeron 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.