mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Implemented "tooltip <attrib> <value>"
SVN revision: 2158
This commit is contained in:
parent
c7180adca0
commit
2880a99626
@ -1052,11 +1052,12 @@ incorporated in the next version.
|
|||||||
moves the mouse cursor over the attribute name in the entry form.
|
moves the mouse cursor over the attribute name in the entry form.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b><code>Tooltip <attribute option> = <comment></code></b><br>
|
<b><code>Tooltip <attribute> <attribute option> = <comment></code></b><br>
|
||||||
Same as <code><b>Tooltip <attribute></b></code>, but for option
|
Same as <code><b>Tooltip <attribute></b></code>, but for option
|
||||||
values of a <code><b>MOptions</b></code> attribute. Using this option,
|
values of a <code><b>MOptions</b></code> attribute. Using this option,
|
||||||
a different tooltip can be shown above each check box of an optional
|
a different tooltip can be shown above each check box of an optional
|
||||||
value for an attribute.
|
value for an attribute. Please note that attributes or options with
|
||||||
|
spaces should <b>not</b> be enclosed with quotes.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b><code>Icon comment <icon> = <comment></code></b><br>
|
<b><code>Icon comment <icon> = <comment></code></b><br>
|
||||||
|
|||||||
@ -10396,6 +10396,11 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
if (getcfg(lbs->name, str, comment, sizeof(comment)))
|
if (getcfg(lbs->name, str, comment, sizeof(comment)))
|
||||||
sprintf(tooltip, " title=\"%s\"", comment);
|
sprintf(tooltip, " title=\"%s\"", comment);
|
||||||
|
|
||||||
|
sprintf(str, "Tooltip %s %s", attr_list[index], attr_options[index][i]);
|
||||||
|
tooltip[0] = 0;
|
||||||
|
if (getcfg(lbs->name, str, comment, sizeof(comment)))
|
||||||
|
sprintf(tooltip, " title=\"%s\"", comment);
|
||||||
|
|
||||||
sprintf(str, "%s_%d", ua, i);
|
sprintf(str, "%s_%d", ua, i);
|
||||||
rsprintf("<span%s style=\"white-space:nowrap;\">\n", tooltip);
|
rsprintf("<span%s style=\"white-space:nowrap;\">\n", tooltip);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user