FLTK logo

STR #1818

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 | Roadmap 1.1 | SVN ⇄ GIT ]

STR #1818

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:3 - Moderate, e.g. unable to compile the software
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:FL_WHEN_ENTER_KEY: does not work for Fl_Browser
Version:1.1.7
Created By:xurux
Assigned To:mike
Fix Version:1.1-current (SVN: v5992)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 xurux
13:44 Oct 27, 2007
patch_fltk_browser_fix_enter+doubleclick.diff
1k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#1 xurux
13:44 Oct 27, 2007
using this code:

    { Fl_Browser* o = browser = new Fl_Browser(..,..,..,..);
      o->type(3); // multibrowser (=select multiple lines)
      o->when(FL_WHEN_ENTER_KEY);
      o->callback((Fl_Callback*)action_cb);
    }

i would expect to get a callback (only) if i press Enter on an entry (but not for selection changes).

And it would also be good to get callbacks for double clicks on entries (this is similar to pressing Enter).

Attached is a patch which fixes both. What it does is disable the callbacks after changes (pressing space), and adding a callback for pressing enter and double click.

I tested for Fl_Browser with type(3) (=MultiBrowser) on Windows XP, where it is ok.
 
 
#2 aivushkin
02:25 Oct 29, 2007
This behaviour seems to be more useful than current one. I'll try patch for myself :-)  
 
#3 mike
08:20 Dec 15, 2007
Fixed in Subversion repository.  
     

Return to Bugs & Features ]

 
 

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'.