1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 18:07:59 +00:00

Display panel titles and grouping box titles.

[originally from svn r5291]
This commit is contained in:
Owen Dunn 2005-02-13 00:00:59 +00:00
parent 3e8951c8c6
commit 518738efe9

View File

@ -298,6 +298,22 @@ static void macctrl_layoutset(struct mac_layoutstate *curstate,
cols[0] = *curstate; cols[0] = *curstate;
ncols = 1; ncols = 1;
/* Draw a title, if we have one. */
if (!s->boxname && s->boxtitle) {
union control c;
c.text.label = dupstr(s->boxtitle);
macctrl_text(mcs, window, &cols[0], &c);
/* FIXME: should be highlighted, centred or boxed */
}
/* Start a containing box, if we have a boxname. */
/* FIXME: draw a box, not just its title */
if (s->boxname && *s->boxname && s->boxtitle) {
union control c;
c.text.label = dupstr(s->boxtitle);
macctrl_text(mcs, window, &cols[0], &c);
}
for (i = 0; i < s->ncontrols; i++) { for (i = 0; i < s->ncontrols; i++) {
union control *ctrl = s->ctrls[i]; union control *ctrl = s->ctrls[i];