Bug #621

RichTextView dosen't show copy icon in menubar

Added by Zbigniew Rebacz over 10 years ago. Updated over 10 years ago.

Status:ApprovedStart date:12/29/2013
Priority:LowDue date:
Assignee:Miroslav Fidler% Done:

0%

Category:CtrlLibSpent time:-
Target version:-

Description

It seems that Rich TextView menu bar is created in a wrong way...

Should be(CtrlLib/RichTextView.cpp - line 111):
void RichTextView::RightDown(Point p, dword keyflags) {
MenuBar b;
b.Add(t_("Copy"), CtrlImg::copy(), THISBACK).Key(K_CTRL_C);
b.Execute();
}

RichTextView.cpp Magnifier - Added Enable statment (9.71 KB) Zbigniew Rebacz, 12/29/2013 02:17 PM

History

#1 Updated by Zbigniew Rebacz over 10 years ago

Preformated code:

void RichTextView::RightDown(Point p, dword keyflags)
{
    MenuBar b;
    b.Add(t_("Copy"), CtrlImg::copy(), THISBACK(Copy)).Key(K_CTRL_C);
    b.Execute();
}

  • adding "code class="cpp"" after pre makes cpp highlight trick in redmine.

#2 Updated by Zbigniew Rebacz over 10 years ago

  • File deleted (RichTextView.cpp)

#3 Updated by Zbigniew Rebacz over 10 years ago

We can also add additional operation locking code:

b.Add(t_("Copy"), CtrlImg::copy(), THISBACK(Copy)).Key(K_CTRL_C).Enable(cursor != anchor);

#4 Updated by Zbigniew Rebacz over 10 years ago

  • Status changed from New to Patch ready

#5 Updated by Miroslav Fidler over 10 years ago

  • Status changed from Patch ready to Approved

Also available in: Atom PDF