| 4744 | |
| 4745 | |
| 4746 | void Widget::preloadSelectionCode() |
| 4747 | // ---------------------------------------------------------------------------- |
| 4748 | // Make sure that we compile the selection code before running |
| 4749 | // ---------------------------------------------------------------------------- |
| 4750 | // This is mostly to avoid a pause the first time the user clicks |
| 4751 | { |
| 4752 | // Make sure we compile the selection the first time |
| 4753 | static bool first = true; |
| 4754 | if (first) |
| 4755 | { |
| 4756 | XL::Symbols *s = XL::MAIN->globals; |
| 4757 | double x = 0; |
| 4758 | (XL::XLCall("draw_selection"), x,x,x,x).build(s); |
| 4759 | (XL::XLCall("draw_widget_selection"), x,x,x,x).build(s); |
| 4760 | (XL::XLCall("draw_3D_selection"), x,x,x,x,x,x).build(s); |
| 4761 | (XL::XLCall("draw_handle"), x, x, x).build(s); |
| 4762 | (XL::XLCall("draw_control_point_handle"), x, x, x).build(s); |
| 4763 | first = false; |
| 4764 | } |
| 4765 | } |
| 4766 | |
| 4767 | |
| 4768 | bool Widget::markChange(text reason) |