diff options
Diffstat (limited to 'vcl/source/control/lstbox.cxx')
-rw-r--r-- | vcl/source/control/lstbox.cxx | 20 |
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() |