Added global Fl::visible_focus() checkbox.
Also fixed tab navigation order of some widgets, and +/1 heights with a few checkboxes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12822 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
43000a228c
commit
bf0c9d4c6a
54
test/tree.fl
54
test/tree.fl
@ -750,7 +750,7 @@ tree->redraw();}
|
||||
tooltip {Tests Fl_Tree::item_draw_mode(FL_TREE_ITEM_DRAW_LABEL_AND_WIDGET)
|
||||
Enables both label and widget() for display.
|
||||
When enabled, widget should appear to the right of the item's label.
|
||||
By default, the widget() is shown in place of the item's label.} xywh {645 356 20 16} down_box DOWN_BOX labelsize 11 align 7
|
||||
By default, the widget() is shown in place of the item's label.} xywh {645 355 20 16} down_box DOWN_BOX labelsize 11 align 7
|
||||
code0 {labelandwidget_radio->value(0);}
|
||||
code1 {labelandwidget_radio->do_callback();}
|
||||
}
|
||||
@ -765,10 +765,18 @@ tree->item_draw_mode(flags);
|
||||
tree->redraw();}
|
||||
tooltip {Tests Fl_Tree::item_draw_mode(FL_TREE_ITEM_HEIGHT_FROM_WIDGET)
|
||||
If enabled, item's height will track the widget()'s height.
|
||||
When enabled, click 'ccc' or 'D1/D2' buttons to test.} xywh {645 371 20 16} down_box DOWN_BOX labelsize 11 align 7
|
||||
When enabled, click 'ccc' or 'D1/D2' buttons to test.} xywh {645 372 20 16} down_box DOWN_BOX labelsize 11 align 7
|
||||
code0 {itemheightfromwidget_radio->value(0);}
|
||||
code1 {itemheightfromwidget_radio->do_callback();}
|
||||
}
|
||||
Fl_Check_Button globalvisiblefocus_checkbox {
|
||||
label {Global visible focus?}
|
||||
user_data tree
|
||||
callback {int onoff = globalvisiblefocus_checkbox->value();
|
||||
Fl::visible_focus(onoff);}
|
||||
tooltip {Toggles the global Fl::visible_focus()} xywh {645 389 20 16} down_box DOWN_BOX labelsize 11 align 7
|
||||
code0 {int onoff = Fl::visible_focus(); globalvisiblefocus_checkbox->value(onoff);}
|
||||
}
|
||||
Fl_Box {} {
|
||||
label {Test Operations}
|
||||
tooltip {These controls only affect the defaults for new items that are created. These test the Fl_Tree_Prefs methods.} xywh {350 435 330 125} box GTK_DOWN_BOX color 47 labelsize 12 align 1
|
||||
@ -1616,6 +1624,27 @@ UpdateColorChips();
|
||||
tree->redraw();}
|
||||
tooltip {Make the bgcolor 'transparent' (0xffffffff)} xywh {993 433 16 16} labelsize 10 align 16
|
||||
}
|
||||
Fl_Value_Slider tree_scrollbar_size_slider {
|
||||
label {Fl_Tree::scrollbar_size()}
|
||||
callback {tree->scrollbar_size((int)tree_scrollbar_size_slider->value());
|
||||
tree->redraw();}
|
||||
tooltip {Tests Fl_Tree::scrollbar_size() effects on tree clipping.
|
||||
The value is normally 0, which causes Fl_Tree to use the global Fl::scrollbar_size() instead.} xywh {835 499 180 16} type Horizontal color 46 selection_color 1 labelsize 11 align 4 textsize 9
|
||||
code0 {o->value(tree->scrollbar_size());}
|
||||
code1 {o->range(0.0, 30.0);}
|
||||
code2 {o->step(1.0);}
|
||||
code3 {o->color(46); o->selection_color(FL_RED);}
|
||||
}
|
||||
Fl_Value_Slider scrollbar_size_slider {
|
||||
label {Fl::scrollbar_size()}
|
||||
callback {Fl::scrollbar_size((int)scrollbar_size_slider->value());
|
||||
tree->redraw();}
|
||||
tooltip {Tests Fl::scrollbar_size() effects on tree clipping} xywh {835 519 180 16} type Horizontal color 46 selection_color 1 labelsize 11 align 4 textsize 9
|
||||
code0 {o->value(Fl::scrollbar_size());}
|
||||
code1 {o->range(5.0, 30.0);}
|
||||
code2 {o->step(1.0);}
|
||||
code3 {o->color(46); o->selection_color(FL_RED);}
|
||||
}
|
||||
Fl_Button testsuggs_button {
|
||||
label {Test Suggestions}
|
||||
callback {const char *helpmsg =
|
||||
@ -1707,27 +1736,6 @@ helpwin->resizable(helpdisp);
|
||||
helpwin->show();}
|
||||
tooltip {Suggestions on how to do tests} xywh {935 545 95 16} labelsize 9
|
||||
}
|
||||
Fl_Value_Slider tree_scrollbar_size_slider {
|
||||
label {Fl_Tree::scrollbar_size()}
|
||||
callback {tree->scrollbar_size((int)tree_scrollbar_size_slider->value());
|
||||
tree->redraw();}
|
||||
tooltip {Tests Fl_Tree::scrollbar_size() effects on tree clipping.
|
||||
The value is normally 0, which causes Fl_Tree to use the global Fl::scrollbar_size() instead.} xywh {835 499 180 16} type Horizontal color 46 selection_color 1 labelsize 11 align 4 textsize 9
|
||||
code0 {o->value(tree->scrollbar_size());}
|
||||
code1 {o->range(0.0, 30.0);}
|
||||
code2 {o->step(1.0);}
|
||||
code3 {o->color(46); o->selection_color(FL_RED);}
|
||||
}
|
||||
Fl_Value_Slider scrollbar_size_slider {
|
||||
label {Fl::scrollbar_size()}
|
||||
callback {Fl::scrollbar_size((int)scrollbar_size_slider->value());
|
||||
tree->redraw();}
|
||||
tooltip {Tests Fl::scrollbar_size() effects on tree clipping} xywh {835 519 180 16} type Horizontal color 46 selection_color 1 labelsize 11 align 4 textsize 9
|
||||
code0 {o->value(Fl::scrollbar_size());}
|
||||
code1 {o->range(5.0, 30.0);}
|
||||
code2 {o->step(1.0);}
|
||||
code3 {o->color(46); o->selection_color(FL_RED);}
|
||||
}
|
||||
}
|
||||
Fl_Box resizer_box {
|
||||
xywh {0 263 15 14}
|
||||
|
Loading…
x
Reference in New Issue
Block a user