| [ Return to Bugs & Features | Post Text | Post File | 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: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post 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 ]
|
| |