[haiku-commits] r37051 - haiku/trunk/src/tests/kits/interface/look

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 7 Jun 2010 23:12:15 +0200 (CEST)

Author: stippi
Date: 2010-06-07 23:12:15 +0200 (Mon, 07 Jun 2010)
New Revision: 37051
Changeset: http://dev.haiku-os.org/changeset/37051/haiku

Modified:
   haiku/trunk/src/tests/kits/interface/look/Look.cpp
Log:
Add some columns to judge the look...


Modified: haiku/trunk/src/tests/kits/interface/look/Look.cpp
===================================================================
--- haiku/trunk/src/tests/kits/interface/look/Look.cpp  2010-06-07 20:36:33 UTC 
(rev 37050)
+++ haiku/trunk/src/tests/kits/interface/look/Look.cpp  2010-06-07 21:12:15 UTC 
(rev 37051)
@@ -10,6 +10,7 @@
 #include <CheckBox.h>
 #include <ColorControl.h>
 #include <ColumnListView.h>
+#include <ColumnTypes.h>
 #include <ControlLook.h>
 #include <FilePanel.h>
 #include <GridLayoutBuilder.h>
@@ -281,6 +282,16 @@
        // BColumnListView
        BColumnListView* columnListView = new BColumnListView("clv", 0,
                B_FANCY_BORDER);
+//             B_PLAIN_BORDER);
+//             B_NO_BORDER);
+
+       columnListView->AddColumn(new BTitledColumn("Short",
+               150, 50, 500, B_ALIGN_LEFT), 0);
+       columnListView->AddColumn(new BTitledColumn("Medium Length",
+               100, 50, 500, B_ALIGN_CENTER), 1);
+       columnListView->AddColumn(new BTitledColumn("Some Long Column Name",
+               130, 50, 500, B_ALIGN_RIGHT), 2);
+
 //     for (int32 i = 0; i < 20; i++) {
 //             BString itemLabel("List Item ");
 //             itemLabel << i + 1;


Other related posts:

  • » [haiku-commits] r37051 - haiku/trunk/src/tests/kits/interface/look - superstippi