- my_style->load(style_conf);
-
- otk::OtkFocusWidget foo(my_style);
- otk::OtkFocusWidget iconb(&foo);
- otk::OtkFocusWidget label(&foo);
- otk::OtkFocusWidget maxb(&foo);
- otk::OtkFocusWidget closeb(&foo);
-
- foo.setBevelWidth(2);
- foo.setDirection(otk::OtkWidget::Vertical);
+ otk::AppWidget foo(&app, otk::Widget::Vertical, 3);
+ otk::Label lab(&foo);
+ otk::Label lab2(&foo);
+ otk::Button but(&foo);
+ otk::Button but2(&foo);
+
+ foo.resize(otk::Size(100, 150));
+
+ lab.setText("Hi, I'm a sexy\nlabel!!!");
+ lab.setMaxSize(otk::Size(0,0));
+ lab2.setText("Me too!!");
+ lab2.setBorderWidth(10);
+ lab2.setBorderColor(otk::RenderStyle::style(app.screen())->buttonFocusColor());
+ but.setText("Im not the default button...");
+ but2.setText("But I AM!!");
+ but2.setHighlighted(true);