Creating Unordered Lists


Use the class os_unordered_list for information that does not need to be presented in any particular sequence. Items in the list are displayed in the order in which they are entered in the list and are preceded by a bullet. The type of bullet can be set with the os_unordered_list::bullet() member function. By default the bullet type depends on the browser and the level of the list. Refer to the Nesting Lists Within Lists section in this chapter for details on list levels.

The following example creates a simple unordered list containing three items each preceded by a bullet: Systems<ToolKit>, STL<ToolKit>, and Web<ToolKit>.

Example <ospace/web/examples/list1.cpp>
#include <iostream.h>
#include <ospace/web.h>

int main()
  {
  os_page page( "List#1 Example" );

  os_unordered_list list;

  list << "Systems<ToolKit>"
       << "STL<ToolKit>"
       << "Web<ToolKit>";

  page << "Sample Recursion Software Products"
       << list;
  cout << page;
  return 0;
  }

Copyright©1994-2026 Recursion Software LLC
All Rights Reserved - For use by licensed users only.