/* * This file illustrates the use of string browser with a scroll bar attached. * The string browser contains an indefinite list of strings that can be * selected and browsed. See the StringBrowser documentation for further * details. */ #include #include #include #include #include main() { World* w = new World(); StringBrowser* sb = new StringBrowser(new ButtonState(), 10, 35); VScroller* scrl = new VScroller(sb); HBox* hb = new HBox(sb, scrl); sb->Append("aaaaaa"); sb->Append("bbbbbb"); sb->Append("ccccc"); sb->Append("dddd"); sb->Append("eeeeeeee"); sb->Append("ffffffff"); sb->Append("ggg"); sb->Append("hhhhhhhhhhhhhh"); sb->Append("iiiiii"); sb->Append("jjjjjj"); sb->Append("kkkkkk"); sb->Append("lllllllllllll"); sb->Append("mmmmmm"); sb->Append("nnnnnnnnnn"); w->InsertApplication(hb); w->Run(); delete w; }