summaryrefslogtreecommitdiff
path: root/vcl/source/control/lstbox.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-01 13:40:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:22 +0100
commit9472cfb459e1c18778eda63b6666184c259ce524 (patch)
treea3e62aa6a9e248660b290abbe7def12046c61148 /vcl/source/control/lstbox.cxx
parent048c7974836fb2e1dc66a4267a40ad43546c4c82 (diff)
extend property snaffling to listboxes etc.
Diffstat (limited to 'vcl/source/control/lstbox.cxx')
-rw-r--r--vcl/source/control/lstbox.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index 649103d79c29..30cafc7424b1 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -74,12 +74,32 @@ ListBox::ListBox( Window* pParent, const ResId& rResId ) :
rResId.SetRT( RSC_LISTBOX );
WinBits nStyle = ImplInitRes( rResId );
ImplInit( pParent, nStyle );
+
ImplLoadRes( rResId );
if ( !(nStyle & WB_HIDE ) )
Show();
}
+void ListBox::take_properties(Window &rOther)
+{
+ if (!GetParent())
+ {
+ ImplInitListBoxData();
+ ImplInit(rOther.GetParent(), rOther.GetStyle());
+ }
+
+ Control::take_properties(rOther);
+
+ fprintf(stderr, "ListBox::take_properties\n");
+ ListBox &rOtherListBox = static_cast<ListBox&>(rOther);
+ mnDDHeight = rOtherListBox.mnDDHeight;
+ mnSaveValue = rOtherListBox.mnSaveValue;
+ mbDDAutoSize = rOtherListBox.mbDDAutoSize;
+ mnLineCount = rOtherListBox.mnLineCount;
+ fprintf(stderr, "ListBox::take_properties %p %d\n", this, IsVisible());
+}
+
// -----------------------------------------------------------------------
ListBox::~ListBox()