24 |
* \file tooltip.c |
* \file tooltip.c |
25 |
*. |
*. |
26 |
* This file is part of the XForms library package. |
* This file is part of the XForms library package. |
27 |
* Copyright (c) 1998-2002 T.C. Zhao |
* Copyright (c) 1998-2002 T.C. Zhao |
28 |
* All rights reserved. |
* All rights reserved. |
29 |
*. |
*. |
30 |
* |
* |
100 |
create_it(); |
create_it(); |
101 |
|
|
102 |
extra = 1 + !(tip->boxtype == FL_FLAT_BOX || tip->boxtype == FL_BORDER_BOX); |
extra = 1 + !(tip->boxtype == FL_FLAT_BOX || tip->boxtype == FL_BORDER_BOX); |
103 |
fl_get_string_dimension(tip->fntstyle, tip->fntsize, |
fl_get_string_dimension(tip->fntstyle, tip->fntsize, |
104 |
s, strlen(s), &maxw, &maxh); |
s, strlen(s), &maxw, &maxh); |
105 |
|
|
106 |
maxw += 7 + extra; |
maxw += 7 + extra; |
147 |
fl_set_object_lsize(tip->text, tip->fntsize = size); |
fl_set_object_lsize(tip->text, tip->fntsize = size); |
148 |
} |
} |
149 |
|
|
150 |
void |
void |
151 |
fl_set_tooltip_lalign(int align) |
fl_set_tooltip_lalign(int align) |
152 |
{ |
{ |
153 |
create_it(); |
create_it(); |