FLTK logo

STR #2445

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 #2445

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:Small modification to Fl_Value_Input to allow precize steps with left mouse button
Version:1.4-feature
Created By:mingodad
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 mingodad
13:03 Nov 15, 2010
One thing that drives me mad on fluid sometimes is to fine adjust placement/size of widgets, with the left mouse button it is supposed to increment/decrement at 1 steps but most of the time it increments/decrements in ore than 1 step.

Obs.: I noted this problem usign fluid but the issue is on Fl_Value_Input.
 
With the modification bellow to the Fl_Value_Input::handle if we press CTRL key it is more likely to increment/decrement a 1 step.
 
--------------------------------
 
int Fl_Value_Input::handle(int event) {
...
  case FL_DRAG:
    if (!step()) goto DEFAULT;
    delta = mx-ix;
    if(Fl::event_ctrl()) { //new code
        delta /= 5; //new code
    } else { //new code
        if (delta > 5) delta -= 5;
        else if (delta < -5) delta += 5;
        else delta = 0;
    } //new code
    switch (drag) {
    case 3: v = increment(previous_value(), delta*100); break;
    case 2: v = increment(previous_value(), delta*10); break;
    default:v = increment(previous_value(), delta); break;
    }
    v = round(v);
 
 
#2 matt
13:32 Nov 16, 2010
Sorry, I have to delay this until after the 1.3.0 release.  
     

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