summaryrefslogtreecommitdiff
path: root/vcl/source/control/button.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-23 21:11:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-24 13:04:38 +0100
commit602274c77fa8134ca097f4d60b9fb75cea0eff78 (patch)
tree97f52c76c3ccde45692c1579737a1b25ffdd4d36 /vcl/source/control/button.cxx
parent6f660293885733e64602aa6144c36ed7e7b43faf (diff)
no ImageButton loaded from .src now
Change-Id: If6f6718e1e6d756b99a499deafa4310c76a75ad3
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r--vcl/source/control/button.cxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index ebbe3c9bb31e..2ca40135e7ee 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -3777,26 +3777,6 @@ ImageButton::ImageButton( vcl::Window* pParent, WinBits nStyle ) :
ImplInitStyle();
}
-ImageButton::ImageButton( vcl::Window* pParent, const ResId& rResId ) :
- PushButton( pParent, rResId.SetRT( RSC_IMAGEBUTTON ) )
-{
- RscImageButtonFlags nObjMask = (RscImageButtonFlags)ReadLongRes();
-
- if ( RscImageButtonFlags::Image & nObjMask )
- {
- SetModeImage( Image( ResId( static_cast<RSHEADER_TYPE*>(GetClassRes()), *rResId.GetResMgr() ) ) );
- IncrementRes( GetObjSizeRes( static_cast<RSHEADER_TYPE*>(GetClassRes()) ) );
- }
-
- if ( RscImageButtonFlags::Symbol & nObjMask )
- SetSymbol( (SymbolType)ReadLongRes() );
-
- if ( RscImageButtonFlags::State & nObjMask )
- SetState( (TriState)ReadLongRes() );
-
- ImplInitStyle();
-}
-
void ImageButton::ImplInitStyle()
{
WinBits nStyle = GetStyle();