1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-18 03:20:59 -05:00

dialog system: add a side-by-side alignment feature.

This will let us put two controls side by side (e.g. in disjoint
columns of a multi-col layout) and indicate that instead of the
default behaviour of aligning their top edges, their centreline (or,
even better if available, font baseline) should be aligned.

NFC: nothing uses this yet.
This commit is contained in:
Simon Tatham
2021-04-03 17:45:31 +01:00
parent d33f889a56
commit 1276c13e6a
5 changed files with 103 additions and 4 deletions

View File

@ -221,6 +221,7 @@ static union control *ctrl_new(struct controlset *s, int type,
c->generic.handler = handler;
c->generic.context = context;
c->generic.label = NULL;
c->generic.align_next_to = NULL;
return c;
}