From 74ead0785f7a08709cf6da6c24a936001b1a7d9c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 12 Oct 2016 11:51:06 +0100 Subject: de-src solo image button Change-Id: I82a613c8f371d8f585c53b2625e7dbed8ea0b703 --- basctl/source/basicide/baside2b.cxx | 5 ++++- basctl/source/basicide/basidesh.src | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) (limited to 'basctl/source') diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index ea89aac7185a..d02782e35e04 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -1563,7 +1563,7 @@ WatchWindow::WatchWindow (Layout* pParent) : DockingWindow(pParent) , aWatchStr(IDEResId( RID_STR_REMOVEWATCH)) , aXEdit(VclPtr::Create(this, WB_BORDER | WB_3DLOOK)) - , aRemoveWatchButton(VclPtr::Create(this, IDEResId(RID_IMGBTN_REMOVEWATCH))) + , aRemoveWatchButton(VclPtr::Create(this, WB_SMALLSTYLE)) , aTreeListBox(VclPtr::Create(this, WB_BORDER | WB_3DLOOK | WB_HASBUTTONS | WB_HASLINES | WB_HSCROLL | WB_TABSTOP | WB_HASLINESATROOT | WB_HASBUTTONSATROOT)) @@ -1584,6 +1584,9 @@ WatchWindow::WatchWindow (Layout* pParent) aRemoveWatchButton->Disable(); aRemoveWatchButton->SetClickHdl( LINK( this, WatchWindow, ButtonHdl ) ); aRemoveWatchButton->SetPosPixel( Point( nTextLen + aXEdit->GetSizePixel().Width() + 4, 2 ) ); + aRemoveWatchButton->SetHelpId(HID_BASICIDE_REMOVEWATCH); + aRemoveWatchButton->SetModeImage(Image(IDEResId(RID_IMG_REMOVEWATCH))); + aRemoveWatchButton->SetQuickHelpText(IDEResId(RID_STR_REMOVEWATCHTIP)); Size aSz( aRemoveWatchButton->GetModeImage().GetSizePixel() ); aSz.Width() += 6; aSz.Height() += 6; diff --git a/basctl/source/basicide/basidesh.src b/basctl/source/basicide/basidesh.src index a9d08c30f024..8a21b548a5ed 100644 --- a/basctl/source/basicide/basidesh.src +++ b/basctl/source/basicide/basidesh.src @@ -285,16 +285,6 @@ String RID_STR_SEARCHALLMODULES { Text [ en-US ] = "Do you want to replace the text in all active modules?" ; }; -ImageButton RID_IMGBTN_REMOVEWATCH -{ - HelpId = HID_BASICIDE_REMOVEWATCH ; - SmallStyle = TRUE ; - ButtonImage = Image - { - ImageBitmap = Bitmap { File = "baswatr.png" ; }; - }; - QuickHelpText [ en-US ] = "Remove Watch" ; -}; String RID_STR_REMOVEWATCH { @@ -486,6 +476,16 @@ Image RID_IMG_DIALOG { ImageBitmap = Bitmap { File = "im30823.png"; }; }; +Image RID_IMG_REMOVEWATCH +{ + ImageBitmap = Bitmap { File = "baswatr.png" ; }; +}; + +String RID_STR_REMOVEWATCHTIP +{ + Text [ en-US ] = "Remove Watch" ; +}; + String RID_STR_QUERYREPLACEMACRO { Text [ en-US ] = "Do you want to overwrite the XX macro?" ; -- cgit