]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxListBox styles
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 24 Aug 2004 22:24:21 +0000 (22:24 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 24 Aug 2004 22:24:21 +0000 (22:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/xrc/xh_chckl.cpp
src/xrc/xh_chckl.cpp

index 0dde7f6759578afa0ab82057d43adc0f210bab5a..f891730c2e4da9c8d5720754e118d52432e0e041 100644 (file)
@@ -31,7 +31,15 @@ IMPLEMENT_DYNAMIC_CLASS(wxCheckListBoxXmlHandler, wxXmlResourceHandler)
 wxCheckListBoxXmlHandler::wxCheckListBoxXmlHandler()
 : wxXmlResourceHandler(), m_insideBox(false)
 {
-    // no styles
+    // wxListBox styles:
+    XRC_ADD_STYLE(wxLB_SINGLE);
+    XRC_ADD_STYLE(wxLB_MULTIPLE);
+    XRC_ADD_STYLE(wxLB_EXTENDED);
+    XRC_ADD_STYLE(wxLB_HSCROLL);
+    XRC_ADD_STYLE(wxLB_ALWAYS_SB);
+    XRC_ADD_STYLE(wxLB_NEEDED_SB);
+    XRC_ADD_STYLE(wxLB_SORT);
+    
     AddWindowStyles();
 }
 
index 0dde7f6759578afa0ab82057d43adc0f210bab5a..f891730c2e4da9c8d5720754e118d52432e0e041 100644 (file)
@@ -31,7 +31,15 @@ IMPLEMENT_DYNAMIC_CLASS(wxCheckListBoxXmlHandler, wxXmlResourceHandler)
 wxCheckListBoxXmlHandler::wxCheckListBoxXmlHandler()
 : wxXmlResourceHandler(), m_insideBox(false)
 {
-    // no styles
+    // wxListBox styles:
+    XRC_ADD_STYLE(wxLB_SINGLE);
+    XRC_ADD_STYLE(wxLB_MULTIPLE);
+    XRC_ADD_STYLE(wxLB_EXTENDED);
+    XRC_ADD_STYLE(wxLB_HSCROLL);
+    XRC_ADD_STYLE(wxLB_ALWAYS_SB);
+    XRC_ADD_STYLE(wxLB_NEEDED_SB);
+    XRC_ADD_STYLE(wxLB_SORT);
+    
     AddWindowStyles();
 }