STR #3501

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Post Text | Post File | SVN ⇄ GIT | 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:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size top right image
 
#1 djcj
05:39 Nov 09, 2018
Fl_Help_View.H.diff
1k
 
 
#2 djcj
05:39 Nov 09, 2018
example.cpp
1k
 
bottom left image   bottom right image

Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
 
#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.  
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.