hirst@herky.cs.uiowa.edu (Steve Hirst) (04/03/91)
There is really no secret to creating DITL's nor any easy way to do it; especially in Pascal. The format in memory is the same as in the resource file (see IM-427). The main problem is that items have varing lengths depending on `item type' so in C you size you handle to hold the new field and laydown the values after the last item and increment the count; (easy, eh?) Since, you have to know how long items 1 and 2 are to find item 3, I also maintain a table of offsets to help indexing into fields. I create DITL all the time in my applications and use DITL's created by Rez and ResEdit. However, I swore off the Dialog Manager two years ago and haven't looked back; if you really have lots of edit items you probably will end up fighting DM more than using. But, hand grown DITLs and Dialog Records are good enough to fool VU which I do use. Good Luck, Steve Hirst