| [ Return to Bugs & Features | Post Text | Post File | Prev | Next ]
STR #3501
Application: | FLTK Library |
Status: | 5 - New |
Priority: | 1 - Request for Enhancement, e.g. asking for a feature |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | Fl_Help_View: copy text selection |
Version: | 1.4-feature |
Created By: | djcj |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]
Trouble Report Comments:
[ Post Text ]
|
#1 | djcj 05:38 Nov 09, 2018 |
| A text selection can be copied with ^C but not through a callback. To enable that some methods must be set protected and public:
set protected, so we can use it in the subclass to check if text was selected: static int selected; static Fl_Help_View *current_view;
set public to copy the text: void end_selection(int c=0);
I need this because I want to add a "copy selection" option to a context menu, something that can be done easily with i.e. Fl_Text_Display. Making it possible to select everything through a callback (like ^A) could be useful too. | |
|
#2 | djcj 07:25 Dec 29, 2018 |
| end_selection() can be set protected, it can be subclassed instead. | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |