From 7f2632867730244c41dc10944b7157f44c9e0db4 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 6 Feb 2007 18:55:43 +0000 Subject: [PATCH] Implemented tooltips for ROptions SVN revision: 1788 --- src/elogd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index 0e2dc1e4..40fca81e 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -9667,7 +9667,13 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL if (strchr(str, '{')) *strchr(str, '{') = 0; - rsprintf("\n"); + /* display check box with optional tooltip */ + sprintf(str, "Tooltip %s", attr_options[index][i]); + tooltip[0] = 0; + if (getcfg(lbs->name, str, comment, sizeof(comment))) + sprintf(tooltip, " title=\"%s\"", comment); + + rsprintf("\n", tooltip); if (strstr(attrib[index], attr_options[index][i]) || strieq(str, attrib[index]))