Curl: Adding 'item's to an 'itemize' element 
Author Message
 Curl: Adding 'item's to an 'itemize' element

Hey,

Anyone know how to programmatically add 'item's to an 'itemize' element?

I currently am doing something like:

-----------------------------------------------
{define-proc {make-list}:Graphic
  || Returns a dynamic array of strings here - unknown how
  || many at this point (XML stream)
  let things:{Array-of String} = {get-the-stuff}

  let items:Graphic = {itemize}
  {for thing in things do
    {items.add {item {value thing}}}
  }
  {return items}

Quote:
}

-----------------------------------------------

And this is not showing the bullet points like an itemize should.
Thgouhts?

Cheers,
Brent

--
Software Engineer
Curl Corporation
www.curl.com

Sent via Deja.com
http://www.*-*-*.com/



Sun, 13 Jul 2003 08:07:56 GMT  
 Curl: Adding 'item's to an 'itemize' element
The answer is to do the following:

{define-proc {make-list}
  {let tp:Visual = {text-part}}
  {tp.add {item one}}
  {tp.add {item two}}
  {tp.add {item three}}
  {return {itemize {value tp}}}

Quote:
}



Quote:
> Hey,

> Anyone know how to programmatically add 'item's to an 'itemize'
element?

> I currently am doing something like:

> -----------------------------------------------
> {define-proc {make-list}:Graphic
>   || Returns a dynamic array of strings here - unknown how
>   || many at this point (XML stream)
>   let things:{Array-of String} = {get-the-stuff}

>   let items:Graphic = {itemize}
>   {for thing in things do
>     {items.add {item {value thing}}}
>   }
>   {return items}
> }
> -----------------------------------------------

> And this is not showing the bullet points like an itemize should.
> Thgouhts?

> Cheers,
> Brent

> --
> Software Engineer
> Curl Corporation
> www.curl.com

> Sent via Deja.com
> http://www.deja.com/

--
Software Engineer
Curl Corporation
www.curl.com

Sent via Deja.com
http://www.deja.com/



Wed, 16 Jul 2003 01:51:42 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. stream('file','c','seek ='x) problem

2. Wanted: Hints'n'Tips'n'Bits'n'Bobs

3. There is an 'U'|'X'|'W'|'Z'|'-' in an arithmetic operand

4. 'indefinite' element types

5. (typep (make-array 10 :element-type 'bit) '(array bit (10)))

6. BLT - 'element delete' problems

7. ordering of elements in 'array names'?

8. missing 'Scrolling-fred-dialog-item'

9. Canvas items from 'C'

10. ( 2.31.New operators: 'eq', 'ne', 'last', '..' ) ?

11. Can't add items to system menu on W98

12. Adding 'Applescriptability' to a RB application

 

 
Powered by phpBB® Forum Software