|
Noticed in test/cube.cxx The sliders look wide and clunky. Let's go with something a little closer to the new sizes on the scroll bars. I like 20. Around line ... speed = new Slider(390,90,17,220,"Speed"); speed->set_vertical(); size = new Slider(450,90,17,220,"Size"); size->set_vertical(); ... The sliders start looking clunky at around 25, I think. 15 (the size of our scroll bars) might be too narrow, but 40 was really strange looking. ------------------ Want a nicer looking live mode for fluid? My line numbers are probably 50 to 100 lines further down that yours so I'll tell you where I found this in my files and you can adjust for the difference. These are in live_mode_cb(...) which is at my line 2231 in fluid/WidgetType.cxx round my line 2249 change one of the following lines... .... // live_window = new DoubleBufferWindow(w+20, h+55, "Fluid Live Mode Widget"); // live_window = new DoubleBufferWindow(w+80, h+55, "Fluid Live Mode Widget"); to int minw = w > 120 ? w : 120; // at least get the button inside the box. live_window = new DoubleBufferWindow(minw, h+55, "Fluid Live Mode Widget"); If minw is used elsewhere, use another name. I used 'tmpw' but changed it here to make it's meaning more clear. The above will try to keep at least the button completely inside the green area. (Haven't tested this on a tiny widget yet, sorry, but when I had w+80 as a fix for this problem, it was fine and it looks like the button is 100 and the left and right margins are 10+10, so it SHOULD be fine... more famous last words.) In fluid/WidgetType.cxx around line 2255 (probably much less) change widget position as follows. live_window->begin(); live_window->box(fltk::FLAT_BOX); live_window->color(fltk::GREEN); Button *btn = new Button(10, h+20, 100, 25, "Exit Live Mode"); btn->labelsize(12); btn->callback(leave_live_mode_cb); // live_widget->position(10, 10); live_widget->position(0, 0); In thory, we put the widget fully inside the box with no margin at the top or the sides, only at the bottom for the button to leave live mode. Here's what it looks like. [I hope I remember the screenshot.] ![]() [and I did remember. Yay me!]
Note: These windows also close when you [x] out of 'em so the button at the bottom isn't even crucial, but I like it so it's still there. ------------- |
_______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs

