Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
f8f366cc
Commit
f8f366cc
authored
Feb 07, 2003
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed the "RichEdit line insertion error" bug (closes #246)
* Added a popup menu to copy log messages to the clipboard
parent
c5968aaa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletion
+34
-1
modules/gui/win32/messages.cpp
modules/gui/win32/messages.cpp
+21
-1
modules/gui/win32/messages.dfm
modules/gui/win32/messages.dfm
+10
-0
modules/gui/win32/messages.h
modules/gui/win32/messages.h
+3
-0
No files found.
modules/gui/win32/messages.cpp
View file @
f8f366cc
...
...
@@ -102,7 +102,12 @@ void __fastcall TMessagesDlg::UpdateLog()
/* Add message */
if
(
i_max_lines
)
{
RichEditMessages
->
Lines
->
Add
(
p_sub
->
p_msg
[
i_start
].
psz_msg
);
/* We don't use RichEditMessages->Lines->Add(), because with
* some versions of rich32.dll it can trigger the
* "RichEdit line insertion error" bug... */
RichEditMessages
->
SelStart
=
RichEditMessages
->
GetTextLen
();
RichEditMessages
->
SelText
=
p_sub
->
p_msg
[
i_start
].
psz_msg
;
RichEditMessages
->
SelText
=
RichEditMessages
->
SelText
+
"
\r\n
"
;
}
}
...
...
@@ -112,3 +117,18 @@ void __fastcall TMessagesDlg::UpdateLog()
}
}
//---------------------------------------------------------------------------
void
__fastcall
TMessagesDlg
::
PopupCopyTextClick
(
TObject
*
Sender
)
{
/* If nothinf is selected, select everything */
if
(
RichEditMessages
->
SelLength
==
0
)
{
RichEditMessages
->
SelStart
=
0
;
RichEditMessages
->
SelLength
=
RichEditMessages
->
GetTextLen
();
}
/* Copy selected text to clipboard */
RichEditMessages
->
CopyToClipboard
();
}
//---------------------------------------------------------------------------
modules/gui/win32/messages.dfm
View file @
f8f366cc
...
...
@@ -29,6 +29,7 @@ object MessagesDlg: TMessagesDlg
Font.Name = 'MS Sans Serif'
Font.Style = []
ParentFont = False
PopupMenu = PopupMenu1
ReadOnly = True
ScrollBars = ssBoth
TabOrder = 0
...
...
@@ -47,4 +48,13 @@ object MessagesDlg: TMessagesDlg
TabOrder = 1
OnClick = ButtonOKClick
end
object PopupMenu1: TPopupMenu
Left = 304
Top = 432
object PopupCopyText: TMenuItem
Caption = '&Copy text'
ShortCut = 16451
OnClick = PopupCopyTextClick
end
end
end
modules/gui/win32/messages.h
View file @
f8f366cc
...
...
@@ -35,9 +35,12 @@ class TMessagesDlg : public TForm
__published:
// IDE-managed Components
TRichEdit
*
RichEditMessages
;
TButton
*
ButtonOK
;
TPopupMenu
*
PopupMenu1
;
TMenuItem
*
PopupCopyText
;
void
__fastcall
ButtonOKClick
(
TObject
*
Sender
);
void
__fastcall
FormHide
(
TObject
*
Sender
);
void
__fastcall
FormShow
(
TObject
*
Sender
);
void
__fastcall
PopupCopyTextClick
(
TObject
*
Sender
);
private:
// User declarations
intf_thread_t
*
p_intf
;
public:
// User declarations
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment